def _link_booking(self, booking, type_, id_, link_back): obj = get_linked_object(type_, id_) if obj is None or not obj.event.can_manage(session.user): return booking.linked_object = obj if link_back: obj.inherit_location = False obj.room = self.room
def _process_args(self): type_ = LinkType[request.view_args['type']] id_ = request.view_args['id'] self.linked_object = get_linked_object(type_, id_)
def _link_booking(self, booking, type_, id_): obj = get_linked_object(type_, id_) if obj is not None and obj.event.can_manage(session.user): booking.linked_object = obj