示例#1
0
 def completion_muc_vcard(self, the_input):
     users = [user.nick for user in self.api.current_tab().users]
     users.extend([
         resource.jid for contact in roster.get_contacts()
         for resource in contact.resources
     ])
     return Completion(the_input.auto_completion, users, '', quotify=False)
示例#2
0
文件: vcard.py 项目: louiz/poezio
 def completion_muc_vcard(self, the_input):
     users = [user.nick for user in self.api.current_tab().users]
     users.extend([
         resource.jid for contact in roster.get_contacts()
         for resource in contact.resources
     ])
     return Completion(the_input.auto_completion, users, '', quotify=False)
示例#3
0
 def resources(self):
     l = []
     for contact in roster.get_contacts():
         for resource in contact.resources:
             l.append(resource.jid)
     return l
示例#4
0
 def completion_vcard(self, the_input):
     contacts = [contact.bare_jid for contact in roster.get_contacts()]
     return Completion(the_input.auto_completion, contacts, '', quotify=False)
示例#5
0
 def resources(self):
     l = []
     for contact in roster.get_contacts():
         for resource in contact.resources:
             l.append(resource.jid)
     return l
示例#6
0
文件: vcard.py 项目: louiz/poezio
 def completion_vcard(self, the_input):
     contacts = [contact.bare_jid for contact in roster.get_contacts()]
     return Completion(
         the_input.auto_completion, contacts, '', quotify=False)