comparison src/browser/libervia_main.py @ 623:4f7550a083b4 frontends_multi_profiles

server and browser sides: fixes bad call to "subscription" bridge method
author souliane <souliane@mailoo.org>
date Sun, 22 Feb 2015 21:42:14 +0100
parents ac5881d683d3
children 9092e624bb27
comparison
equal deleted inserted replaced
622:2c41ce0c3b3f 623:4f7550a083b4
813 #The user want to subscribe to our presence 813 #The user want to subscribe to our presence
814 _dialog = None 814 _dialog = None
815 msg = HTML('The contact <b>%s</b> want to add you in his/her contact list, do you accept ?' % html_tools.html_sanitize(entity)) 815 msg = HTML('The contact <b>%s</b> want to add you in his/her contact list, do you accept ?' % html_tools.html_sanitize(entity))
816 816
817 def ok_cb(ignore): 817 def ok_cb(ignore):
818 self.bridge.call('subscription', None, "subscribed", entity, '', _dialog.getSelectedGroups()) 818 self.bridge.call('subscription', None, "subscribed", entity)
819 self.bridge.updateContact(entity, '', _dialog.getSelectedGroups())
819 820
820 def cancel_cb(ignore): 821 def cancel_cb(ignore):
821 self.bridge.call('subscription', None, "unsubscribed", entity, '', '') 822 self.bridge.call('subscription', None, "unsubscribed", entity, '', '')
822 823
823 _dialog = dialog.GroupSelector([msg], self.contact_panel.getGroups(), [], "Add", ok_cb, cancel_cb) 824 _dialog = dialog.GroupSelector([msg], self.contact_panel.getGroups(), [], "Add", ok_cb, cancel_cb)