Commit graph

1,753 commits

Author SHA1 Message Date
Goffi
8deee28320 core (plugins): detect import_name conflicts 2015-08-27 17:59:15 +02:00
Goffi
e8c3e3500d core (utils): added a method to generate XEP-0082 style dates 2015-08-27 17:59:11 +02:00
Goffi
6f1d742645 frontends (xmlui): fixed a bug in xmlui resulting in a bad dialog creation (parameters were lost, including profile) 2015-08-27 17:59:01 +02:00
souliane
56dc4840a6 tools (xml_tools): keeps data form result headers sorted 2015-08-26 12:24:38 +02:00
souliane
822798d965 tools (xml_tools): fixes JidElement.__init__ 2015-08-26 12:23:55 +02:00
souliane
a7535449b4 plugin XEP-0055: add "simple" and "advanced" modes to Jabber search:
- simple search queries the service offered by the user's server, asks for a single input and compile the results of the queries done on each search field
    - advanced allows to select the search service and to perform a "normal" search (the user can fill in all the fields that are implemented by the service)
2015-08-21 19:02:11 +02:00
souliane
95c7e2b809 core (params): fixes jid_list to use node's default value when no user value is defined 2015-08-22 10:28:07 +02:00
Goffi
456ff0ab6c core (params): fixed exception on empty jids list 2015-08-25 20:20:53 +02:00
Goffi
0fd4e7732a plugin XEP-0050: fixed crash on empty node in addAdHocCommand 2015-08-25 20:20:47 +02:00
Goffi
94eaf21945 plugin XEP-0050: return disco for commands only on commands namespace 2015-08-25 20:02:50 +02:00
Goffi
f41aed19af core (disco): use of failure.Failure when raising FeatureNotFound to avoid a jump in debugger in debug mode 2015-08-25 16:52:18 +02:00
Goffi
11acf009ee plugin groupblog: item access availability on serveur is checked on profile connection, and getFeatures is filled accordingly (with "available" key) 2015-08-25 16:51:00 +02:00
Goffi
9895ceb32f core (disco): added checkFeatures to check several features at once + identities are now managed with a tuple in findFeaturesSet and checkFeatures 2015-08-25 16:05:01 +02:00
Goffi
2319ce59fb core (xmlui): reverted change from 039d96e131be: we should be able to recreate the same container with changeContainer 2015-08-25 15:39:16 +02:00
Goffi
dd8462f07a frontends: callback are now always used in QuickApp launchAction (before it was only used if validated is present):
- actionManager is used by default (no callback provided)
    - in XMLUI, the dialog is closed before calling actionManager
    - if keys are not managed in resuling data, an exceptions is raised
2015-08-25 14:41:42 +02:00
Goffi
fcb658ff2d primitivus (ProfileManager): fixed profile change event callback 2015-08-25 14:22:21 +02:00
souliane
ab6b04b898 tools (xmlui): changeContainer do not create a new one when the current one already fits 2015-08-21 14:58:42 +02:00
souliane
a90bcacfe9 tools, frontends (xmlui): allow to select a tab when adding it 2015-08-21 14:17:41 +02:00
Goffi
fe5cc0ac0a plugin groupblog: groupblog compatible pubsub service is checked in profileConected + getFeatures implementation 2015-08-21 19:23:14 +02:00
Goffi
690b1c2213 core (disco): fixed bad indentation resulting in bad result in findFeaturesSet 2015-08-21 19:23:13 +02:00
Goffi
3080368825 plugin XEP-0060: implemented getFeatures, data has a "service" key if service is found for this profile 2015-08-21 17:09:43 +02:00
Goffi
0bf9461416 core, bridge: added getFeatures method:
this async method indicate which plugins are activated, and add an additional data dictionary with plugin specific data.
    The result can be general (if profile==C.PROF_KEY_NONE) or specific to profile.
2015-08-21 17:08:26 +02:00
Goffi
621221c16e QuickFrontend: removed old watched stuff as a new plugin now manages it properly 2015-08-20 18:44:39 +02:00
Goffi
135fba2de1 core, plugin watched: new plugin, show an alert when a watched entity goes online 2015-08-20 18:43:56 +02:00
Goffi
1fde823a9c primivitus: fixed profile manager exception when nothing is focused 2015-08-20 18:41:06 +02:00
Goffi
9df7cd6d33 frontends, primitivus: JidsList XMLUI widget management /!\ urwid SàText must be updated 2015-08-20 18:36:53 +02:00
Goffi
a39e66b598 core (params): jids_list type management 2015-08-20 18:35:27 +02:00
Goffi
8e37cf55ed core (xmlui): added JidsListWidget to manage editable list of jids:
- can be used to manage XEP-0004's jid-multi
    - can be used in the future for search result to display found entities (need a read-only style)
    - generaly usefull to manage list of entites
    - implemented in params too
2015-08-20 18:33:52 +02:00
Goffi
31582c98f9 core(xmlui): removed useless parenthesis around assert 2015-08-18 10:52:18 +02:00
Goffi
4623af2784 core (memory): fixed a double timer.cancel in Sessions 2015-08-18 10:36:41 +02:00
Goffi
7f14e1865d core , privmitivus (xmlui): add jidInput handling, with a simple String for now 2015-08-18 10:35:44 +02:00
Goffi
2c37acf27f xmlui: minor docstring fixes 2015-08-18 10:04:47 +02:00
Goffi
b36c1d6493 core: tools.utils.getRepositoryData now return "hg log -r -1" and short form of node + fixed crash if mercurial is not present:
short form is now returned in string version for better readability. Even if a collision is possible, it's not a big deal as it is used mainly in about dialog to help identify a version in case of e.g. bug.
2015-08-18 09:37:25 +02:00
Goffi
35d39b450f core: moved __version__ to __init__.py, so we can check version by doing "import sat;print(sat.__version__)" 2015-08-18 09:01:18 +02:00
Goffi
8cfcc7098a core: removed sat_id which is not used anywhere, uuid do the job better 2015-08-18 09:01:18 +02:00
Goffi
3312c3bf97 quick_frontend, primitivus: handling of actionNew signal 2015-08-18 09:01:18 +02:00
Goffi
97d140566c core, bridge: new signal actionNew to launch an action from the backend (e.g. display a dialog message):
- SAT.actionNew is a shortcut to call bridge.actionNew with a generated id. The id may be used in the future to ignore an action (e.g.: an action is sent to all frontends to accept a file, one of the frontend did manage the dialog, the other ones can then ignore this dialog), but is not used for now.
2015-08-18 09:01:18 +02:00
Goffi
d12df6c98e plugin XEP-0045: added disco announce 2015-08-18 09:01:18 +02:00
Goffi
a667873b99 plugin XEP-0059: fixed bad disco handling 2015-08-18 09:01:18 +02:00
souliane
9295bba396 setup: wx is not more a dependency since wix has been deprecated 2015-08-20 10:22:46 +02:00
souliane
71f0f14b36 plugin OTR: fixes a couple of typos 2014-09-03 20:55:54 +02:00
Goffi
1170edc400 quick_frontend: minor fixes 2015-08-16 01:01:34 +02:00
Goffi
b747c1b733 quick_frontend (constants, quick_app, quick_contact_list): blogging refactoring (not finished):
- adaptation to backend modifications
    - moved common blogging parts from Libervia to quick frontend
    - QuickApp use a MB_HANDLE class variable to indicated if blogging is managed by the frontend (and avoid waste of resources if not)
    - comments are now managed inside parent entry, as a result a tree of comments is now possible
    - Entry.level indicate where in the tree we are (-1 mean parent QuickBlog, 0 mean main item, more means comment)
    - items + comments are requested in 1 shot, and RTDeferred are used to avoid blocking while waiting for them
    - in QuickBlog, id2entries allow to get Entry from it's item id, and node2entries allow to get Entry(ies) hosting a comments node
    - QuickBlog.new_message_target tell where a new message will be sent by default
2015-08-16 01:00:54 +02:00
Goffi
0f10526746 core: getProfileName no raise ProfileUnknownError + minor doc fixes 2015-08-16 00:41:58 +02:00
Goffi
b7409e0488 plugins xep-0060, xep-0163, xep-0277, groupblog: bloging improvments (huge patch, sorry):
/!\ not everything is working yet, and specially groupblogs are broken /!\
    - renamed bridge api to use prefixed methods (e.g. psSubscribeToMany instead of subscribeToMany in PubSub)
    - (xep-0060): try to find a default PubSub service, and put it in client.pubsub_service
    - (xep-0060): extra dictionary can be used in bridge method for RSM and other options
    - (xep-0060): XEP_0060.addManagedNode and XEP_0060.removeManagedNode allow to easily catch notifications for a specific node
    - (xep-0060): retractItem manage "notify" attribute
    - (xep-0060): new signal psEvent will be used to transmit notifications to frontends
    - (xep-0060, constants): added a bunch of useful constants
    - (xep-0163): removed personalEvent in favor of psEvent
    - (xep-0163): addPEPEvent now filter non PEP events for in_callback
    - (xep-0277): use of new XEP-0060 plugin's addManagedNode
    - (xep-0277): fixed author handling for incoming blogs: author is the human readable name, author_jid it jid, and author_jid_verified is set to True is the jid is checked
    - (xep-0277): reworked data2entry with Twisted instead of feed, item_id can now be specified, <content/> is changed to  <title/> if there is only content
    - (xep-0277): comments are now managed here (core removed from groupblog)
    - (xep-0277): (comments) node is created if needed, default pubsub service is used if available, else PEP
    - (xep-0277): retract is managed
2015-08-16 00:39:44 +02:00
Goffi
f32b006d54 plugin text-syntaxes: minor variable renaming 2015-08-16 00:06:59 +02:00
Goffi
4eef249eb4 tmp(pubsub): added retract "notify" attribute management 2015-08-16 00:06:12 +02:00
Goffi
7cbcc26d7d xml_tools: minor attribute renaming 2015-08-15 22:27:39 +02:00
Goffi
32592acdf5 tmp (wokkel.rsm): use of super instead of direct call in PubSubRequest 2015-08-15 22:24:40 +02:00
Goffi
1e21730bfe plugin XEP-0277: added mBGetFromManyWithComments to have items + comments in one method call 2015-08-15 22:24:38 +02:00