Beispiel #1
0
 def delete(self, *args, **kwargs):
     user_id = self.get_argument('user_id')
     boards = yield Board.remove_by_user_id(self.db, user_id)
     for board in boards:
         push_user_activity('bulk board remove', user_id, 'board', board)
     self.write('ok')
Beispiel #2
0
 def _push_activity(self, name, entity):
     entity_name = self.ENTITY_TYPE.__name__.lower()
     event_name = entity_name + ' ' + name
     push_user_activity(event_name, entity.get('user_id'), entity_name,
                        entity)
Beispiel #3
0
 def _push_activity(self, name, entity):
     entity_name = self.ENTITY_TYPE.__name__.lower()
     event_name = entity_name + ' ' + name
     push_user_activity(
         event_name, entity.get('user_id'), entity_name, entity)
Beispiel #4
0
 def delete(self, *args, **kwargs):
     user_id = self.get_argument('user_id')
     boards = yield Board.remove_by_user_id(self.db, user_id)
     for board in boards:
         push_user_activity('bulk board remove', user_id, 'board', board)
     self.write('ok')