Commit bacfeb41 authored by Jérome Perrin's avatar Jérome Perrin

return a copy of self.__dict__ in showDict


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15029 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f098286d
......@@ -27,6 +27,7 @@
##############################################################################
from struct import unpack
from copy import copy
import warnings
from Globals import InitializeClass, DTMLFile
......@@ -465,8 +466,8 @@ class Base( CopyContainer,
return Base.inheritedAttribute('manage_historyCompare')(
self, rev1, rev2, REQUEST,
historyComparisonResults=OFS.History.html_diff(
pformat(rev1.showDict()),
pformat(rev2.showDict())))
pformat(rev1.__dict__),
pformat(rev2.__dict__)))
def _aq_dynamic(self, id):
ptype = self.portal_type
......@@ -1411,7 +1412,7 @@ class Base( CopyContainer,
Returns the dictionnary of the object
Only for debugging
"""
return self.__dict__
return copy(self.__dict__)
security.declareProtected( Permissions.ManagePortal, 'showPermissions' )
def showPermissions(self, all=1):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment