Commit 70379af8 authored by Nicolas Delaby's avatar Nicolas Delaby

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.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@43058 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4d82c9c1
......@@ -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')
......
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