Back to index

plone3  3.1.7
show_id.py
Go to the documentation of this file.
00001 ## Script (Python) "show_id"
00002 ##bind container=container
00003 ##bind context=context
00004 ##bind namespace=
00005 ##bind script=script
00006 ##bind subpath=traverse_subpath
00007 ##parameters=
00008 ##title=Determine whether to show an id in an edit form
00009 if context.plone_utils.isIDAutoGenerated(context.REQUEST.get('id', None) or context.getId()):
00010     return not (context.portal_factory.isTemporary(context) or context.CreationDate() == context.ModificationDate())
00011 return 1