Commit graph

2,482 commits

Author SHA1 Message Date
Goffi
4d7bc8aaa1 tools (common/data_objects): accept same parameters as format en quote their values in OnClick.formatUrl 2018-01-24 09:12:12 +01:00
Goffi
f857a86740 plugin blog import dotclear: use a smaller and lower case prefix to generate ids 2018-01-24 09:10:12 +01:00
Goffi
80efb4b121 plugin XEP-0277: use shortuuid instead of uuid + use item's XMPP URI for atom ID 2018-01-22 22:00:46 +01:00
Goffi
c09a5feb3c plugin blog static: added background parameter, to set an image 2018-01-22 08:36:36 +01:00
Goffi
773b9b8948 tools (common/data_objects): use lists instead of generators for BlogItem.groups and BlogItem.tags 2018-01-21 20:20:38 +01:00
Goffi
ba046b33dd tool (utils): import directly parser from dateutil 2018-01-21 13:04:16 +01:00
Goffi
7b833e62a6 tools (common/data_objects): BlogItem has now a uri property to generate its own XMPP URI 2018-01-19 17:41:10 +01:00
Goffi
d4cfd510c8 plugin XEP-0277: microblog namespace is now registered 2018-01-19 17:40:06 +01:00
Goffi
8cce1d1ba0 core: 'x-data' namespace is now registered 2018-01-19 17:39:38 +01:00
Goffi
e963a0077a plugin merge-requests: fixed "set" method 2018-01-13 10:12:15 +01:00
Goffi
78b16b9bff plugins tickets, merge-requests: fixed call of prepareBridgeSet 2018-01-13 10:03:32 +01:00
Goffi
3e76e826d0 plugins schema, merge_requests, tickets*: factorisation
Dode common in plugins using schema have been factorised in pubsub schema plugin, and filters users in tickets handling have been renamed in a more generic way and put there too.
"reporter*" fields in tickets have been renamed to "author*" as it is a more generic term which can be used elsewhere.
The use of new utils.partial function make easy the creation of simple plugins using schema.
2018-01-12 15:58:54 +01:00
Goffi
a979fce2fc tools (utils): new "partial" function which is a hack to workaround issue with functools.partial while using it with dbus module. 2018-01-12 15:45:37 +01:00
Goffi
8845cc682f tools (common/data_objects): added Room class 2018-01-05 13:00:34 +01:00
Goffi
a22c1a7fd8 plugin XEP-0045: new mucGetService bridge method to retrieve MUC service of the server. 2018-01-05 12:59:52 +01:00
Goffi
cf4ba7b9e4 plugin identity: if we get an empty avatar, don't feel avatar_basename and remove avatar key. 2018-01-05 12:58:54 +01:00
Goffi
fa1654964d template: date filter improvments:
new format (i.e. format after date limit has been reached) can now be specified.
0 can now be used for "auto_limit" to use last midnight as date limit.
A new "auto_day" format can be used as shortcut to use last midnight as date limit, short datetime for old format, and time only for new format.
2018-01-03 00:29:18 +01:00
Goffi
f2b0051004 template: boolean attribute can now be specified when importing a script, and default to "defer" 2018-01-03 00:23:36 +01:00
Goffi
f2b942371a tools (common/data_objects): added classes for messages 2018-01-03 00:21:21 +01:00
Goffi
a9e8a79445 plugin identity: return resource for MUC room occupants' nicks + added avatar and avatar_basename. 2018-01-03 00:20:21 +01:00
Goffi
284b2e2ca7 plugin XEP-0054: return always False in isRoom is plugin XEP-0045 is not available + raise NotFound if avatar is requested for a MUC room (not the occupants, the room itself) 2018-01-03 00:18:31 +01:00
Goffi
9e243b3a8a plugin XEP-0045: added mucNickGet to retrieve our nickname in a MUC room 2018-01-03 00:16:23 +01:00
Goffi
a9fb2e568e core: moved CHAT_* constants from frontends to core constants + uses constants for MESS_TYPE_* in sendMessage 2018-01-03 00:13:48 +01:00
Goffi
adca9c455d plugin XEP-0060: added an config option to set pubsub service
"pubsub_service" can now be used in [DEFAULT] section. If not found or invalid, first pubsub service found will be used

fix 216
2017-12-12 01:07:25 +01:00
Goffi
49edd07cd0 jp (blog): added "set" command to publish content from stdin without editing 2017-12-12 00:12:44 +01:00
Goffi
d95aeb2bd3 jp (base): added exitCb generic callback to display a message and quit 2017-12-12 00:11:27 +01:00
Goffi
1ae6d839ce jp (pubsub/search): fixed --item argument 2017-12-12 00:09:39 +01:00
Goffi
d3eb77bdaf template (xmlui): added labels property in ValueWidget (actually return values) and values property in OptionsWidget 2017-12-04 00:45:07 +01:00
Goffi
87690d88ce core, template (filters): added pygments as a dependency + new highlight filter to use it. 2017-11-30 21:00:24 +01:00
Goffi
5aec6ed680 template (filters): don't crash on invalid date in date_fmt 2017-11-30 20:59:24 +01:00
Goffi
6020cae869 template: remove extension from elements while looking for a path:
this way, extension doesn't need to be provided for a CSS file for a single page.
2017-11-30 20:58:34 +01:00
Goffi
a01bec718e tools (config): complexe data can now be set using json and the "_json" suffix 2017-11-30 20:53:47 +01:00
Goffi
2a1777cf6f jp (merge-request): first draft:
Introduce a new "merge-request" command to handle merge request creation/sending.
2017-11-30 20:52:33 +01:00
Goffi
6de330925f plugin merge requests Mercurial: first draft:
this plugin handle Mercurial VCS. It send merge requests using export command, and parse it to retrieve individual patches and metadata.
2017-11-30 20:49:20 +01:00
Goffi
104b34b6c4 plugin merge requests: first draft:
this plugin allows to handle merge requests (i.e. requests to include a contribution in a project) by extendings tickets management.
This plugin is made to be generic, independent from end user tools and from the kind of project where the contribution is requested to be merged.
2017-11-30 20:44:25 +01:00
Goffi
6d1d17e0cc plugin tickets: handle "update" flag + various improvments:
- ticketsSet renamed to ticketSet as only one ticket is set at a time
- dateFilter is not crashing anymore if value can't be parsed: the value is then return unmodified
- form_ns can be specified in get, so the method can be used by other plugins
- new "update" flag: if set in extra, an previous ticket of the same id will be retrieved, and used as a basis for an update
2017-11-30 20:34:41 +01:00
Goffi
b845f7d49e core (XMLUI): added value property for StringWidget and ListWidget 2017-11-30 20:29:25 +01:00
Goffi
913e3712d0 core: specify profile on NotFound exception 2017-11-30 20:27:22 +01:00
Goffi
fbd9737b9a plugin XEP-0060: added node watching methods to bridge:
new methods psNodeWatchAdd and psNodeWatchRemove allows to set a watch for the time of the session on one node, to have a signal called when something change on this node.
This signal (psEventRaw) send raw data (raw XML), in opposition to psEvent which is there to send high level data (e.g. parsed blog data).
Those method are primarely there to let frontends manage local cache for pubsub nodes.
2017-11-19 16:51:39 +01:00
Goffi
da077485d2 core: added a mechanism to associate short names to namespaces:
- new internal registerNamespace can be used by a plugin to associate a short name to a namespace
- new NamespacesGet bridge method retrieve those associations
2017-11-19 16:46:07 +01:00
Goffi
4df7673f64 plugin XEP-0060: added "options" argument to psSubscribe, and return subscription id if present 2017-11-19 16:41:59 +01:00
Goffi
a7781537d6 jp (debug/monitor): if data can't be parsed (happen at beginning/end of stream because it's not complete XML), it is printed directly. 2017-11-19 16:38:35 +01:00
Goffi
3042d42bc4 plugin XML Log: Monkey patch is done on the whole XmlStream class, making it available as soon as the stream start + long received message are sent once fully parsed (not cut anymore) 2017-11-18 18:49:57 +01:00
Goffi
b79a309250 jp (pubsub): added new "set" command tu publish or update an item in a non-interactive way (while "edit" do it interactively). 2017-11-18 18:37:21 +01:00
Goffi
b762596721 core (sat.sh): force python 2 to launch twistd, and avoid launching wrong version if twistd is installed for python 3 too 2017-11-17 10:59:59 +01:00
Goffi
a014e6a873 plugins blog import, tickets import, XEP-0277: fixed call to getCommentsService (it is now returning a Deferred) 2017-11-16 07:31:00 +01:00
Goffi
a6e55a6c56 plugin import: fixed deserialisation of pubsub service 2017-11-15 21:15:42 +01:00
Goffi
a8b302b27d template (XMLUI): added JidInputWidget 2017-11-15 08:58:56 +01:00
Goffi
5522aed007 plugin tickets: specify parent service when using getCommentsService + fill reporter_jid is missing (will be discarded later if not in the schema) 2017-11-15 08:58:38 +01:00
Goffi
bf91404351 plugin XEP-0277: better getCommentsService:
getCommentsService now checks if the parent service is on a third party server and if it's PEP, and return the service to use accordingly.
2017-11-15 08:57:19 +01:00