Rivista/rivista/xmpp/utilities.py
Schimon Jehudah, Adv. 3ac005708d Add installation instruction file;
Order directories.
2024-11-12 15:31:05 +02:00

14 lines
394 B
Python

#!/usr/bin/python
# -*- coding: utf-8 -*-
class XmppUtilities:
def form_a_node_link(pubsub, node):
link = 'xmpp:{pubsub}?;node={node}'.format(pubsub=pubsub, node=node)
return link
def form_an_item_link(pubsub, node, item_id):
link = 'xmpp:{pubsub}?;node={node};item={item}'.format(
pubsub=pubsub, node=node, item=item_id)
return link