[gen] Optimisations, bugfixes and refactorings.
This commit is contained in:
parent
822e1a7c63
commit
f0c1f69573
9 changed files with 104 additions and 115 deletions
|
@ -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
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue