Back to index

plone3  3.1.7
topic_edit_control.py
Go to the documentation of this file.
00001 ##parameters=title, description, acquireCriteria=False, **kw
00002 ##
00003 from Products.CMFDefault.utils import Message as _
00004 
00005 if title!=context.title or description != context.description or \
00006         acquireCriteria != context.acquireCriteria:
00007     context.edit(title=title, description=description,
00008                  acquireCriteria=acquireCriteria)
00009     return context.setStatus(True, _(u'Topic changed.'))
00010 else:
00011     return context.setStatus(False, _(u'Nothing to change.'))