diff src/plugins/plugin_exp_pubsub_schema.py @ 2420:03da3ef5fb5b

plugin tickets: added ticketsSet and ticketsSchemaGet methods: those methods are high level methods specialised for tickets. ticketsSet will use default tickets node if node is not set, set "created" and "updated" fields, create comments node if the ticket is new, and associate it with "comments_uri" field. ticketsSchemaGet is like getUISchema with node defaulting to tickets default node.
author Goffi <goffi@goffi.org>
date Sun, 05 Nov 2017 15:36:06 +0100
parents 3ff9d7a7fe71
children b7e24ce97a06
line wrap: on
line diff
--- a/src/plugins/plugin_exp_pubsub_schema.py	Sun Nov 05 13:53:28 2017 +0100
+++ b/src/plugins/plugin_exp_pubsub_schema.py	Sun Nov 05 15:36:06 2017 +0100
@@ -261,7 +261,7 @@
     def sendDataFormItem(self, client, service, nodeIdentifier, values, schema=None, item_id=None, extra=None, deserialise=False):
         """Publish an item as a dataform when we know that there is a schema
 
-        @param values(dict[[iterable[object], object]): values set for the form
+        @param values(dict[key(unicode), [iterable[object], object]]): values set for the form
             if not iterable, will be put in a list
         @param schema(domish.Element, data_form.Form, None): data schema
             None to retrieve data schema from node (need to do a additional XMPP call)
@@ -270,6 +270,7 @@
             This is done in this method and not directly in _sendDataFormItem because we need to know the data type
             which is in the form, not availablable in _sendDataFormItem
         other parameters as the same as for [self._p.sendItem]
+        @return (unicode): id of the created item
         """
         form = yield self.getSchemaForm(client, service, nodeIdentifier, schema, form_type='submit')