Mercurial > libervia-backend
comparison src/plugins/deprecated_misc_cs.py @ 968:75f3b3b430ff
tools, frontends, memory: param definition and XMLUI handle multi-selection for list widgets:
- we need to update urwid_satext to revision 79
- no more "value" attribute value in the "list" element, use
HTML-style "select" attribute in the "option" elements instead
- /!\ param saving do not handle multiple values yet!
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 01 Apr 2014 21:21:13 +0200 |
parents | 1fe00f0c9a91 |
children |
comparison
equal
deleted
inserted
replaced
967:242bd4fc654c | 968:75f3b3b430ff |
---|---|
161 interface = XMLUI('window', 'tabs', title='CouchSurfing management') | 161 interface = XMLUI('window', 'tabs', title='CouchSurfing management') |
162 interface.addCategory(_("Messages"), "vertical") | 162 interface.addCategory(_("Messages"), "vertical") |
163 interface.addText(_("G'day %(name)s, you have %(nb_message)i unread message%(plural_mess)s and %(unread_CR_mess)s unread couch request message%(plural_CR)s\nIf you want to send a message, select the recipient(s) in the list below") % {'name': user_name, 'nb_message': unread_mess, 'plural_mess': 's' if unread_mess > 1 else '', 'unread_CR_mess': unread_CR_mess, 'plural_CR': 's' if unread_CR_mess > 1 else ''}) | 163 interface.addText(_("G'day %(name)s, you have %(nb_message)i unread message%(plural_mess)s and %(unread_CR_mess)s unread couch request message%(plural_CR)s\nIf you want to send a message, select the recipient(s) in the list below") % {'name': user_name, 'nb_message': unread_mess, 'plural_mess': 's' if unread_mess > 1 else '', 'unread_CR_mess': unread_CR_mess, 'plural_CR': 's' if unread_CR_mess > 1 else ''}) |
164 if unread_mess: | 164 if unread_mess: |
165 interface.addButton('plugin_CS_showUnreadMessages', 'showUnreadMessages', _('Show unread message%(plural)s in external web browser') % {'plural': 's' if unread_mess > 1 else ''}) | 165 interface.addButton('plugin_CS_showUnreadMessages', 'showUnreadMessages', _('Show unread message%(plural)s in external web browser') % {'plural': 's' if unread_mess > 1 else ''}) |
166 interface.addList(friends_list, 'friends', style=['multi']) | 166 interface.addList(friends_list, 'friends', None, style=['multi']) |
167 interface.changeLayout('pairs') | 167 interface.changeLayout('pairs') |
168 interface.addLabel(_("Subject")) | 168 interface.addLabel(_("Subject")) |
169 interface.addString('subject') | 169 interface.addString('subject') |
170 interface.changeLayout('vertical') | 170 interface.changeLayout('vertical') |
171 interface.addLabel(_("Message")) | 171 interface.addLabel(_("Message")) |