Author: doomhammer Date: 2007-03-26 00:27:43 +0200 (Mon, 26 Mar 2007) New Revision: 8027
Added: branches/pep/src/common/pep.py Log: Second buggy commit
Added: branches/pep/src/common/pep.py =================================================================== --- branches/pep/src/common/pep.py (rev 0) +++ branches/pep/src/common/pep.py 2007-03-25 22:27:43 UTC (rev 8027) @@ -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