diff options
author | Piotr Gaczkowski <doomhammerng@gmail.com> | 2007-03-26 02:27:43 +0400 |
---|---|---|
committer | Piotr Gaczkowski <doomhammerng@gmail.com> | 2007-03-26 02:27:43 +0400 |
commit | d7ea3283b95936341c9ff1d86627e1c7cbcf3feb (patch) | |
tree | ae4bcef78857518194b91a6e81a0d76f356748c2 | |
parent | 5f9eab3c62ff2a073372efe27a426699994771bb (diff) |
Second buggy commit
-rw-r--r-- | src/common/pep.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/common/pep.py b/src/common/pep.py new file mode 100644 index 000000000..f0aad03cf --- /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 |