comparison doc/libervia-cli/pubsub_node.rst @ 4037:524856bd7b19

massive refactoring to switch from camelCase to snake_case: historically, Libervia (SàT before) was using camelCase as allowed by PEP8 when using a pre-PEP8 code, to use the same coding style as in Twisted. However, snake_case is more readable and it's better to follow PEP8 best practices, so it has been decided to move on full snake_case. Because Libervia has a huge codebase, this ended with a ugly mix of camelCase and snake_case. To fix that, this patch does a big refactoring by renaming every function and method (including bridge) that are not coming from Twisted or Wokkel, to use fully snake_case. This is a massive change, and may result in some bugs.
author Goffi <goffi@goffi.org>
date Sat, 08 Apr 2023 13:54:42 +0200
parents c80a0f864b5d
children
comparison
equal deleted inserted replaced
4036:c4464d7ae97b 4037:524856bd7b19
91 $ li pubsub node set -n public_notes -f access_model open 91 $ li pubsub node set -n public_notes -f access_model open
92 92
93 import 93 import
94 ====== 94 ======
95 95
96 Import a raw XML containing items to create in the node. The path to the XML file is used 96 import a raw XML containing items to create in the node. The path to the XML file is used
97 as positional argument. 97 as positional argument.
98 98
99 The XML file must contain full `<item>` element for each item to import. The output of ``pubsub get`` can be used directly. 99 The XML file must contain full `<item>` element for each item to import. The output of ``pubsub get`` can be used directly.
100 100
101 If you want to change publisher of one or more items (i.e. if you want to use an other ``jid`` than the jid of the profile as publisher), you must use the ``--admin`` arguments. This needs a PubSub service supporting this feature (and you must of course be an administrator of this service). The new publisher must be allowed to publish to the node. 101 If you want to change publisher of one or more items (i.e. if you want to use an other ``jid`` than the jid of the profile as publisher), you must use the ``--admin`` arguments. This needs a PubSub service supporting this feature (and you must of course be an administrator of this service). The new publisher must be allowed to publish to the node.
102 102
103 example 103 example
104 ------- 104 -------
105 105
106 Import a node backup which has previously been saved using ``li blog get -M -1 -n 106 import a node backup which has previously been saved using ``li blog get -M -1 -n
107 some_node > some_node_backup.xml``:: 107 some_node > some_node_backup.xml``::
108 108
109 $ li pubsub node import -n some_node ~/some_node_backup.xml 109 $ li pubsub node import -n some_node ~/some_node_backup.xml
110 110
111 .. note:: 111 .. note::