Exemplo n.º 1
0
 def _process_args(self):
     RHManageEventBase._process_args(self)
     args = parser.parse({
         'values':
         PrincipalDict(allow_groups=True,
                       allow_external_users=True,
                       allow_event_roles=True,
                       event_id=self.event.id,
                       missing={})
     })
     self.values = args['values']
Exemplo n.º 2
0
 def _process_args(self):
     RHManageEventBase._process_args(self)
     self.target_category = Category.get_or_404(int(request.form['target_category_id']), is_deleted=False)
     if not self.target_category.can_create_events(session.user):
         raise Forbidden(_("You may only move events to categories where you are allowed to create events."))
Exemplo n.º 3
0
 def _process_args(self):
     RHManageEventBase._process_args(self)
     self.obj = get_object_from_args()[2]
     if self.obj is None:
         raise NotFound
Exemplo n.º 4
0
 def _process_args(self):
     RHManageEventBase._process_args(self)
     self.editable_type = EditableType[request.view_args['type']]
Exemplo n.º 5
0
 def _process_args(self, target_category, comment):
     RHManageEventBase._process_args(self)
     self.target_category = target_category
     self.comment = comment
Exemplo n.º 6
0
 def _process_args(self):
     RHManageEventBase._process_args(self)
     self.request = self.event.pending_move_request
     if not self.request:
         raise NotFound
Exemplo n.º 7
0
 def _process_args(self):
     RHManageEventBase._process_args(self)
     self.obj = get_object_from_args()[2]
     if self.obj is None:
         raise NotFound
Exemplo n.º 8
0
 def _process_args(self):
     RHManageEventBase._process_args(self)
     self.target_category = Category.get_one(int(request.form['target_category_id']), is_deleted=False)
     if not self.target_category.can_create_events(session.user):
         raise Forbidden(_("You may only move events to categories where you are allowed to create events."))