comparison src/memory/params.py @ 1480:8d61160ee4b8

core, plugin watched: new plugin, show an alert when a watched entity goes online
author Goffi <goffi@goffi.org>
date Thu, 20 Aug 2015 18:43:56 +0200
parents ac522c4dab0e
children de71cd99ba9b
comparison
equal deleted inserted replaced
1479:057f0714f27e 1480:8d61160ee4b8
37 37
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
43 #TODO: when priority is changed, a new presence stanza must be emitted 42 #TODO: when priority is changed, a new presence stanza must be emitted
44 #TODO: int type (Priority should be int instead of string) 43 #TODO: int type (Priority should be int instead of string)
45 default_xml = u""" 44 default_xml = u"""
46 <params> 45 <params>
47 <general> 46 <general>
60 <param name="%(force_server_param)s" value="" type="string" /> 59 <param name="%(force_server_param)s" value="" type="string" />
61 <param name="%(force_port_param)s" value="" type="int" constraint="1;65535" /> 60 <param name="%(force_port_param)s" value="" type="int" constraint="1;65535" />
62 <param name="NewAccount" label="%(new_account_label)s" type="button" callback_id="registerNewAccount"/> 61 <param name="NewAccount" label="%(new_account_label)s" type="button" callback_id="registerNewAccount"/>
63 <param name="autoconnect" label="%(autoconnect_label)s" value="true" type="bool" security="0" /> 62 <param name="autoconnect" label="%(autoconnect_label)s" value="true" type="bool" security="0" />
64 <param name="autodisconnect" label="%(autodisconnect_label)s" value="false" type="bool" security="0" /> 63 <param name="autodisconnect" label="%(autodisconnect_label)s" value="false" type="bool" security="0" />
65 </category>
66 <category name="Misc" label="%(category_misc)s">
67 <param name="Watched" value="test@Jabber.goffi.int" type="string" />
68 </category> 64 </category>
69 </individual> 65 </individual>
70 </params> 66 </params>
71 """ % { 67 """ % {
72 'category_general': D_("General"), 68 'category_general': D_("General"),