Mercurial > libervia-web
diff browser_side/panels.py @ 242:a25aa882e09a
browser_side: add context menu for contact:
- for now only when a blog exists on the current libervia's server
- retrieve the server domain with the bridge method getNewAccountDomain
- getNewAccountDomain is also used to display the current libervia domain
in the dialogs (new contact default domain, messages for invalid contact or group)
author | souliane <souliane@mailoo.org> |
---|---|
date | Fri, 18 Oct 2013 11:14:55 +0200 |
parents | 86055ccf69c3 |
children | d7c41c84d062 |
line wrap: on
line diff
--- a/browser_side/panels.py Tue Oct 15 13:36:51 2013 +0200 +++ b/browser_side/panels.py Fri Oct 18 11:14:55 2013 +0200 @@ -455,7 +455,7 @@ """Insert several microblogs at once @param mblogs: dictionary of microblogs, as the result of getMassiveLastGroupBlogs """ - print "Massive insertion of microblogs" + print "Massive insertion of %d microblogs" % len(mblogs) for publisher in mblogs: print "adding blogs for [%s]" % publisher for mblog in mblogs[publisher]: @@ -1001,6 +1001,8 @@ item.setStyleName(self.item_style) item.setTitle(entry["desc"] if "desc" in entry.keys() else title) menu.add(item) + if len(menu.getChildren()) == 0: + return self.add(menu) if self.vertical is True: x = sender.getAbsoluteLeft() + sender.getOffsetWidth()