[Erp5-report] r43058 nicolas - /erp5/trunk/products/ERP5Type/mixin/temporary.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Feb 4 15:29:56 CET 2011
Author: nicolas
Date: Fri Feb 4 15:29:56 2011
New Revision: 43058
URL: http://svn.erp5.org?rev=43058&view=rev
Log:
Override _setUid on temporary objects to avoid casting values into Long type.
This allows to set uids like new_XXX on listbox's temp_object.
Modified:
erp5/trunk/products/ERP5Type/mixin/temporary.py
Modified: erp5/trunk/products/ERP5Type/mixin/temporary.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/mixin/temporary.py?rev=43058&r1=43057&r2=43058&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/mixin/temporary.py [utf8] (original)
+++ erp5/trunk/products/ERP5Type/mixin/temporary.py [utf8] Fri Feb 4 15:29:56 2011
@@ -55,6 +55,8 @@ class TemporaryDocumentMixin(object):
def setUid(self, value):
self.uid = value # Required for Listbox so that no casting happens when we use TempBase to create new objects
+ _setUid = setUid
+
def getUid(self):
try:
return getattr(aq_base(self), 'uid')
More information about the Erp5-report
mailing list