[gen] Bugfixs.
This commit is contained in:
parent
1f901e5545
commit
bd80d63eda
4 changed files with 16 additions and 20 deletions
|
@ -44,7 +44,8 @@ def createObject(folder, id, className, appName, wf=True, noSecurity=False):
|
|||
from DateTime import DateTime
|
||||
obj.created = DateTime()
|
||||
obj.modified = obj.created
|
||||
obj.__ac_local_roles__ = { userId: ['Owner'] }
|
||||
from persistent.mapping import PersistentMapping
|
||||
obj.__ac_local_roles__ = PersistentMapping({ userId: ['Owner'] })
|
||||
if wf: obj.notifyWorkflowCreated()
|
||||
return obj
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue