def doit(self, **data): """ Action button callback. """ del self.context.__parent__[self.context.id] self.status = _(u'Delete canceled') return self.redirect(self.listing_view)
def cancel(self, **data): """ Action button callback. """ self.status = _(u'Delete canceled') return self.redirect(self.listing_view)
def label (self): return _(u'Do you really want to delete "%s"?'%self.context)
def __repr__(self): return _(u'Event Bundle (%s)'%self.title)
def __repr__(self): return _(u'History Event (%s)'%self.title)
def check_duration(obj): if obj.durationEvent and not obj.end: raise interface.Invalid(_(u'When adding duration events, you must provide the end date.'))