diff --git a/src/common/pep.py b/src/common/pep.py new file mode 100644 index 0000000000000000000000000000000000000000..f0aad03cfc4e05de281acb4dbd7e332cdbad8b63 --- /dev/null +++ b/src/common/pep.py @@ -0,0 +1,20 @@ +from common import gajim + +def user_mood(items, name, jid): + contacts = gajim.contacts.get_contact(name, jid) + for item in items.getTags('item'): + child = item.getTag('mood') + if child is not None: + for ch in child.getChildren(): + if ch.getName() != 'text': + for contact in contacts: + contact.mood = ch.getName() + else: + for contact in contacts: + contact.mood_text = ch.getData() + +def user_tune(items, name, jid): + pass + +def user_geoloc(items, name, jid): + pass