Mercurial > libervia-pubsub
comparison sat_pubsub/const.py @ 322:54d90c73b8b5
mam: various improvments:
- put common namespaces ton const
- VAL_RSM_MAX_DEFAULT can be None if default limit is not wanted
- ItemDate now has a 'date' attribute
- MAMService is MonkeyPatched the same way as PubSubService to handle PEP
- fixed error mapping in mam module
- PEP is handled
- properly manage date in a payload independent way
- when PEP is used, send privileged messages
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 05 Jan 2016 23:13:13 +0100 |
parents | 5d7c3787672e |
children | 8496af26be45 |
comparison
equal
deleted
inserted
replaced
321:c7fe09894952 | 322:54d90c73b8b5 |
---|---|
49 # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | 49 # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION |
50 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | 50 # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
51 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | 51 # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
52 | 52 |
53 | 53 |
54 | 54 NS_CLIENT = 'jabber:client' |
55 NS_GROUPBLOG_PREFIX = 'urn:xmpp:groupblog:' | 55 NS_GROUPBLOG_PREFIX = 'urn:xmpp:groupblog:' |
56 NS_ITEM_CONFIG = "http://jabber.org/protocol/pubsub#item-config" | 56 NS_ITEM_CONFIG = "http://jabber.org/protocol/pubsub#item-config" |
57 NS_ATOM = "http://www.w3.org/2005/Atom" | 57 NS_ATOM = "http://www.w3.org/2005/Atom" |
58 NS_FORWARD = 'urn:xmpp:forward:0' | |
58 OPT_ACCESS_MODEL = 'pubsub#access_model' | 59 OPT_ACCESS_MODEL = 'pubsub#access_model' |
59 OPT_ROSTER_GROUPS_ALLOWED = 'pubsub#roster_groups_allowed' | 60 OPT_ROSTER_GROUPS_ALLOWED = 'pubsub#roster_groups_allowed' |
60 OPT_PERSIST_ITEMS = "pubsub#persist_items" | 61 OPT_PERSIST_ITEMS = "pubsub#persist_items" |
61 OPT_DELIVER_PAYLOADS = "pubsub#deliver_payloads" | 62 OPT_DELIVER_PAYLOADS = "pubsub#deliver_payloads" |
62 OPT_SEND_LAST_PUBLISHED_ITEM = "pubsub#send_last_published_item" | 63 OPT_SEND_LAST_PUBLISHED_ITEM = "pubsub#send_last_published_item" |
67 VAL_AMODEL_DEFAULT = VAL_AMODEL_OPEN | 68 VAL_AMODEL_DEFAULT = VAL_AMODEL_OPEN |
68 VAL_PMODEL_PUBLISHERS = 'publishers' | 69 VAL_PMODEL_PUBLISHERS = 'publishers' |
69 VAL_PMODEL_SUBSCRIBERS = 'subscribers' | 70 VAL_PMODEL_SUBSCRIBERS = 'subscribers' |
70 VAL_PMODEL_OPEN = 'open' | 71 VAL_PMODEL_OPEN = 'open' |
71 VAL_PMODEL_DEFAULT = VAL_PMODEL_PUBLISHERS | 72 VAL_PMODEL_DEFAULT = VAL_PMODEL_PUBLISHERS |
72 VAL_RSM_MAX_DEFAULT = 10 | 73 VAL_RSM_MAX_DEFAULT = 10 # None for no limit |
73 FLAG_ENABLE_RSM = True | 74 FLAG_ENABLE_RSM = True |
74 FLAG_ENABLE_MAM = True | 75 FLAG_ENABLE_MAM = True |