Updated moods to version 1.2 of the XEP.
Before Width: | Height: | Size: 900 B After Width: | Height: | Size: 984 B |
Before Width: | Height: | Size: 885 B After Width: | Height: | Size: 966 B |
After Width: | Height: | Size: 989 B |
Before Width: | Height: | Size: 880 B After Width: | Height: | Size: 943 B |
Before Width: | Height: | Size: 850 B After Width: | Height: | Size: 924 B |
Before Width: | Height: | Size: 851 B After Width: | Height: | Size: 949 B |
Before Width: | Height: | Size: 878 B After Width: | Height: | Size: 956 B |
Before Width: | Height: | Size: 846 B After Width: | Height: | Size: 942 B |
Before Width: | Height: | Size: 865 B After Width: | Height: | Size: 934 B |
Before Width: | Height: | Size: 842 B After Width: | Height: | Size: 931 B |
Before Width: | Height: | Size: 831 B After Width: | Height: | Size: 918 B |
After Width: | Height: | Size: 922 B |
Before Width: | Height: | Size: 935 B After Width: | Height: | Size: 996 B |
After Width: | Height: | Size: 913 B |
Before Width: | Height: | Size: 861 B After Width: | Height: | Size: 951 B |
After Width: | Height: | Size: 967 B |
Before Width: | Height: | Size: 810 B After Width: | Height: | Size: 886 B |
Before Width: | Height: | Size: 844 B After Width: | Height: | Size: 939 B |
After Width: | Height: | Size: 981 B |
After Width: | Height: | Size: 916 B |
Before Width: | Height: | Size: 851 B After Width: | Height: | Size: 944 B |
After Width: | Height: | Size: 886 B |
Before Width: | Height: | Size: 916 B After Width: | Height: | Size: 1001 B |
Before Width: | Height: | Size: 833 B After Width: | Height: | Size: 918 B |
Before Width: | Height: | Size: 851 B After Width: | Height: | Size: 956 B |
After Width: | Height: | Size: 964 B |
Before Width: | Height: | Size: 780 B After Width: | Height: | Size: 871 B |
Before Width: | Height: | Size: 815 B After Width: | Height: | Size: 902 B |
After Width: | Height: | Size: 960 B |
Before Width: | Height: | Size: 851 B After Width: | Height: | Size: 949 B |
Before Width: | Height: | Size: 813 B After Width: | Height: | Size: 906 B |
Before Width: | Height: | Size: 876 B After Width: | Height: | Size: 975 B |
After Width: | Height: | Size: 923 B |
After Width: | Height: | Size: 928 B |
Before Width: | Height: | Size: 821 B After Width: | Height: | Size: 897 B |
Before Width: | Height: | Size: 837 B After Width: | Height: | Size: 923 B |
Before Width: | Height: | Size: 801 B After Width: | Height: | Size: 880 B |
After Width: | Height: | Size: 883 B |
Before Width: | Height: | Size: 902 B After Width: | Height: | Size: 982 B |
Before Width: | Height: | Size: 840 B After Width: | Height: | Size: 925 B |
Before Width: | Height: | Size: 837 B After Width: | Height: | Size: 924 B |
Before Width: | Height: | Size: 781 B After Width: | Height: | Size: 855 B |
Before Width: | Height: | Size: 866 B After Width: | Height: | Size: 954 B |
Before Width: | Height: | Size: 881 B After Width: | Height: | Size: 972 B |
Before Width: | Height: | Size: 890 B After Width: | Height: | Size: 979 B |
Before Width: | Height: | Size: 881 B After Width: | Height: | Size: 979 B |
Before Width: | Height: | Size: 835 B After Width: | Height: | Size: 922 B |
Before Width: | Height: | Size: 866 B After Width: | Height: | Size: 968 B |
Before Width: | Height: | Size: 954 B After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 907 B After Width: | Height: | Size: 986 B |
Before Width: | Height: | Size: 847 B After Width: | Height: | Size: 923 B |
Before Width: | Height: | Size: 832 B After Width: | Height: | Size: 914 B |
After Width: | Height: | Size: 940 B |
After Width: | Height: | Size: 888 B |
Before Width: | Height: | Size: 809 B After Width: | Height: | Size: 889 B |
Before Width: | Height: | Size: 800 B After Width: | Height: | Size: 892 B |
Before Width: | Height: | Size: 867 B After Width: | Height: | Size: 963 B |
Before Width: | Height: | Size: 816 B After Width: | Height: | Size: 903 B |
Before Width: | Height: | Size: 831 B After Width: | Height: | Size: 914 B |
After Width: | Height: | Size: 987 B |
Before Width: | Height: | Size: 852 B After Width: | Height: | Size: 947 B |
Before Width: | Height: | Size: 829 B After Width: | Height: | Size: 914 B |
After Width: | Height: | Size: 949 B |
Before Width: | Height: | Size: 876 B After Width: | Height: | Size: 969 B |
Before Width: | Height: | Size: 860 B After Width: | Height: | Size: 935 B |
Before Width: | Height: | Size: 902 B After Width: | Height: | Size: 966 B |
Before Width: | Height: | Size: 882 B After Width: | Height: | Size: 978 B |
Before Width: | Height: | Size: 859 B After Width: | Height: | Size: 963 B |
After Width: | Height: | Size: 931 B |
Before Width: | Height: | Size: 843 B After Width: | Height: | Size: 937 B |
Before Width: | Height: | Size: 916 B After Width: | Height: | Size: 1002 B |
Before Width: | Height: | Size: 868 B After Width: | Height: | Size: 966 B |
Before Width: | Height: | Size: 958 B After Width: | Height: | Size: 1023 B |
Before Width: | Height: | Size: 845 B After Width: | Height: | Size: 910 B |
After Width: | Height: | Size: 947 B |
Before Width: | Height: | Size: 898 B After Width: | Height: | Size: 998 B |
After Width: | Height: | Size: 961 B |
Before Width: | Height: | Size: 884 B After Width: | Height: | Size: 975 B |
After Width: | Height: | Size: 892 B |
Before Width: | Height: | Size: 889 B After Width: | Height: | Size: 967 B |
Before Width: | Height: | Size: 967 B |
After Width: | Height: | Size: 959 B |
After Width: | Height: | Size: 899 B |
After Width: | Height: | Size: 851 B |
Before Width: | Height: | Size: 901 B After Width: | Height: | Size: 992 B |
|
@ -26,40 +26,90 @@
|
|||
from common import gajim, xmpp
|
||||
|
||||
MOODS = {
|
||||
'afraid': _('Afraid'), 'amazed': _('Amazed'),
|
||||
'angry': _('Angry'), 'annoyed': _('Annoyed'),
|
||||
'anxious': _('Anxious'), 'aroused': _('Aroused'),
|
||||
'ashamed': _('Ashamed'), 'bored': _('Bored'),
|
||||
'brave': _('Brave'), 'calm': _('Calm'),
|
||||
'cold': _('Cold'), 'confused': _('Confused'),
|
||||
'contented': _('Contented'), 'cranky': _('Cranky'),
|
||||
'curious': _('Curious'), 'depressed': _('Depressed'),
|
||||
'disappointed': _('Disappointed'), 'disgusted': _('Disgusted'),
|
||||
'distracted': _('Distracted'), 'embarrassed': _('Embarrassed'),
|
||||
'excited': _('Excited'), 'flirtatious': _('Flirtatious'),
|
||||
'frustrated': _('Frustrated'), 'grumpy': _('Grumpy'),
|
||||
'guilty': _('Guilty'), 'happy': _('Happy'),
|
||||
'hot': _('Hot'), 'humbled': _('Humbled'),
|
||||
'humiliated': _('Humiliated'), 'hungry': _('Hungry'),
|
||||
'hurt': _('Hurt'), 'impressed': _('Impressed'),
|
||||
'in_awe': _('In Awe'), 'in_love': _('In Love'),
|
||||
'indignant': _('Indignant'), 'interested': _('Interested'),
|
||||
'intoxicated': _('Intoxicated'), 'invincible': _('Invincible'),
|
||||
'jealous': _('Jealous'), 'lonely': _('Lonely'),
|
||||
'mean': _('Mean'), 'moody': _('Moody'),
|
||||
'nervous': _('Nervous'), 'neutral': _('Neutral'),
|
||||
'offended': _('Offended'), 'playful': _('Playful'),
|
||||
'proud': _('Proud'), 'relieved': _('Relieved'),
|
||||
'remorseful': _('Remorseful'), 'restless': _('Restless'),
|
||||
'sad': _('Sad'), 'sarcastic': _('Sarcastic'),
|
||||
'serious': _('Serious'), 'shocked': _('Shocked'),
|
||||
'shy': _('Shy'), 'sick': _('Sick'),
|
||||
'sleepy': _('Sleepy'), 'stressed': _('Stressed'),
|
||||
'surprised': _('Surprised'), 'thirsty': _('Thirsty'),
|
||||
'thoughtful': _('Thoughtful'), 'worried': _('Worried')}
|
||||
|
||||
# These moods are only available in the Gajim namespace
|
||||
GAJIM_MOODS = ['thoughtful']
|
||||
'afraid': _('Afraid'),
|
||||
'amazed': _('Amazed'),
|
||||
'amorous': _('Amorous'),
|
||||
'angry': _('Angry'),
|
||||
'annoyed': _('Annoyed'),
|
||||
'anxious': _('Anxious'),
|
||||
'aroused': _('Aroused'),
|
||||
'ashamed': _('Ashamed'),
|
||||
'bored': _('Bored'),
|
||||
'brave': _('Brave'),
|
||||
'calm': _('Calm'),
|
||||
'cautious': _('Cautious'),
|
||||
'cold': _('Cold'),
|
||||
'confident': _('Confident'),
|
||||
'confused': _('Confused'),
|
||||
'contemplative': _('Contemplative'),
|
||||
'contented': _('Contented'),
|
||||
'cranky': _('Cranky'),
|
||||
'crazy': _('Crazy'),
|
||||
'creative': _('Creative'),
|
||||
'curious': _('Curious'),
|
||||
'dejected': _('Dejected'),
|
||||
'depressed': _('Depressed'),
|
||||
'disappointed': _('Disappointed'),
|
||||
'disgusted': _('Disgusted'),
|
||||
'dismayed': _('Dismayed'),
|
||||
'distracted': _('Distracted'),
|
||||
'embarrassed': _('Embarrassed'),
|
||||
'envious': _('Envious'),
|
||||
'excited': _('Excited'),
|
||||
'flirtatious': _('Flirtatious'),
|
||||
'frustrated': _('Frustrated'),
|
||||
'grateful': _('Grateful'),
|
||||
'grieving': _('Grieving'),
|
||||
'grumpy': _('Grumpy'),
|
||||
'guilty': _('Guilty'),
|
||||
'happy': _('Happy'),
|
||||
'hopeful': _('Hopeful'),
|
||||
'hot': _('Hot'),
|
||||
'humbled': _('Humbled'),
|
||||
'humiliated': _('Humiliated'),
|
||||
'hungry': _('Hungry'),
|
||||
'hurt': _('Hurt'),
|
||||
'impressed': _('Impressed'),
|
||||
'in_awe': _('In_awe'),
|
||||
'in_love': _('In_love'),
|
||||
'indignant': _('Indignant'),
|
||||
'interested': _('Interested'),
|
||||
'intoxicated': _('Intoxicated'),
|
||||
'invincible': _('Invincible'),
|
||||
'jealous': _('Jealous'),
|
||||
'lonely': _('Lonely'),
|
||||
'lost': _('Lost'),
|
||||
'lucky': _('Lucky'),
|
||||
'mean': _('Mean'),
|
||||
'moody': _('Moody'),
|
||||
'nervous': _('Nervous'),
|
||||
'neutral': _('Neutral'),
|
||||
'offended': _('Offended'),
|
||||
'outraged': _('Outraged'),
|
||||
'playful': _('Playful'),
|
||||
'proud': _('Proud'),
|
||||
'relaxed': _('Relaxed'),
|
||||
'relieved': _('Relieved'),
|
||||
'remorseful': _('Remorseful'),
|
||||
'restless': _('Restless'),
|
||||
'sad': _('Sad'),
|
||||
'sarcastic': _('Sarcastic'),
|
||||
'satisfied': _('Satisfied'),
|
||||
'serious': _('Serious'),
|
||||
'shocked': _('Shocked'),
|
||||
'shy': _('Shy'),
|
||||
'sick': _('Sick'),
|
||||
'sleepy': _('Sleepy'),
|
||||
'spontaneous': _('Spontaneous'),
|
||||
'stressed': _('Stressed'),
|
||||
'strong': _('Strong'),
|
||||
'surprised': _('Surprised'),
|
||||
'thankful': _('Thankful'),
|
||||
'thirsty': _('Thirsty'),
|
||||
'tired': _('Tired'),
|
||||
'undefined': _('Undefined'),
|
||||
'weak': _('Weak'),
|
||||
'worried': _('Worried')}
|
||||
|
||||
ACTIVITIES = {
|
||||
'doing_chores': {'category': _('Doing Chores'),
|
||||
|
@ -418,11 +468,7 @@ def user_send_mood(account, mood, message = ''):
|
|||
return
|
||||
item = xmpp.Node('mood', {'xmlns': xmpp.NS_MOOD})
|
||||
if mood != '':
|
||||
if mood in GAJIM_MOODS:
|
||||
ns = 'http://gajim.org/moods'
|
||||
else:
|
||||
ns = None
|
||||
item.addChild(mood, namespace = ns)
|
||||
item.addChild(mood)
|
||||
if message != '':
|
||||
i = item.addChild('text')
|
||||
i.addData(message)
|
||||
|
|