Back to index

plone3  3.1.7
validateType.py
Go to the documentation of this file.
00001 ##parameters=type_name='', **kw
00002 ##
00003 from Products.CMFDefault.utils import Message as _
00004 
00005 if type_name:
00006     return context.setStatus(True)
00007 else:
00008     return context.setStatus(False, _(u'Please select a content type.'))