Ejemplo n.º 1
0
 def _initData(self):
     kwargs = dict(subscription="both", isSelf=False)
     if self.groupId is not None:
         kwargs["group"] = self.groupId
     friends = list(
         map(lambda item: FriendWrapper(item), Friend.filter(**kwargs)))
     self.setAll(friends)
Ejemplo n.º 2
0
 def load(self):
     kwargs = dict(subscription="both", isSelf=False)
     if self.group_id is not None:
         kwargs["group"] = self.group_id
     friends = Friend.filter(**kwargs)
     return friends
Ejemplo n.º 3
0
 def load(self):
     kwargs = dict(subscription="both", isSelf=False)
     if self.group_id is not None:
         kwargs["group"] = self.group_id
     friends = Friend.filter(**kwargs)
     return friends
Ejemplo n.º 4
0
 def _initData(self):    
     kwargs = dict(subscription="both", isSelf=False)
     if self.groupId is not None:
         kwargs["group"] = self.groupId
     friends = list(Friend.filter(**kwargs))
     self.setAll(friends)