Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 def post(self):
     issue = issues.update(simplejson.loads(self.rh.request.get('data')), create=True)
     logging.info('Issue %u imported.' % issue.id)
Ejemplo n.º 4
0
 def post(self):
     issue = issues.update(simplejson.loads(self.rh.request.get('data')),
                           create=True)
     logging.info('Issue %u imported.' % issue.id)