Commit 401104ba authored by Yoshinori Okuji's avatar Yoshinori Okuji

uid is allocated immdiately in DocumentClass.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1908 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c59ef581
......@@ -265,6 +265,7 @@ class DocumentConstructor(Method):
def __call__(self, folder, id, REQUEST=None, **kw):
o = self.klass(id)
folder._setObject(id, o)
o.uid = folder.portal_catalog.newUid()
if kw is not None: o.__of__(folder)._edit(force_update=1, **kw)
if REQUEST is not None:
REQUEST['RESPONSE'].redirect( 'manage_main' )
......
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