comparison src/plugins/plugin_misc_groupblog.py @ 731:80c1072390f3

plugin microbloging: fixes bad calls
author Goffi <goffi@goffi.org>
date Fri, 13 Dec 2013 17:18:29 +0100
parents ade9997fabfa
children 03744d9ebc13
comparison
equal deleted inserted replaced
730:32bbabe809da 731:80c1072390f3
437 437
438 def _getMassiveLastGroupBlogs(self, publishers_type, publishers, max_items=10, profile_key='@NONE@'): 438 def _getMassiveLastGroupBlogs(self, publishers_type, publishers, max_items=10, profile_key='@NONE@'):
439 if publishers_type == 'JID': 439 if publishers_type == 'JID':
440 publishers_jids = [jid.JID(publisher) for publisher in publishers] 440 publishers_jids = [jid.JID(publisher) for publisher in publishers]
441 else: 441 else:
442 publishers_jid = publishers 442 publishers_jids = publishers
443 return getMassiveLastGroupBlogs(publishers_type, publishers_jid, max_items, profile_key) 443 return self.getMassiveLastGroupBlogs(publishers_type, publishers_jids, max_items, profile_key)
444 444
445 def getMassiveLastGroupBlogs(self, publishers_type, publishers, max_items=10, profile_key='@NONE@'): 445 def getMassiveLastGroupBlogs(self, publishers_type, publishers, max_items=10, profile_key='@NONE@'):
446 """Get the last published microblogs for a list of groups or jids 446 """Get the last published microblogs for a list of groups or jids
447 @param publishers_type: type of the list of publishers (one of "GROUP" or "JID" or "ALL") 447 @param publishers_type: type of the list of publishers (one of "GROUP" or "JID" or "ALL")
448 @param publishers: list of publishers, according to "publishers_type" (list of groups or list of jids) 448 @param publishers: list of publishers, according to "publishers_type" (list of groups or list of jids)
512 512
513 def _massiveSubscribeGroupBlogs(self, publishers_type, publishers, profile_key='@NONE@'): 513 def _massiveSubscribeGroupBlogs(self, publishers_type, publishers, profile_key='@NONE@'):
514 if publishers_type == 'JID': 514 if publishers_type == 'JID':
515 publishers_jids = [jid.JID(publisher) for publisher in publishers] 515 publishers_jids = [jid.JID(publisher) for publisher in publishers]
516 else: 516 else:
517 publishers_jid = publishers 517 publishers_jids = publishers
518 return massiveSubscribeGroupBlogs(publishers_type, publishers_jid, profile_key) 518 return self.massiveSubscribeGroupBlogs(publishers_type, publishers_jids, profile_key)
519 519
520 def massiveSubscribeGroupBlogs(self, publishers_type, publishers, profile_key='@NONE@'): 520 def massiveSubscribeGroupBlogs(self, publishers_type, publishers, profile_key='@NONE@'):
521 """Subscribe microblogs for a list of groups or jids 521 """Subscribe microblogs for a list of groups or jids
522 @param publishers_type: type of the list of publishers (one of "GROUP" or "JID" or "ALL") 522 @param publishers_type: type of the list of publishers (one of "GROUP" or "JID" or "ALL")
523 @param publishers: list of publishers, according to "publishers_type" (list of groups or list of jids) 523 @param publishers: list of publishers, according to "publishers_type" (list of groups or list of jids)