Пример #1
0
 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
 def can_tag(self, taggee):
     return is_friend_of(self, taggee.id) and taggee.allow_tag()
Пример #3
0
 def can_tag(self, taggee):
     return is_friend_of(self, taggee.id) and taggee.allow_tag()
Пример #4
0
 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))