Primitivus: chat window / text sending.

Primitivus has now the most basics features \o/
- core: new getVersion method
- primitivus: new debug key (C-d), only work if SàT is in dev version (D in version)
- quick_app: new post_init method, used for automatique task like auto-plug
- primitivus: lists now use genericList (Box) or List (Flow)
- primitivus: List now manage correctly its size
- primitivus: new FocusFrame widget which manage focus changing with 'tab'
- primitivus: advancedEdit now manage 'click' signal
- primitivus: contactList now manager 'change' and 'click' signals
- primitivus: Chat window now working
This commit is contained in:
Goffi 2010-07-05 19:13:36 +08:00
commit a21a658c33
2 changed files with 281 additions and 56 deletions

View file

@ -71,6 +71,14 @@ class QuickApp():
"""Tell if the profile is currently followed by the application"""
return profile in self.profiles.keys()
def postInit(self):
"""Must be called after __init__, do all automatic task (auto plug profile)"""
if self.options.profile:
if not self.bridge.getProfileName(self.options.profile):
error(_("Trying to plug an unknown profile (%s)" % self.options.profile))
else:
self.plug_profile(self.options.profile)
def check_options(self):
"""Check command line options"""
usage=_("""

View file

@ -80,7 +80,8 @@ class QuickContactManagement():
#no more resource available: the contact seems really disconnected
del self.__contactlist[entity.short]
except KeyError:
pass
error(_('INTERNAL ERROR: Key error'))
raise
def update(self, entity, key, value):
"""Update attribute of contact