[gen] Bugfixs.

This commit is contained in:
Gaetan Delannay 2013-09-22 22:08:48 +02:00
parent 1f901e5545
commit bd80d63eda
4 changed files with 16 additions and 20 deletions

View file

@ -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