Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eta
gajim
Commits
981dca2b
Commit
981dca2b
authored
16 years ago
by
js
Browse files
Options
Downloads
Patches
Plain Diff
Remove get_uf_{mood,activity} as nobody used them.
Didn't notice them and implemented something like that myself.
parent
a2267602
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/common/helpers.py
+0
-73
0 additions, 73 deletions
src/common/helpers.py
with
0 additions
and
73 deletions
src/common/helpers.py
+
0
−
73
View file @
981dca2b
...
...
@@ -345,79 +345,6 @@ def get_uf_affiliation(affiliation):
affiliation_name
=
affiliation
.
capitalize
()
return
affiliation_name
def
get_uf_mood
(
mood
):
'''
returns a userfriendly mood string and makes all strings translatable
'''
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
'
),
'
worried
'
:
_
(
'
worried
'
)}
if
moods
.
has_key
(
mood
):
return
moods
[
mood
]
else
:
return
mood
# # Argl! An unknown mood!
def
get_uf_activity
(
activity
):
'''
returns a userfriendly activity or subactivity string and makes all
strings translatable
'''
activities
=
{
# Activities
'
working
'
:
_
(
'
working
'
),
'
eating
'
:
_
(
'
eating
'
),
'
excercising
'
:
_
(
'
excercising
'
),
'
relaxing
'
:
_
(
'
relaxing
'
),
'
talking
'
:
_
(
'
talking
'
),
'
doing_chores
'
:
_
(
'
doing chores
'
),
'
inactive
'
:
_
(
'
inactive
'
),
'
traveling
'
:
_
(
'
traveling
'
),
'
having_appointment
'
:
_
(
'
having an appointment
'
),
'
grooming
'
:
_
(
'
grooming
'
),
'
drinking
'
:
_
(
'
drinking
'
),
# Subactivites
'
on_the_phone
'
:
_
(
'
on the phone
'
),
'
gardening
'
:
_
(
'
gardening
'
),
'
hiking
'
:
_
(
'
hiking
'
),
'
on_vacation
'
:
_
(
'
on vacation
'
),
'
coding
'
:
_
(
'
coding
'
),
'
walking
'
:
_
(
'
walking
'
),
'
rehearsing
'
:
_
(
'
rehearsing
'
),
'
sleeping
'
:
_
(
'
sleeping
'
),
'
brushing_teeth
'
:
_
(
'
brushing teeth
'
),
'
playing_sports
'
:
_
(
'
playing sports
'
),
'
skiing
'
:
_
(
'
skiing
'
),
'
having_breakfast
'
:
_
(
'
having breakfast
'
),
'
watching_tv
'
:
_
(
'
watching TV
'
),
'
doing_the_dishes
'
:
_
(
'
doing the dishes
'
),
'
at_the_spa
'
:
_
(
'
at the spa
'
),
'
cycling
'
:
_
(
'
cycling
'
),
'
hanging_out
'
:
_
(
'
hanging out
'
),
'
driving
'
:
_
(
'
driving
'
),
'
commuting
'
:
_
(
'
commuting
'
),
'
cooking
'
:
_
(
'
cooking
'
),
'
walking_the_dog
'
:
_
(
'
walking the dog
'
),
'
writing
'
:
_
(
'
writing
'
),
'
on_a_trip
'
:
_
(
'
on a trip
'
),
'
day_off
'
:
_
(
'
day off
'
),
'
having_tea
'
:
_
(
'
having tea
'
),
'
on_a_bus
'
:
_
(
'
on a bus
'
),
'
having_a_beer
'
:
_
(
'
having a beer
'
),
'
reading
'
:
_
(
'
reading
'
),
'
buying_groceries
'
:
_
(
'
buying groceries
'
),
'
shaving
'
:
_
(
'
shaving
'
),
'
getting_a_haircut
'
:
_
(
'
getting a haircut
'
),
'
gaming
'
:
_
(
'
gaming
'
),
'
having_dinner
'
:
_
(
'
having dinner
'
),
'
doing_maintenance
'
:
_
(
'
doing maintenance
'
),
'
doing_the_laundry
'
:
_
(
'
doing the laundry
'
),
'
on_video_phone
'
:
_
(
'
on video phone
'
),
'
scheduled_holiday
'
:
_
(
'
scheduled holiday
'
),
'
going_out
'
:
_
(
'
going out
'
),
'
partying
'
:
_
(
'
partying
'
),
'
having_a_snack
'
:
_
(
'
having a snack
'
),
'
having_lunch
'
:
_
(
'
having lunch
'
),
'
working_out
'
:
_
(
'
working out
'
),
'
cleaning
'
:
_
(
'
cleaning
'
),
'
watching_a_movie
'
:
_
(
'
watching a movie
'
),
'
sunbathing
'
:
_
(
'
sunbathing
'
),
'
socializing
'
:
_
(
'
socializing
'
),
'
running_an_errand
'
:
_
(
'
running an errand
'
),
'
taking_a_bath
'
:
_
(
'
taking a bath
'
),
'
in_real_life
'
:
_
(
'
in real life
'
),
'
on_a_plane
'
:
_
(
'
on a plane
'
),
'
shopping
'
:
_
(
'
shopping
'
),
'
on_a_train
'
:
_
(
'
on a train
'
),
'
running
'
:
_
(
'
running
'
),
'
taking_a_shower
'
:
_
(
'
taking a shower
'
),
'
jogging
'
:
_
(
'
jogging
'
),
'
in_a_meeting
'
:
_
(
'
in a meeting
'
),
'
in_a_car
'
:
_
(
'
in a car
'
),
'
studying
'
:
_
(
'
studying
'
),
'
swimming
'
:
_
(
'
swimming
'
),
'
having_coffee
'
:
_
(
'
having coffee
'
),
'
other
'
:
_
(
'
other
'
)}
if
activities
.
has_key
(
activity
):
return
activities
[
activity
]
else
:
return
activity
# # Argl! An unknown activity!
def
get_sorted_keys
(
adict
):
keys
=
adict
.
keys
()
keys
.
sort
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment