Commit graph libervia-backend/src/core
Author SHA1 Message Date
souliane
b5d70cbe34 core, quick_frontends: fixes one typo and a variable naming issue 2015-02-21 17:22:39 +01:00
Goffi
b00abe5dc7 core: added a "profileConnecting" method check:
if a plugin has a profileConnecting method, it will be called when the profile is being connected but before the client stream is started. That can be usefull if things need to be done before the communication is started: e.g. putting triggers, loading PersistentDict, etc.
2015-02-09 21:39:51 +01:00
Goffi
cdfb2c4dc6 core (memory): updateEntityData now accept a "silent" argument to avoid sending signal to frontends when updating an attribute with "signalOnUpdate" flag. 2015-02-09 21:39:51 +01:00
Goffi
ec25ba82e1 core: added getEntitiesData which get cache data for several entities at once 2015-02-09 21:39:51 +01:00
Goffi
b4937bef76 core: fixed items registration in roster management 2015-02-06 18:54:44 +01:00
Goffi
d07237f49d core: fixed some logging calls without unicode strings, and use of print 2015-02-06 18:53:07 +01:00
Goffi
983dcf926e core: better use of C.bool: C.bool only accept basestring subclasses and return the associated constant, C.boolConst return the associated constant for a boolean value 2015-02-06 18:46:26 +01:00
Goffi
8ce5c1862b core, frontends: refactoring to base Libervia on QuickFrontend (big mixed commit):
/!\ not finished, everything is still instable !
    - bridge: DBus bridge has been modified to allow blocking call to be called in the same way as asynchronous calls
    - bridge: calls with a callback and no errback are now possible, default errback log the error
    - constants: removed hack to manage presence without OrderedDict, as an OrderedDict like class has been implemented in Libervia
    - core: getLastResource has been removed and replaced by getMainResource (there is a global better management of resources)
    - various style improvments: use of constants when possible, fixed variable overlaps, import of module instead of direct class import
    - frontends: printInfo and printMessage methods in (Quick)Chat are more generic (use of extra instead of timestamp)
    - frontends: bridge creation and option parsing (command line arguments) are now specified by the frontend in QuickApp __init__
    - frontends: ProfileManager manage a more complete plug sequence (some stuff formerly manage in contact_list have moved to ProfileManager)
    - quick_frontend (quick_widgets): QuickWidgetsManager is now iterable (all widgets are then returned), or can return an iterator on a specific class (return all widgets of this class) with getWidgets
    - frontends: tools.jid can now be used in Pyjamas, with some care
    - frontends (XMLUI): profile is now managed
    - core (memory): big improvment on entities cache management (and specially resource management)
    - core (params/exceptions): added PermissionError
    - various fixes and improvments, check diff for more details
2015-01-24 01:00:29 +01:00
Goffi
05e5e1448b core: misc improvments:
- added some constants for message types and presence
    - removed profile authentification specific methods in favor of a more generic "validated" key
2014-12-10 18:36:11 +01:00
Goffi
6e144c6458 core: improved roster management + misc:
- updated methods to no use anymore methods deprecated in Wokkel
    - use of full jid when it make sense instead of bare jid
    - getContacts, updateContact and delContact are now asynchronous
2014-12-10 18:32:33 +01:00
souliane
fe06c14303 core, plugins: improve a bit some log messages 2014-10-18 16:28:37 +02:00
Goffi
6b20989ecc core: better management of default value in getConfig 2014-10-07 17:12:41 +02:00
souliane
176512b013 constants: split C.bool in C.bool and C.str so:
- you can use them without caring about the input type
    - you always know the output type
2014-10-06 12:22:14 +02:00
souliane
136395eb6d memory (params): add parameters "Show offline contacts" and "Show empty groups" 2014-10-06 11:20:43 +02:00
souliane
4f339272b7 memory: add Parameter "Chat history limit" 2014-09-24 13:49:43 +02:00
souliane
a67c8094f5 core: move XMPP keep-alife value to the constants 2014-09-21 13:06:53 +02:00
souliane
a3a6e48797 we are in dev version again 2014-09-18 11:43:21 +02:00
souliane
37d1cd6c22 version update 2014-09-18 11:41:52 +02:00
Goffi
e17274e0b4 we are in dev version again 2014-09-15 12:07:40 +02:00
Goffi
606fd8cdf3 version update 2014-09-09 08:15:19 +02:00
Goffi
85b3c92376 core (disco): added a timeout to get items 2014-09-08 21:23:21 +02:00
Goffi
a20e3e2cb8 core: a new "info" type is used in newMessage for system messages (not comming from outside) 2014-09-05 19:29:30 +02:00
souliane
af2554a508 plugin OTR: forces FINISHED state if we are in ENCRYPTED state on contact disconnection 2014-09-05 11:16:38 +02:00
souliane
b294272020 core (xmpp): fixes SatPresenceProtocol.available to prevent an eventual code skipping 2014-09-04 11:26:22 +02:00
souliane
be2e956c0b core: sendMessage handles the extra data key 'send_only' to skip triggers, storage and echo 2014-09-01 15:43:16 +02:00
Goffi
7c4824f352 core: more robust plugins importation 2014-09-01 11:05:27 +02:00
Goffi
cc9bf9f2df core (constants): Bool method allow to convert from python bool to string constant for true/false (in both directions) 2014-08-27 01:27:05 +02:00
Goffi
74f8765ed2 core: twistd plugin refactoring:
initialisation method manage things which must be done once (reactor installation + logging configuration), this method is called when service is created, so we can have the options passed to twistd (necessary to manage logging configuration). The initialisation order is important: for instance, sat_main must be imported after logging initialisation.
This refactoring avoid initialisation issue when SàT backend and libervia are both installed as twisted plugins.
2014-08-25 17:21:04 +02:00
Goffi
d549533f00 core (logging): new backend_data parameter can be used to transmit specific data to a backend + Twisted backend use this option to know if we are in debug or nodaemon mode 2014-08-25 17:21:03 +02:00
Goffi
75fe2d0638 core: sat bakcend is now a twisted plugin (no more .tac file) 2014-08-24 18:44:17 +02:00
Goffi
f21de3b01b core (logging): fixed twisted backend for twistd plugin, /!\ stdout logging in debug/nodaemon mode does'nt work anymore with .tac files. 2014-08-24 18:44:17 +02:00
Goffi
5342de1031 core (logging): logging is added to stdout in nodaemon mode (it was already the case in debug mode) 2014-08-21 02:14:24 +02:00
Goffi
1af958cd7e core (constants): minor comment change 2014-08-20 23:07:59 +02:00
Goffi
774edc48a6 core (constants): better management of xdg import 2014-08-20 23:04:57 +02:00
Goffi
2af42b30c7 core (constants): removed pyjamas workaround 2014-08-20 22:59:33 +02:00
Goffi
b769cde7e4 core (constants): fixed bad XMLUI level constants 2014-08-20 21:15:04 +02:00
Goffi
8e66a4b736 core (constants): added constants mainly used in XMLUI 2014-08-11 19:10:24 +02:00
Goffi
352e593a17 core: use of debug log instead of error when port default value is used 2014-06-26 14:59:02 +02:00
Goffi
126d95e764 core (menus): constants are used for menu types 2014-06-25 20:54:15 +02:00
souliane
83ed5f319c core, plugins, stdui, frontends: fixes handling of "Force server" and "Force port" parameters:
- do not save a "guessed" value, they must stay empty until the user explicitely sets them
    - add constant XMPP_C2S_PORT (default value 5222)
2014-06-23 10:23:13 +02:00
souliane
d4eff5b99c core, memory, plugins, stdui, frontends: look for DNS SRV records when server is not specified:
- fix bug 3
    - modify "Connection" params:
          - rename "Server" to "Force server" and "Port" to "Force port"
          - set the default value to empty string for both
2014-06-23 00:44:10 +02:00
souliane
a5dd35ce65 frontends: async failures are more detailed (full class name + error message) 2014-06-07 15:39:20 +02:00
souliane
3d9795e578 core (xmpp): onMessage handles an eventual subject (used for announcement / headline message) 2014-06-02 19:25:06 +02:00
souliane
244a33d2c7 core (xmpp), stdui (profile_manager), bridge, frontends: raise an exception if the XMPP connection failed instead of sending a signal 2014-05-23 09:59:35 +02:00
souliane
f719875f0b core, frontends: remove bridge method "connect" (always use asyncConnect) 2014-05-23 10:40:54 +02:00
Goffi
d113c2a295 core (XMPP): message received (onMessage) refactoring:
- better separation of actions
    - use of failure.trap and generic exception (CancelError/SkipHistory)
2014-06-07 16:38:53 +02:00
Goffi
87b3e413ee core (XMPP): sendMessage refactoring:
- better separation of message sending actions
    - use of more generic exceptions to hook the behaviour (SkipHistory and CancelError)
    - use of raise instead of return
    - use of failure.trap
2014-06-07 16:35:29 +02:00
souliane
8be7416569 core, stdui (profile manager), quick_app: ask for another XMPP password when profile authentication succeed but XMPP connection fails 2014-05-21 23:15:01 +02:00
souliane
dd597a2ead core, memory, bridge, plugin misc_register_account: move registerNewAccount to a new plugin:
- the bridge method has been removed, now a plugin takes care of it with XMLUI callback system
    - TODO: xmpp.RegisteringAuthenticator still needs to be fixed
2014-05-16 00:58:20 +02:00
souliane
67a605c1c8 stdui: add ui_profile_manager to interact with frontends when profile authentication is needed 2014-05-07 16:03:38 +02:00