appy.gen: added new format 'captcha' for a String.
This commit is contained in:
parent
0d55abb239
commit
a80ef513ff
15 changed files with 123 additions and 53 deletions
|
@ -19,10 +19,11 @@ def createObject(folder, id, className, appName, wf=True):
|
|||
obj.id = id
|
||||
obj._at_uid = id
|
||||
userId = obj.getUser().getId()
|
||||
obj.creator = userId
|
||||
# If user is anonymous, userIs is None
|
||||
obj.creator = userId or 'Anonymous User'
|
||||
from DateTime import DateTime
|
||||
obj.created = DateTime()
|
||||
obj.__ac_local_roles__ = { userId: ['Owner'] }
|
||||
obj.__ac_local_roles__ = { userId: ['Owner'] } # userId can be None (anon).
|
||||
if wf: obj.notifyWorkflowCreated()
|
||||
return obj
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue