Back to index

plone3  3.1.7
TitleOrId.py
Go to the documentation of this file.
00001 ##parameters=
00002 ##title=Return Title or getId
00003 ##
00004 title = context.Title()
00005 id = context.getId()
00006 if title:
00007     return title
00008 else:
00009     return id