def post(self): data = dict([(x, self.rh.request.get(x)) for x in self.rh.request.arguments()]) if 'labels' in data: data['labels'] = parse_labels(data['labels']) if not data.get('id'): user = users.get_current_user() if user: data['author'] = user.email() issue = issues.update(data) self.rh.redirect(self.rh.request.path + '?action=' + DEFAULT_ACTION)
def post(self): issue = issues.update(simplejson.loads(self.rh.request.get('data')), create=True) logging.info('Issue %u imported.' % issue.id)