Goffi
b7a0972237
jp (identity): new identity command to handle the new plugin identity in backend, and maybe other plugins like vcard in the future
2017-05-21 20:06:07 +02:00
Goffi
6180484965
plugin identity: plugin identity first draft:
...
this new plugin is a high level way to manage profile or entity identities, i.e. informations about them.
It has been created to handle easily data which can be in several location (e.g. roster, vcard-tmp, vcard4, etc.)
For now, only nickname can be gotten/set (set only works for profile's own identity, while get can be used on any jid).
2017-05-21 20:04:57 +02:00
Goffi
7ab6802b2c
plugin XEP-0054: nick handling + don't remove data on avatar set
...
- new getNick and setNick allow to manipulate nickname
- setAvatar was removing any data previously in vCard, this is not the case anymore
2017-05-21 20:01:24 +02:00
Goffi
a4b122094c
core: fixed profile key detection in getClients + raise DataError on empty profile
2017-05-21 19:59:42 +02:00
Goffi
2ca6788477
jp (invitation): fixed typo
2017-05-21 19:57:46 +02:00
Goffi
c6ea8e7dbe
core (tools/common/template): i18n support
...
- babel has been added as a new dependencies, and should replace gettext in core in the future
- added i18n support in template rendered
- current locale is available as babel Locale in templates through "locale" variable
- locales can be changed before rendering using setLocale
- for now, all locales translations are loaded on init, and stay in cache. A more complex cache system may be needed in the future (e.g. keeping only most used and load others from files when needed).
2017-05-21 15:59:47 +02:00
Goffi
40e764cab5
jp (output/template): initialize template rendered only if a rendering is actually needed
2017-05-21 15:52:23 +02:00
Goffi
9ea4dba14d
jp (event): don't use dayfirst for YY-MM-DD style dates
2017-05-21 15:47:53 +02:00
Goffi
f3ae390188
plugin events: fixed blog/invitees uri handling
2017-05-19 13:53:52 +02:00
Goffi
6c9255e31d
core (tools/common/template): helping methods/filters for templates:
...
- Indexer class (used with next_gidx/cur_gidx) allows to get per page indexes, usefull to have unique id to reference
- blog_date is a Q&D filter to get relative dates, should be replaced/improved in the future
- ScriptsHandler (used with scripts_handler) is intended to be a way to add scripts from template, and group them at a specific location of the page. It is not used yet and may change heavily or disappear in the future.
2017-05-19 12:54:31 +02:00
Goffi
2359f3908a
jp (event): creation/modification of main event + invitee commands are now in a "invitee" subcommand
2017-05-19 12:45:26 +02:00
Goffi
fb1e9bf53a
plugin events: separation of event node and invitees node
...
- event node is handling the main metadata of the event, and invitees node handle the invitations/invitees answers
- invitees and blog node are automatically created and associated to the event, except if they are specified (in which cas the existing one are used and attached to the event node)
- extra metadata are added to <meta> elements
2017-05-19 12:43:41 +02:00
Goffi
3c8a46760a
core (tools/common/uri): don't display finale "?" if no extra data is specified
2017-05-19 12:40:03 +02:00
Goffi
97c3333418
plugin invitations: on modify an empty value delete corresponding extra keys, and reserved keys are now ignored.
2017-05-19 12:37:54 +02:00
Goffi
48100ac776
jp (uri): new command to parse or generate XMPP URIs
2017-05-19 12:34:33 +02:00
Goffi
4ea36624a2
jp (pubsub/uri): fixed URI generation
2017-05-19 12:33:54 +02:00
Goffi
1cfd34c38d
core (tools/utils): added method to parse XMPP dates
2017-05-19 12:33:11 +02:00
Goffi
c8b4b77908
jp: fixed progress
2017-05-04 00:36:03 +02:00
Goffi
a5bc67ef6a
jp (event): event handling commands, first draft
2017-04-27 01:02:05 +02:00
Goffi
e12e25d1bf
jp: added use_pubsub and use_pubsub_node_req arguments to CommandBase
...
pubsub add --node and --service arguments
pubsub_node_req add --service and a positional node argument (i.e. mandatory)
2017-04-27 01:01:43 +02:00
Goffi
f07c5991ea
jp (invitation): added list subcommand
2017-04-27 00:59:25 +02:00
Goffi
e255b969e0
jp (output): added LIST_DICT output, to handle list of dictionaries
2017-04-27 00:58:12 +02:00
Goffi
6e70992c6c
jp: added constant to handle ANSI code for header and subheaders
2017-04-27 00:57:04 +02:00
Goffi
add4642101
plugin event: first draft:
...
basic plugin to manage event attendance
2017-04-27 00:55:02 +02:00
Goffi
08afc150c3
plugin invitations: added invitationList command
2017-04-27 00:53:23 +02:00
Goffi
3ecb61f064
tools (common/uri): minor comment update
2017-04-20 17:20:44 +02:00
Goffi
affbd97593
tools (common/data_objects): comments items can now be chained to their parent
2017-04-17 20:34:43 +02:00
Goffi
8f7e167dea
plugin XEP-0277: comments node access model changes:
...
comments node access model is now copied from parent item by default. If whitelist access is used, parent item affiliations are copied too.
publish model is now open by default instead of subscribers
2017-04-17 20:33:32 +02:00
Goffi
d04ba950d3
plugin XEP-0060: getNodeAffiliations use jid.JID as keys instead of jids as unicode
2017-04-17 20:31:12 +02:00
Goffi
8a38c20d92
jp (blog): service and node can now be specified for edit command
2017-04-16 18:00:45 +02:00
Goffi
f89b014caa
jp (pubsub): added uri command to build pubsub URI
2017-04-16 17:59:54 +02:00
Goffi
b07afe6971
plugin invitations: fixed url_template check
2017-04-16 17:57:40 +02:00
Goffi
9d60e145c0
tools/common (uri): added a method to build URI
2017-04-16 17:55:10 +02:00
Goffi
55b6199997
jp (pubsub/node): added create and delete commands
2017-04-03 00:23:01 +02:00
Goffi
fcbeec5fa5
jp (invitation): added modify command
2017-04-03 00:23:01 +02:00
Goffi
feac2da87d
plugin invitations: added modify method (+ bridge) and fixed email setting in extra
2017-04-03 00:23:01 +02:00
Goffi
697da436af
plugin XEP-0060: node create/delete improvments:
...
- use client instead of profile for createNode and deleteNode
- new bridge method psCreateNode
- renamed psDeleteNode to psNodeDelete
2017-04-03 00:22:58 +02:00
Goffi
6b0c5dc01a
tmp(wokkel/pubsub): fixed configuration parsing
2017-04-03 00:13:33 +02:00
Goffi
0c01779ae7
tools(common/uri): XMPP uri parsing module, first draft
2017-03-29 21:04:43 +02:00
Goffi
d70547a611
jp (invitation): invitation command first draft
2017-03-29 19:42:44 +02:00
Goffi
fce4b9fd1b
jp (pubsub/get): --service is now optional argument, and sub_id now use "-S" short option
2017-03-29 19:42:44 +02:00
Goffi
f7657610f4
jp (base): added msg and exit_code argument to errback so it's more generic
2017-03-29 19:42:44 +02:00
Goffi
f12d873897
plugin invitations: added getInvitation method, it return invitation data and raise an error if it is not found
2017-03-29 19:42:42 +02:00
Goffi
e70fc0d62f
plugin invitations: invitation id and invitee jid are now added to return dict in invitationCreate, bridge signature has changed too
2017-03-29 19:35:55 +02:00
Goffi
594cf2d02a
plugin invitations: raise ValueError if url_template and message_body are both not specified
2017-03-29 19:30:29 +02:00
Goffi
06fd34fe5e
memory (persistent, sqlite): fixed getPrivates bug with keys arguments and its use in LazyPersistentBinaryDict
2017-03-29 19:27:52 +02:00
Goffi
d067b1b8be
plugin invitations: fixed leak of uuid in jid
2017-03-26 21:23:03 +02:00
Goffi
3eb7074f26
jp (pubsub/node) added pubsub/node/affiliations/set command
2017-03-26 18:08:05 +02:00
Goffi
f829ef828b
plugin XEP-0060: added setNodeAffiliations and its bridge method (psNodeAffiliationsSet)
2017-03-26 18:06:58 +02:00
Goffi
b211d3afe6
tmp(wokkel/pubsub): removed affiliations attribute which was there twice + added missing _render_affiliations
2017-03-26 16:57:53 +02:00