Commit graph libervia-backend/frontends
Author SHA1 Message Date
souliane
fa430d5105 quick_app, primitivus: update the connection mechanism to ask for non empty profile passwords 2014-05-07 16:11:32 +02:00
souliane
6a7f88858e jp: option '-c' is not longer a flag but a string to define the profile password:
- no '-c': same behavior as before, do not connect the profile
- '-c' with not following value: autoconnect and use the default value '' as profile password
- '-c' with a following value: autoconnect and use that value as profile password

Note that previous scripts may not work. For example, even if the profile password for "test1" is empty:
  jp disco -p test1 -c contact@host.net
must be changed to:
  jp disco -p test1 -c -- contact@host.net
Otherwise, argparse will think that "contact@host.net" is the password and that the target JID is missing.
2014-05-07 16:10:20 +02:00
souliane
0d28c03d27 core, memory, bridge: added profile password + password encryption:
/!\ This changeset updates the database version to 2 and modify the database content!

Description:
    - new parameter General / Password to store the profile password
    - profile password is initialized with XMPP password value, it is stored hashed
    - bridge methods asyncCreateProfile/asyncConnect takes a new argument "password" (default = "")
    - bridge method asyncConnect returns a boolean (True = connection already established, False = connection initiated)
    - profile password is checked before initializing the XMPP connection

    - new private individual parameter to store the personal encryption key of each profile
    - personal key is randomly generated and encrypted with the profile password
    - personal key is decrypted after profile authentification and stored in a Sessions instance
    - personal key is used to encrypt/decrypt other passwords when they need to be retrieved/modified

    - modifying the profile password re-encrypt the personal key
    - Memory.setParam now returns a Deferred (the bridge method "setParam" is unchanged)
    - Memory.asyncGetParamA eventually decrypts the password, Memory.getParamA would fail on a password parameter

TODO:
    - if profile authentication is OK but XMPP authentication is KO, prompt the user for another XMPP password
    - fix the method "registerNewAccount" (and move it to a plugin)
    - remove bridge method "connect", sole "asyncConnect" should be used
2014-05-07 16:02:23 +02:00
Goffi
a2f1522efd bridge (constructor): fixed D-Bus frontend generator for async method without sig_in + fixed --debug option + regenerated bridge to fix bad frontend D-Bus bridge. 2014-05-15 16:35:28 +02:00
Goffi
f0b2c7dea3 core: added a getReady method which can be called by frontends to ensure that backend is fully initialised before doing anything + this ckeck is automatically done in asyncConnect 2014-05-15 16:02:16 +02:00
Goffi
ed2abd3971 core (log): moved configuration to core.log_config; this avoid import issues with pyjamas. 2014-05-14 12:51:24 +02:00
souliane
1eeddf5900 better PEP-8 compliance 2014-05-07 15:44:31 +02:00
souliane
2e6420fb49 memory, jp: added jp commands to load/save parameters template 2014-05-04 18:43:54 +02:00
Goffi
2fddb02872 wix: use of new logging system 2014-05-05 20:12:21 +02:00
Goffi
39989cc985 primitivus: use of new logging system:
- default output is \\memory
    - logs can be seen with :messages command
    - now useless writeLog method has been removed
2014-05-05 20:12:19 +02:00
Goffi
468206e529 quick_frontend: use of new logging system 2014-05-05 18:58:34 +02:00
souliane
f3a0686176 primitivus: fixes contact group update 2014-04-27 18:22:12 +02:00
Goffi
501bc92528 core: use of the new core.log module:
/!\ this is a massive refactoring and was largely automated, it probably did bring some bugs /!\
2014-04-19 19:19:19 +02:00
souliane
e91a30729f core, frontends: unify the roster management UIs in sat/stdui/ui_contact_list.py 2014-04-03 16:10:44 +02:00
Goffi
9dcec3eab7 jp: added bookmarks subcommands 2014-04-07 16:24:29 +02:00
souliane
38eb876e94 tools, frontends (xmlui): add Widget.setInternalCallback:
- to add UI callback not communication with the bridge
    - a list of predefined actions can be used to copy, move, select values
    - extra data can be passed within the 'internal_data' element
TODO: frontend side operation to retrieve the data from node to data structure should be generic
2014-04-03 14:56:16 +02:00
souliane
35d66de820 frontends (xmlui): add setter methods + fixes:
- add _xmluiSetValue for all widgets + _xmluiAddValues for ListWidget
    - fix popup dialog OK button + _xmluiOnClick for ButtonWidget
2014-04-03 14:49:05 +02:00
souliane
ec579aff81 reverted changeset 5c7707c958d8 (revision 969) 2014-04-03 14:38:48 +02:00
Goffi
87fea26537 jp (info/disco): fixed disco loop when --connect is used 2014-04-02 12:37:32 +02:00
Goffi
ec08d50aba jp: "disco" subcommand, moved into a new "info" subcommand + added "version" subcommand which get software version 2014-04-02 12:31:15 +02:00
Goffi
647487fc1d jp: using C.APP_URL for application url 2014-04-02 12:11:07 +02:00
souliane
6608eafb9f tools, frontends (xmlui): add setter methods for widgets + new widget InternalButton to process UI operations 2014-04-01 21:30:21 +02:00
souliane
608e2ba9fa 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!
2014-04-01 21:21:13 +02:00
souliane
8fa0b7b8c2 core, frontends (constants): frontends Const inheritates from core Const 2014-04-01 16:27:59 +02:00
Goffi
57d26c8377 jp: added disco subcommand 2014-04-01 21:16:39 +02:00
Goffi
ba2bed39ab jp: fixed jid unicode decoding 2014-04-01 21:16:02 +02:00
Goffi
a0d69ae187 jp: fixed missing import 2014-04-01 21:15:35 +02:00
Goffi
e95d04b69e core (disco): added discoInfos and discoItems bridge methods 2014-04-01 21:14:57 +02:00
Goffi
7aa7895208 quick frontends: first connection fixes 2014-03-31 15:22:35 +02:00
Goffi
382d49a628 core (memory): entities cache improvments:
- entities cache is no more limited to bare jid
    - resources are now automatically updated in bare jid cache
2014-03-28 18:07:17 +01:00
Goffi
0ff17993f2 wix: fixed onShowProfile 2014-03-27 10:36:20 +01:00
souliane
13586ac57b primitivus: do not display the presence/status dialog if the profile is not connected 2014-03-25 17:26:31 +01:00
souliane
bc9efbda82 bridge, frontends: display presence with the highest priority + reset your own presence when you (dis)connect 2014-03-20 21:18:18 +01:00
Goffi
e689f6bb34 core (memory): moved Params in its own module + introduced a new core/constants module, and moved some constants there 2014-03-21 16:08:11 +01:00
Goffi
399ac31e05 primitivus: EditBar doesn't propagate key pressed anymore if it manage a 'up' or 'down' event (history event) 2014-03-21 15:36:01 +01:00
Goffi
ab9b658e52 primitivus: PrimitivusVerticalContainer box widgets management:
/!\ Urwid SàText need to be updated /!\
    - updated PrimitivusTabsContainer._xmluiAddTab to manage Urwid SàText changes
    - if a box widget is added to PrimitivusVerticalContainer, if will use the full available space if it is alone, else it we have a height of 5 rows
2014-03-21 15:04:13 +01:00
Goffi
7feab1c6d9 primitivus: removed deprecated use of set_focus 2014-03-21 15:04:03 +01:00
souliane
67d15eb488 primitivus: display chat states (with symbols) for MUC participants 2014-03-17 13:24:55 +01:00
souliane
73b374f6fc quick_app: better PEP-8 compliance 2014-03-16 21:25:49 +01:00
souliane
3f233509ea frontends: added SYNTAX_TEXT in the constants 2014-03-10 22:19:11 +01:00
Matteo Cypriani
f0676dfa52 jp: updated main loop to gobject 3 2014-03-05 16:03:04 +01:00
Goffi
97b8554124 removed deprecated and really old Sortilege frontend, today Primitivus is the console frontend 2014-03-04 01:24:15 +01:00
souliane
d158589881 core, frontends: add method asyncDeleteProfile, remove synchronous methods createProfile and deleteProfile 2014-03-03 09:59:10 +01:00
souliane
5b3d5a2f42 plugin card_game: update to use the new XMLUI mechanism:
TODO: the new round is not starting after the scores have been displayed
2014-02-26 02:17:43 +01:00
Goffi
8f0cf4697b core (xmlui), frontends: handling of "text" type in params xml + bug fixes 2014-02-25 23:01:26 +01:00
souliane
b2f32986be frontends: fix typos, do not use logging in the xmlui tools: 2014-02-25 10:59:05 +01:00
souliane
a9cd2cab36 primitivus: displayed presence/status was not updated when the presence is "Online". 2014-02-18 19:37:29 +01:00
souliane
24beb81688 misc: fix unnamed arguments in format strings 2014-02-17 14:58:26 +01:00
souliane
5f59378f86 frontends (tools): addURLToImage makes an image clickable 2014-02-13 15:35:21 +01:00
souliane
d5611ae016 frontends: add COMMANDS constant for Wysiwyg edition + add "image" button info for the syntaxes 2014-02-13 10:42:29 +01:00