Mercurial > libervia-backend
comparison src/memory/memory.py @ 611:d722778b152c
core: added Priority management
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 10 Mar 2013 20:55:29 +0100 |
parents | 84a6e83157c2 |
children | 64db6758d223 |
comparison
equal
deleted
inserted
replaced
610:c8c07c920e30 | 611:d722778b152c |
---|---|
38 class Params(object): | 38 class Params(object): |
39 """This class manage parameters with xml""" | 39 """This class manage parameters with xml""" |
40 ### TODO: add desciption in params | 40 ### TODO: add desciption in params |
41 | 41 |
42 #TODO: move Watched in a plugin | 42 #TODO: move Watched in a plugin |
43 #TODO: when priority is changed, a new presence stanza must be emitted | |
44 #TODO: int type (Priority should be int instead of string) | |
43 default_xml = u""" | 45 default_xml = u""" |
44 <params> | 46 <params> |
45 <general> | 47 <general> |
46 </general> | 48 </general> |
47 <individual> | 49 <individual> |
48 <category name="Connection" label="%(category_connection)s"> | 50 <category name="Connection" label="%(category_connection)s"> |
49 <param name="JabberID" value="name@example.org/SàT" type="string" /> | 51 <param name="JabberID" value="name@example.org/SàT" type="string" /> |
50 <param name="Password" value="" type="password" /> | 52 <param name="Password" value="" type="password" /> |
53 <param name="Priority" value="50" type="string" /> | |
51 <param name="Server" value="example.org" type="string" /> | 54 <param name="Server" value="example.org" type="string" /> |
52 <param name="Port" value="5222" type="string" /> | 55 <param name="Port" value="5222" type="string" /> |
53 <param name="NewAccount" value="%(label_NewAccount)s" type="button" callback_id="registerNewAccount"/> | 56 <param name="NewAccount" value="%(label_NewAccount)s" type="button" callback_id="registerNewAccount"/> |
54 <param name="autoconnect" label="%(label_autoconnect)s" value="true" type="bool" /> | 57 <param name="autoconnect" label="%(label_autoconnect)s" value="true" type="bool" /> |
55 <param name="autodisconnect" label="%(label_autodisconnect)s" value="false" type="bool" /> | 58 <param name="autodisconnect" label="%(label_autodisconnect)s" value="false" type="bool" /> |