Second buggy commit

This commit is contained in:
Piotr Gaczkowski 2007-03-25 22:27:43 +00:00
parent 5f9eab3c62
commit d7ea3283b9
1 changed files with 20 additions and 0 deletions

20
src/common/pep.py Normal file
View File

@ -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