Mercurial > libervia-web
diff src/server/server.py @ 653:e1d067378ad3 frontends_multi_profiles
browser_side: fixes sending/updating blog message/comment
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 27 Feb 2015 01:45:34 +0100 |
parents | 2df91d0308ac |
children | a8fddccf5b84 |
line wrap: on
line diff
--- a/src/server/server.py Fri Feb 27 01:11:34 2015 +0100 +++ b/src/server/server.py Fri Feb 27 01:45:34 2015 +0100 @@ -243,9 +243,9 @@ def jsonrpc_sendMblog(self, type_, dest, text, extra={}): """ Send microblog message - @param type_: one of "PUBLIC", "GROUP" - @param dest: destinees (list of groups, ignored for "PUBLIC") - @param text: microblog's text + @param type_ (unicode): one of "PUBLIC", "GROUP" + @param dest (tuple(unicode)): recipient groups (ignored for "PUBLIC") + @param text (unicode): microblog's text """ profile = ISATSession(self.session).profile extra['allow_comments'] = 'True' @@ -257,7 +257,7 @@ if type_ == "PUBLIC": #This text if for the public microblog log.debug("sending public blog") - return self.sat_host.bridge.sendGroupBlog("PUBLIC", [], text, extra, profile) + return self.sat_host.bridge.sendGroupBlog("PUBLIC", (), text, extra, profile) else: log.debug("sending group blog") dest = dest if isinstance(dest, list) else [dest]