Mercurial > libervia-web
comparison src/browser/libervia_main.py @ 909:e8b133b77aa4
browser, server: update to get compatibility with 0.7-dev (not finished):
Q&D update to restore compatibility
- version changed to 0.7D
- contact list has been modified to be compatible with changes, but it doesn't take profit of improvment yet
- messageSend partially work, there is a disconnection and an error in console logs when sending a message
- message are not received yet
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 09 Aug 2016 01:07:15 +0200 |
parents | 54f6c5b86a87 |
children | 58f611481e6d |
comparison
equal
deleted
inserted
replaced
908:f38b8be94131 | 909:e8b133b77aa4 |
---|---|
364 self.plug_profiles([C.PROF_KEY_NONE]) # XXX: None was used intitially, but pyjamas bug when using variable arguments and None is the only arg. | 364 self.plug_profiles([C.PROF_KEY_NONE]) # XXX: None was used intitially, but pyjamas bug when using variable arguments and None is the only arg. |
365 | 365 |
366 def profilePlugged(self, dummy): | 366 def profilePlugged(self, dummy): |
367 self._profile_plugged = True | 367 self._profile_plugged = True |
368 QuickApp.profilePlugged(self, C.PROF_KEY_NONE) | 368 QuickApp.profilePlugged(self, C.PROF_KEY_NONE) |
369 contact_list = self.widgets.getOrCreateWidget(ContactList, None, on_new_widget=None, profile=C.PROF_KEY_NONE) | |
370 self.panel.addContactList(contact_list) | |
371 | |
372 # FIXME: the contact list height has to be set manually the first time | |
373 self.resize() | |
374 | |
369 # XXX: as contact_list.update() is slow and it's called a lot of time | 375 # XXX: as contact_list.update() is slow and it's called a lot of time |
370 # during profile plugging, we prevent it before it's plugged | 376 # during profile plugging, we prevent it before it's plugged |
371 # and do all at once now | 377 # and do all at once now |
372 contact_list = self.contact_list | |
373 contact_list.update() | 378 contact_list.update() |
374 | 379 |
375 try: | 380 try: |
376 self.mblog_available = C.bool(self.features['XEP-0277']['available']) | 381 self.mblog_available = C.bool(self.features['XEP-0277']['available']) |
377 except KeyError: | 382 except KeyError: |
402 #we ask for our own microblogs: | 407 #we ask for our own microblogs: |
403 # self.loadOurMainEntries() | 408 # self.loadOurMainEntries() |
404 | 409 |
405 def gotDefaultMUC(default_muc): | 410 def gotDefaultMUC(default_muc): |
406 self.default_muc = default_muc | 411 self.default_muc = default_muc |
407 self.bridge.getDefaultMUC(profile=None, callback=gotDefaultMUC) | 412 self.bridge.mucGetDefaultService(profile=None, callback=gotDefaultMUC) |
408 | |
409 def addContactList(self, dummy): | |
410 contact_list = ContactList(self) | |
411 self.panel.addContactList(contact_list) | |
412 | |
413 # FIXME: the contact list height has to be set manually the first time | |
414 self.resize() | |
415 | |
416 return contact_list | |
417 | 413 |
418 def newWidget(self, wid): | 414 def newWidget(self, wid): |
419 log.debug(u"newWidget: {}".format(wid)) | 415 log.debug(u"newWidget: {}".format(wid)) |
420 self.addWidget(wid) | 416 self.addWidget(wid) |
421 | 417 |