Beispiel #1
0
 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)
Beispiel #2
0
 def cancel(self, **data):
     """
     Action button callback.
     """
     self.status = _(u'Delete canceled')
     return self.redirect(self.listing_view)
Beispiel #3
0
 def label (self):
     return _(u'Do you really want to delete "%s"?'%self.context)
Beispiel #4
0
 def __repr__(self):
     return _(u'Event Bundle (%s)'%self.title)
Beispiel #5
0
 def __repr__(self):
     return _(u'History Event (%s)'%self.title)
Beispiel #6
0
 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.'))