Back to index

plone3  3.1.7
pretty_title_or_id.py
Go to the documentation of this file.
00001 ## Script (Python) "pretty_title_or_id"
00002 ##bind container=container
00003 ##bind context=context
00004 ##bind namespace=
00005 ##bind script=script
00006 ##bind subpath=traverse_subpath
00007 ##parameters=default=None
00008 ##title=
00009 ##
00010 #autogenerated Ids look like $portal_type.YYYY-MM-DD.integer(random number)
00011 
00012 putils = context.plone_utils
00013 if default is not None:
00014     return putils.pretty_title_or_id(context, default)
00015 
00016 return putils.pretty_title_or_id(context)