Esempio n. 1
0
 def ensureFriendNotExist(cls, **args):
     return ViewManager.ensureObjectNotExist(Friend,
                                             ErrorType.AlreadyAFriend,
                                             **args)
Esempio n. 2
0
 def ensureParticipationNotExist(cls, uid, pid):
     return ViewManager.ensureObjectNotExist(Participation,
                                             ErrorType.HaveParticipated,
                                             user_id=uid,
                                             project_id=pid)
Esempio n. 3
0
 def ensureUserNotExist(cls, **args):
     return ViewManager.ensureObjectNotExist(User,
                                             ErrorType.UsernameNotExist,
                                             **args)