コード例 #1
0
ファイル: models.py プロジェクト: Taaag/taaag
 def is_friend_of(self, other_id):
     return str(other_id) == '0' or (User.get_by_id(other_id)
                                     and is_friend_of(self, other_id))
コード例 #2
0
ファイル: models.py プロジェクト: Taaag/taaag
 def can_tag(self, taggee):
     return is_friend_of(self, taggee.id) and taggee.allow_tag()
コード例 #3
0
ファイル: models.py プロジェクト: Taaag/taaag
 def can_tag(self, taggee):
     return is_friend_of(self, taggee.id) and taggee.allow_tag()
コード例 #4
0
ファイル: models.py プロジェクト: Taaag/taaag
 def is_friend_of(self, other_id):
     return str(other_id) == '0' or (User.get_by_id(other_id) and is_friend_of(self, other_id))