Exemple #1
0
 def delete_invitation(self, club):
     try:
         database.delete_rows('invitation', {
             'invitation_club': club.id,
             'invitation_user': self.id
         })
     except NoRow:
         pass
Exemple #2
0
 def signup_undo(self, user):
     database.delete_rows('signup', {
         'signup_act': self.id,
         'signup_user': user.id
     })
Exemple #3
0
 def remove_picture(self, upload):
     database.delete_rows('act_pic', {
         'actpic_act': self.id,
         'actpic_upload': upload.id
     })
     del self.pictures
Exemple #4
0
 def attend_undo(self, user):
     database.delete_rows('attendance', {
         'att_act': self.id,
         'att_user': user.id
     })
     del self.attendance
Exemple #5
0
 def remove_member(self, user):
     database.delete_rows('club_member', {
         'cm_club': self.id,
         'cm_user': user.id
     })
     del self.members