Commit graph

1,000 commits

Author SHA1 Message Date
souliane
f0fa9b699d plugin XEP_0033: fixes the server part and the tests 2014-04-11 11:02:42 +02:00
Goffi
d89044dbbc tests: fixed log init in helpers (log init must be done before any call to a log method) 2014-04-23 12:01:59 +02:00
Goffi
edf5db192f test: configuration/use of new logging system 2014-04-21 20:04:52 +02:00
Goffi
a3186ac2e3 tests: fixed import in test_helpers_plugins 2014-04-21 19:45:10 +02:00
Goffi
8cd6bed824 plugin XEP-0096: fixed a bug introduced by the log refactoring 2014-04-20 11:51:48 +02:00
Goffi
317342b616 core (log): configuration and environment variables are now checked for log level and colors:
- variable change logs behaviour, so far only level and colors are implemented
    - configuration use log_[name], for example you can put log_level=debug in sat.conf (section [DEFAULT]) to see all levels
    - environment variables use SAT_LOG_[NAME]: e.g. SAT_LOG_LEVEL=debug
    - colors can be true, false or force to force colors even if stdout is not a tty
2014-04-19 20:11:23 +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
Goffi
dc5c042fe7 core (log): twisted backend use logging methods instead of log.msg 2014-04-19 16:48:26 +02:00
Goffi
f05724db74 core: logging refactoring, first step:
- added a core.log module
    - 3 backends can be used: basic, standard (python's logging module) or twisted
    - colors can be used
    - the module has been made to be used by frontends, it should work in exotic environments like pyjamas
    - logging basic configuration is now made in sat.tac
    - core.log configuration is inspired from python standard logging, and use it when possible
    - getLogger should be used the same way as for standard logging
2014-04-19 00:02:38 +02:00
Goffi
28ad5741fd core (constants): added some basic ANSI escape codes 2014-04-18 23:36:52 +02:00
Goffi
3fcd7e22d9 plugins XEP-0048, XEP-0049: feature is not checked anymore before using private XML storage, as feature announcement is not mandatory in XEP-0049 2014-04-10 16:12:50 +02:00
Goffi
acce568f57 core (stdui): added forgotten __init__.py 2014-04-08 09:50:45 +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
Goffi
643aa4dfb7 plugin XEP-0048: bookmarks deletion + added "delete" option for /bookmark command 2014-04-07 16:24:29 +02:00
Goffi
7b971278f8 plugin XEP-0048: added list of bookmarks in XMLUI, selecting one join the room 2014-04-07 16:24:28 +02:00
Goffi
bdd0673a9d plugin XEP-0048: added /bookmark text command 2014-04-07 16:22:35 +02:00
Goffi
63e668ec01 plugin XEP-0048: bookmarks (first draft) 2014-04-07 16:22:35 +02:00
Goffi
c497e19b25 core (XMLUI): _cleanValue method to avoid issues with DBus types (must be deleted in the future) 2014-04-07 16:22:35 +02:00
Goffi
da7496c162 plugin XEP-0049: private xml storage 2014-04-07 16:22:35 +02:00
Goffi
3fc2e256f2 core (memory): added __iter__ to PersistentDict 2014-04-07 16:22:33 +02:00
Goffi
e2e1bb50c2 plugin XEP-0115: minor logs improvment 2014-04-07 16:22:18 +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
0368522356 core (disco): findFeaturesSet and findServiceEntities don't use inlineCallbacks anymore, that allow a better error management (no more anonying debugger raise when discoInfo fails in debug mode) 2014-04-02 12:31:23 +02:00
Goffi
44d8f99b7d core: better plugin initialisation sequence:
- profileConnected are now executed in a deferredList, instead of one after the other
    - failure are collected, and a global message show which plugins failed and the failure message
2014-04-02 12:31:23 +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
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