def handleUndo(self, action): data, errors = self.extractData() ids = self.request.get('ids', []) if errors: IStatusMessage(self.request).add(self.formErrorsMessage, 'warning') elif not ids: IStatusMessage(self.request).add(_(u'You must select transactions'), 'warning') else: try: self.undoAllTransactions(ids) IStatusMessage(self.request).add(_(u'Selected transactions has been undoed')) except Exception, e: logger.warning('Error upon undo:', exc_info=True) IStatusMessage(self.request).add(_(u'Error upon undo: %s' % e), 'warning') self.redirect(self.request.getURL())
def query(self, default=None): return self.content.get('request_info', _(u'[Unknown]'))
def query(self, default=None): return self.content.get('size', _(u'[No size]'))
def query(self, default=None): return self.content.get('location', _(u'[Unknown]'))
def query(self, default=None): return self.content.get('description', _(u'[No description]'))