[Erp5-report] r41148 nicolas.dumazet - /erp5/trunk/products/ERP5Type/Base.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Dec 6 09:47:56 CET 2010
Author: nicolas.dumazet
Date: Mon Dec 6 09:47:56 2010
New Revision: 41148
URL: http://svn.erp5.org?rev=41148&view=rev
Log:
show class name for easier debugging
Modified:
erp5/trunk/products/ERP5Type/Base.py
Modified: erp5/trunk/products/ERP5Type/Base.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/Base.py?rev=41148&r1=41147&r2=41148&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/Base.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/Base.py [utf8] Mon Dec 6 09:47:56 2010
@@ -1949,7 +1949,10 @@ class Base( CopyContainer,
Returns the dictionnary of the object
Only for debugging
"""
- return copy(self.__dict__)
+ d = copy(self.__dict__)
+ klass = self.__class__
+ d['__class__'] = '%s.%s' % (klass.__module__, klass.__name__)
+ return d
security.declareProtected( Permissions.ManagePortal, 'showPermissions' )
def showPermissions(self, all=1):
More information about the Erp5-report
mailing list