Commit graph libervia-backend/src/plugins
Author SHA1 Message Date
Goffi
c641953ebf plugin blog import: this plugin is the base handling blog importers:
- blog importers are plugin which register to this one with the "register" method
    - blog import manage uploading the given blog data to a PubSub server
    - filters can be used.
    - current filters fixe the <img> src without host, and upload images to XMPP server
2016-01-22 20:24:17 +01:00
Goffi
94ec775019 plugin upload, XEP-0363: splitted fileUpload in fileUpload + upload:
fileUpload is used by external frontends, while upload can be used by frontends. upload return in addition to the progress_id a download_d Deferred which fire with URI when file is uploaded.
    changed option ignore-tls-errors to ignore_tls_errors.
2016-01-22 20:24:17 +01:00
Goffi
333a43e824 plugin XEP-0277: fixed encoding issue, specially with parseCommentUrl, which could lead to the impossibility to find comments node 2016-01-22 20:24:17 +01:00
Goffi
dff93495b3 plugin XEP-0277: moved NS_XHTML namespace to constants + adapted parsing to new behaviour of ElementParser 2016-01-22 20:24:17 +01:00
Goffi
7066c7775b plugin XEP-0277: comments handling improvments:
- if comments*, comments*_node or comments*_service are provided, they are used instead of generated values
    - moved node and service generation to getCommentNode and getCommentService, so they can be used by an external plugin
2016-01-22 20:24:17 +01:00
Goffi
7dc6760e0f plugin XEP-0277: added missing author_email parsing 2016-01-22 20:24:17 +01:00
Goffi
4a44b41793 core (xml_tools), plugin XEP-0277: ElementParser element now manage automatically the wrapping with <div/> element when needed + fixed content_xhtml/title_xhtml in XEP-0277 2016-01-22 20:24:17 +01:00
Goffi
950af3bf70 plugin XEP-0277: removed cleanXHTML on output data:
- while it is mandatory to clean input data, output data sent by frontends should and need to be clean
    - cleaning all output data means that we can't send be sure that all the XHTML we send is not modified
    - it's a waste of resources as cleaning today reparse the data with lxml
    - behaviour may change in the future (e.g. having an option to use cleaning on output data)
2016-01-19 12:21:38 +01:00
Goffi
9d9cc53b7d plugin XEP-0071: removed cleanXHTML use for sent message: it's not necessary in this direction 2016-01-19 12:08:38 +01:00
souliane
df30ea7a53 plugin XEP-0071, XEP-0277: method clean_xhtml has been renamed to cleanXHTML 2016-01-19 11:51:07 +01:00
souliane
f24d4f7992 plugin text syntaxes: fixes typo 2016-01-19 11:49:25 +01:00
souliane
930eb1618f plugin XEP-0055, tmp_directory_subscription: move directory subscription to a new temporary plugin 2015-09-17 11:04:17 +02:00
Goffi
51b0e9c153 plugin syntax dotclear: renamed syntax to wiki_dotclear, and renamed plugin file to plugin_syntax_wiki_dotclear.py 2016-01-18 17:30:14 +01:00
Goffi
76234954fe plugin syntax dc_wiki: added XHTML => dc_wiki converter, plus some bug fixes:
- escape_chars regex has been fixed (an \ was missing for backslash escaping)
     - escape_chars is now splited in consts so XHTML => dc_wiki escape less characters, for better readability
     - fixed bad length check in DCWikiParser.parser_link
    dotclear wiki syntax should now be usable
2016-01-18 17:04:29 +01:00
Goffi
098e66c4a2 plugin syntax dc_wiki: first draft:
handle dotclear wiki syntax
    /!\ only dc_wiki -> XHTML is handled for now
2016-01-17 20:39:20 +01:00
Goffi
ee6688f800 pluging text syntaxes: various minor improvments:
- use tuple instead of list for STYLES_WHITELIST
    - specify where to get python makdown and html2text
    - renamed clean_xhtml to cleanXHTML for consistency
    - check name for conflict in addSyntax
2016-01-17 17:33:10 +01:00
souliane
7a6fe618d9 plugin misc_account: add a FIXME comment 2016-01-16 10:09:16 +01:00
Goffi
9fe9a339f1 plugin text syntaxes: a non blocking syntax callback can now return a unicode directly instead of a Deferred 2016-01-15 17:13:59 +01:00
Goffi
8b825d4055 plugin (xep-0277): avoid wrapping XML in an extra <div> in data2entry 2016-01-15 17:13:59 +01:00
Goffi
fbb50a025d reverted patch 3770d13776e8 2016-01-13 13:11:20 +01:00
souliane
67cf4c7913 plugin XEP-0045: raise a special error when the room has already been joined 2016-01-13 13:07:36 +01:00
Goffi
48e8286c1b plugin XEP-0277: don't use max_comments if it is 0 in getFromManyWthComments bridge callback 2016-01-07 22:48:21 +01:00
Goffi
65158b0f47 plugin XEP-0060: fixed extra mam filters parsing 2016-01-07 16:19:43 +01:00
Goffi
b3428838cc plugin XEP-0060: MAM integration:
- removed useless XEP-0059 recommendation
    - added XEP-0313 as a recommended plugin
    - parseExtra now manage mam_* keys (mam_filter_[name] to use a filter)
    - if a mam request is in 'mam' key of extra parameted in getItems, a MAM request is done, but the result is returned in the same way as for normal getItems, making like more easy for other plugins and for frontends
2016-01-05 23:20:22 +01:00
Goffi
c5320bb949 plugin XEP-0313: cleaning and improvments:
- moved common namespaces to core.constants
    - removed useless dependencies and recommendations
    - removed all bride methods as they where there only for testing purpose
    - don't use a plugin dict to store MAM clients, put them in profiles' clients instead
    - removed message trigger in favor of an observer which is triggered only when specific queryid is used
    - new getArchives method which grab all result and return them all at once
2016-01-05 23:20:22 +01:00
Goffi
ad9486784c plugin XEP-0277: ignore maxItems if it is null 2016-01-05 23:20:22 +01:00
Goffi
cdac9644db plugin XEP-0060, tmp(wokkel.rsm): small refactoring:
- don't use getRSMResponse anymore: rsm.PubSubClient use a different signature which return items and RSMResponse, this is better than the previous method as if the requested don't call getRSMResponse, there is no memory leak anymore.
    - use RSMResponse directly instead of using ext_data, as other extension (like MAM) will be probably be managed with an other workflow
    - don't do a useless deep copy of pubsub.PubSubRequest._parameters on each instance anymore
    - RSMResponse.parse do now manage parsing of <set/> element directly
2016-01-05 23:20:22 +01:00
Goffi
9c6d0fecc4 tmp (wokkel/rsm): various improvments:
- restored original tmp.wokkel.pubsub.PubSubService._toResponse_items
    - changed arguments order in RSMRequest.__init__ to have most common arguments first
    - added __str__ methods
    - better parsing/toElement
    - better handling of optional elements/attributes (count/index)
    - _toResponse_items handler RSM set elements without modifying original pubsub _toResponse_items
    - renamed parse to fromElement for coherency
2016-01-05 23:20:20 +01:00
Goffi
d9e5b24470 plugin xep-0059: minor cleaning 2016-01-03 18:36:41 +01:00
Goffi
8de0d799e1 tmp (wokkel): removed delay as it is nearly identical to original one, and the additional exception should be catched elsewhere 2016-01-03 18:36:39 +01:00
Goffi
348be27934 copyright update 2016-01-03 16:28:30 +01:00
souliane
55307fb62a plugin misc_account: fixes login messages when sending emails 2015-12-22 16:20:25 +01:00
Goffi
f8a8aa4b08 plugin XEP-0060: None is no more used in addManagedNode, but all nodes prefixed with a registered one are now triggered 2015-12-18 15:06:58 +01:00
Goffi
ea0da04fdf plugin XEP-0065: better handling of finished Deferred 2015-12-17 22:38:00 +01:00
Goffi
7d54ddff12 plugin XEP-0260, XEP-0065: fixed session hash handling:
with XEP-0260, we need to manage 2 hashes (one with SHA1(SID + Initiator JID + Responder JID) and the other with SHA1(SID + Responder JID + Initiator JID)). This was not handled correclty, resulting in transfer failure in several cases.
2015-12-17 22:37:59 +01:00
Goffi
84fbbbc299 plugins XEP-0065, XEP-0260: fixed session creation order: session is created earlied, and file object associated in a second time if needed 2015-12-17 22:37:58 +01:00
Goffi
bb82cfc78a plugin XEP-0260: better proxy error handling:
- display a better message in logs
    - fixed fallback to IBB
2015-12-17 22:37:56 +01:00
Goffi
691b881fdc plugin XEP-0260: kill s5b session if session is declined 2015-12-17 22:10:53 +01:00
Goffi
7769c53a04 plugin XEP-0166: jingleTerminate is called (if present) on applications and transports plugins on session-terminate action, can be used to do some cleaning 2015-12-17 22:08:11 +01:00
Goffi
3c71aef8af plugin XEP-0234: log file transfer "terminated" instead of "completed", as the file may not be complete (check is done after) 2015-12-17 22:02:52 +01:00
souliane
3cc6e41ad6 tools, plugins XEP-0071, XEP-0277: remove recently added expandNewLinesToXHTML, just leave it to the convertors 2015-12-15 20:29:19 +01:00
Goffi
05541beae2 plugin extra_pep: replaced name by a short one 2015-12-15 17:03:30 +01:00
Goffi
77c3e83ec8 plugin extra_pep, params: fixed insecure building of jids_list 2015-12-15 16:25:19 +01:00
souliane
ab7ae07a83 plugin XEP-0203, core (xmpp): leave the management of delay element to XEP-0203 (fix bug 59):
- this patch reveals a bug in primitivus Chat.printMessage relative to MUC history (the test to discard duplicates is wrong)
2015-12-11 11:25:29 +01:00
souliane
a6a967b2f0 complete the Exception's list when catching JID error:
- Twisted JID constructor raises not only jid.InvalidFormat but also RuntimeError and AttributeError
2015-12-15 13:30:47 +01:00
souliane
3b84fc1765 plugin misc_extra_pep: use a user parameter (jids_list) instead of a general configuration value 2015-12-11 09:12:11 +01:00
souliane
7e9833b921 plugin XEP-0277: revert use of expandNewLinesToXHTML for incoming messages:
- this was here for retro-compatibility with messages previously posted from Libervia
    - but this is not appropriate and will add some extra <br /> e.g. in messages from Movim
2015-12-10 15:14:23 +01:00
souliane
2df5519eda plugin XEP-0277, xml_tools: restore decapsulation of XHTML content
- to avoid successive nesting of the content in <div>
    - otherwise there is a new <div> at each item modification
2015-12-10 14:21:51 +01:00
souliane
ca5c913ce2 xml_tools, plugin XEP-0071, XEP-0277: add method expandNewLinesToXHTML:
- \n in XHTML content should not be converted to <br /> by the frontend
    - save it directly in the Atom payload for better compatibility with other clients
2015-12-10 14:00:21 +01:00
souliane
8f8880be10 plugin misc_radiocol: the smaller fix in the world (1 character!) 2015-12-09 03:33:30 +01:00