[gen] Optimisations, bugfixes and refactorings.

This commit is contained in:
Gaetan Delannay 2014-04-21 12:11:41 +02:00
parent 822e1a7c63
commit f0c1f69573
9 changed files with 104 additions and 115 deletions

View file

@ -46,7 +46,7 @@ def createObject(folder, id, className, appName, wf=True, noSecurity=False):
obj.modified = obj.created
from persistent.mapping import PersistentMapping
obj.__ac_local_roles__ = PersistentMapping({ userId: ['Owner'] })
if wf: obj.notifyWorkflowCreated()
if wf: obj.initializeWorkflow()
return obj
# ------------------------------------------------------------------------------