Mercurial > libervia-backend
changeset 1227:4da2e4d58bd0
memory (params): add parameters "Show offline contacts" and "Show empty groups"
author | souliane <souliane@mailoo.org> |
---|---|
date | Mon, 06 Oct 2014 11:20:43 +0200 |
parents | 72f25d671368 |
children | 2e1b4e7c8eb8 |
files | src/core/constants.py src/memory/params.py |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/core/constants.py Mon Oct 06 11:18:37 2014 +0200 +++ b/src/core/constants.py Mon Oct 06 11:20:43 2014 +0200 @@ -46,6 +46,8 @@ GENERAL = "general" # General parameters HISTORY_LIMIT = "History" + SHOW_OFFLINE_CONTACTS = "Offline contacts" + SHOW_EMPTY_GROUPS = "Empty groups" # Parameters related to connection FORCE_SERVER_PARAM = "Force server" FORCE_PORT_PARAM = "Force port"
--- a/src/memory/params.py Mon Oct 06 11:18:37 2014 +0200 +++ b/src/memory/params.py Mon Oct 06 11:20:43 2014 +0200 @@ -45,6 +45,8 @@ <category name="General" label="%(category_general)s"> <param name="Password" value="" type="password" /> <param name="%(history_param)s" label="%(history_label)s" value="20" constraint="0;100" type="int" security="0" /> + <param name="%(show_offline_contacts)s" label="%(show_offline_contacts_label)s" value="false" type="bool" security="0" /> + <param name="%(show_empty_groups)s" label="%(show_empty_groups_label)s" value="false" type="bool" security="0" /> </category> <category name="Connection" label="%(category_connection)s"> <param name="JabberID" value="name@example.org/SàT" type="string" /> @@ -66,6 +68,10 @@ 'category_connection': D_("Connection"), 'history_param': C.HISTORY_LIMIT, 'history_label': D_('Chat history limit'), + 'show_offline_contacts': C.SHOW_OFFLINE_CONTACTS, + 'show_offline_contacts_label': D_('Show offline contacts'), + 'show_empty_groups': C.SHOW_EMPTY_GROUPS, + 'show_empty_groups_label': D_('Show empty groups'), 'force_server_param': C.FORCE_SERVER_PARAM, 'force_port_param': C.FORCE_PORT_PARAM, 'new_account_label': D_("Register new account"),