Commit graph

970 commits

Author SHA1 Message Date
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
9d24e951d3 plugin XEP-0115: fixed bad disco_infos construction 2014-03-31 20:19:34 +02:00
souliane
b1fbfe3292 memory (disco): bug fix in findFeaturesSet 2014-03-31 17:50:07 +02:00
Goffi
43657dcb15 core (XMPP): typo again 2014-03-31 17:12:09 +02:00
Goffi
3dd3af254d core (XMPP): fixed typo 2014-03-31 17:10:10 +02:00
Goffi
0fa3105b23 core (XMPP): added warning when a contact ins roster is not subscribed from or to 2014-03-31 17:07:25 +02:00
Goffi
a8d12fb6de plulgin XEP-0115: fixed caps_optimize init 2014-03-31 16:57:02 +02:00
Goffi
bbb546402f plugin XEP-0065: fixed initialisation sequence 2014-03-31 16:08:15 +02:00
Goffi
7aa7895208 quick frontends: first connection fixes 2014-03-31 15:22:35 +02:00
Goffi
3f0482e523 plugin account: reverted patch abd3a75d629c 2014-03-31 12:35:59 +02:00
Goffi
e488c674a9 plugin xep-0115: caps optimisation 2014-03-31 12:24:20 +02:00
Goffi
c6884f14d5 plugin XEP-0092: use of checkFeature instead of hasFeature + timeout + message adapted to failure if software version is not available 2014-03-31 12:23:13 +02:00
Goffi
c0105db63c core (disco): added checkFeature method + fixed hasFeature test 2014-03-31 12:23:13 +02:00
Goffi
d454d9a66e plugin XEP-0045: profileConnected return the deferred, so muc service presence is checked before the end of initialisation 2014-03-31 12:23:13 +02:00
Goffi
83959c7c96 core: fixed bad closure in connection intialisation sequence (profileConnected in plugins were not called correctly) 2014-03-31 12:23:13 +02:00
Goffi
9f5df82f1e plugin account: prosody gid is used to spawn prosodyctl process 2014-03-31 12:23:10 +02:00
Goffi
c69c9e95de core (XMPP): fix status in presence 2014-03-28 19:19:11 +01:00
Goffi
56ed5f13a5 core(memory): fixed last resource 2014-03-28 19:11:00 +01:00
Goffi
5d634df2f7 plugin XEP-0092: feature check before requesting version 2014-03-28 18:19:29 +01:00
Goffi
95678d7967 core, plugin XEP-0115: discovery refactoring:
- hashing algorithm of XEP-0115 has been including in core
    - our own hash is still calculated by XEP-0115 and can be regenerated with XEP_0115.recalculateHash
    - old discovery methods have been removed. Now the following methods are used:
        - hasFeature: tell if a feature is available for an entity
        - getDiscoInfos: self explaining
        - getDiscoItems: self explaining
        - findServiceEntities: return all available items of an entity which given (category, type)
        - findFeaturesSet: search for a set of features in entity + entity's items
      all these methods are asynchronous, and manage cache automatically
    - XEP-0115 manage in a better way hashes, and now use a trigger for presence instead of monkey patch
    - new FeatureNotFound exception, when we want to do something which is not available
    - refactored client initialisation sequence, removed client.initialized Deferred
    - added constant APP_URL
    - test_plugin_xep_0033.py has been temporarly deactivated, the time to adapt it
    - lot of cleaning
2014-03-28 18:07:22 +01: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
2dcca42c19 core: more organisation in constants.py 2014-03-28 18:07:13 +01:00
Goffi
a6897c76e0 core, plugins: host.getClient now raise an exception instead of returning None when no profile is found, plugins have been adapted consequently and a bit cleaned 2014-03-28 18:07:02 +01:00
Goffi
ed9df2984d misc: precisions about pyjamas in README4PACKAGERS 2014-03-28 18:06:51 +01:00
Goffi
0ff17993f2 wix: fixed onShowProfile 2014-03-27 10:36:20 +01:00
souliane
f6673e0725 plugin account, groupblog: user can erase all their microblogs at once 2014-03-27 02:24: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
fceb06836f memory: be sure that local_dir exists before creating a new database 2014-03-25 14:57:38 +01:00
souliane
1066fdb4eb memory: bug fix the current local_dir after sat.conf is auto-updated 2014-03-24 16:43:08 +01:00
souliane
03d4dcf029 plugin account: bug fix profile deletion from the database + unsubscribe the contacts 2014-03-24 16:21:14 +01:00
souliane
10aa504a7a core: presence stanzas were sent twice 2014-03-24 10:16:07 +01:00
souliane
a8b4e2593f misc: updated setup.py and README4PACKAGERS 2014-03-23 22:34:24 +01:00
souliane
1002e60f6f misc: sat stop would not kill all sat instances anymore 2014-03-23 22:44:49 +01:00
souliane
3075585d9d core, memory: use XDG recommended paths as the defaults for the config and local directories 2014-03-23 22:43:43 +01:00
Goffi
90fc3d78e0 plugin text commands: commands are now sorted in /help 2014-03-24 15:18:53 +01:00
Goffi
b826dd7c10 plugin XEP-0045: added user information to /whois text command 2014-03-24 14:46:18 +01:00
Goffi
9ac686c0a9 plugin text-commands: fixed name conflicts management + plugin parrot: removed now done TODO 2014-03-24 13:49:37 +01:00
Goffi
8a52f6defa plugin text commands: refactoring, text now only contain main commands, and other plugin can add commands themselve:
- registerTextCommands can be called by a plugin in its __init__ method, it looks for methods starting with "cmd_" and register them as new commands
    - addWhoIsCb: add a callback to /whois command, the callback can complete whois informations
    - plugins parrot, XEP-0045 and XEP-0092 now manage their own commands
2014-03-24 10:57:15 +01:00
Goffi
1339efa9f0 core: plugins now accepts recommendations:
- "recommendations" key can be used in PLUGIN_INFO
    - if a plugin can't be found an ImportError is raised if it's a dependency, if it's a recommendation only a warning message is shown, and plugins importation continue
2014-03-23 10:02:50 +01:00
souliane
032c34cfdb test: fix tests fo plugins XEP-0033 and XEP-0085 2014-03-22 18:47:17 +01:00
Goffi
6d768028d1 core: removed default_config:
- constants in core.default_config moved to core.constants
    - removed unused host.getConst and host.setConst
    - APP_NAME* used where it make sense
2014-03-22 17:48:10 +01:00
Goffi
93826f1ce8 core: sendMessageTrigger now manage pre and post treatments, which happen before or after XML generation 2014-03-22 15:34:05 +01:00
Goffi
bd3890a8f0 plugin text commands: refactoring:
- commands can now return a deferred
    - if commands return True, message is sent, else it is cancelled
    - the escape sequence is now '//' instead of '\/'
    - added software version to /whois command
2014-03-22 13:47:33 +01:00
Goffi
0ff40fcdac plugin XEP-0092: new plugin (software version) 2014-03-22 13:44:33 +01:00