Commit graph libervia-backend/src
Author SHA1 Message Date
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
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
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
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
Goffi
c67faecba1 core: added IQ_SET to core.constants + getLastResource now manage correctly jid.JID 2014-03-22 13:42:59 +01:00
souliane
c5e3da853c bridge: remove unecessary signals/methods declarations 2014-03-21 09:09:51 +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
005ec59a8a core: use of Const for profile_key + replaced '@DEFAULT@' default profile_key by '@NONE@' 2014-03-21 16:27:09 +01:00
Goffi
2a40da1664 tests: tests fixes 2014-03-21 16:19:46 +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
3be53bdc69 core (XMLUI): BoolWidget now accept real boolean for value 2014-03-21 15:03:56 +01:00
Goffi
9bd81494d1 core: minor docstring fixes 2014-03-21 15:03:51 +01:00
souliane
c3aea2f388 plugin XEP-0085: bug fixes, especially for groupchat messages 2014-03-18 13:52:12 +01:00
souliane
b0896b53b7 tools: xml_tools.ElementParser do not replace '\n' and '\t' with ' ' by default 2014-03-15 00:15:49 +01:00
souliane
3249e50efe test: update radiocol test regarding the last changes 2014-03-15 01:19:22 +01:00
souliane
e8f9ca2c0f plugin radiocol: preload signal also contains the uploader nickname 2014-03-11 11:59:11 +01:00
souliane
fcb9eeb570 plugin radiocol: add MP3 support 2014-03-05 23:24:03 +01:00
souliane
5b2e60e22e plugin account: user can change his password or delete his XMPP account 2014-03-03 10:00:15 +01:00
souliane
88baf0791b core (memory): asyncDeleteProfile can force the deletion of a profile, even if it's connected (when called from the backend only) 2014-03-03 15:37:49 +01:00
souliane
d158589881 core, frontends: add method asyncDeleteProfile, remove synchronous methods createProfile and deleteProfile 2014-03-03 09:59:10 +01:00
souliane
528ceb5f8b plugin groupblog: added a convenient bridge method getGroupBlogsWithComments 2014-02-28 11:19:08 +01:00
souliane
2b2fa9fd4a plugin XEP-0060, groupblog: added nodeIdentifiers attribute to getItems in order to retrieve items by ids 2014-02-25 17:49:15 +01:00
souliane
765eecb37c plugin blog_banner: added temporary plugin with a user parameter to set a blog banner 2014-02-25 11:32:21 +01:00