Skip to content
Snippets Groups Projects
Commit 64855174 authored by Dicson's avatar Dicson
Browse files

coding style.

parent 7cd239b9
No related branches found
No related tags found
No related merge requests found
...@@ -110,91 +110,90 @@ MOODS = { ...@@ -110,91 +110,90 @@ MOODS = {
'worried': _('Worried')} 'worried': _('Worried')}
ACTIVITIES = { ACTIVITIES = {
'doing_chores': {'category': _('Doing Chores'), 'doing_chores': {'category': _('Doing Chores'),
'buying_groceries': _('Buying Groceries'), 'buying_groceries': _('Buying Groceries'),
'cleaning': _('Cleaning'), 'cleaning': _('Cleaning'),
'cooking': _('Cooking'), 'cooking': _('Cooking'),
'doing_maintenance': _('Doing Maintenance'), 'doing_maintenance': _('Doing Maintenance'),
'doing_the_dishes': _('Doing the Dishes'), 'doing_the_dishes': _('Doing the Dishes'),
'doing_the_laundry': _('Doing the Laundry'), 'doing_the_laundry': _('Doing the Laundry'),
'gardening': _('Gardening'), 'gardening': _('Gardening'),
'running_an_errand': _('Running an Errand'), 'running_an_errand': _('Running an Errand'),
'walking_the_dog': _('Walking the Dog')}, 'walking_the_dog': _('Walking the Dog')},
'drinking': {'category': _('Drinking'), 'drinking': {'category': _('Drinking'),
'having_a_beer': _('Having a Beer'), 'having_a_beer' _('Having a Beer'),
'having_coffee': _('Having Coffee'), 'having_coffee': _('Having Coffee'),
'having_tea': _('Having Tea')}, 'having_tea': _('Having Tea')},
'eating': {'category': _('Eating'), 'eating': {'category': _('Eating'),
'having_a_snack': _('Having a Snack'), 'having_a_snack': _('Having a Snack'),
'having_breakfast': _('Having Breakfast'), 'having_breakfast': _('Having Breakfast'),
'having_dinner': _('Having Dinner'), 'having_dinner': _('Having Dinner'),
'having_lunch': _('Having Lunch')}, 'having_lunch': _('Having Lunch')},
'exercising': {'category': _('Exercising'), 'exercising': {'category': _('Exercising'),
'cycling': _('Cycling'), 'cycling': _('Cycling'),
'dancing': _('Dancing'), 'dancing': _('Dancing'),
'hiking': _('Hiking'), 'hiking': _('Hiking'),
'jogging': _('Jogging'), 'jogging': _('Jogging'),
'playing_sports': _('Playing Sports'), 'playing_sports': _('Playing Sports'),
'running': _('Running'), 'running': _('Running'),
'skiing': _('Skiing'), 'skiing': _('Skiing'),
'swimming': _('Swimming'), 'swimming': _('Swimming'),
'working_out': _('Working out')}, 'working_out': _('Working out')},
'grooming': {'category': _('Grooming'), 'grooming': {'category': _('Grooming'),
'at_the_spa': _('At the Spa'), 'at_the_spa': _('At the Spa'),
'brushing_teeth': _('Brushing Teeth'), 'brushing_teeth': _('Brushing Teeth'),
'getting_a_haircut': _('Getting a Haircut'), 'getting_a_haircut': _('Getting a Haircut'),
'shaving': _('Shaving'), 'shaving': _('Shaving'),
'taking_a_bath': _('Taking a Bath'), 'taking_a_bath': _('Taking a Bath'),
'taking_a_shower': _('Taking a Shower')}, 'taking_a_shower': _('Taking a Shower')},
'having_appointment': {'category': _('Having an Appointment')}, 'having_appointment': {'category': _('Having an Appointment')},
'inactive': {'category': _('Inactive'), 'inactive': {'category': _('Inactive'),
'day_off': _('Day Off'), 'day_off': _('Day Off'),
'hanging_out': _('Hanging out'), 'hanging_out': _('Hanging out'),
'hiding': _('Hiding'), 'hiding': _('Hiding'),
'on_vacation': _('On Vacation'), 'on_vacation': _('On Vacation'),
'praying': _('Praying'), 'praying': _('Praying'),
'scheduled_holiday': _('Scheduled Holiday'), 'scheduled_holiday': _('Scheduled Holiday'),
'sleeping': _('Sleeping'), 'sleeping': _('Sleeping'),
'thinking': _('Thinking')}, 'thinking': _('Thinking')},
'relaxing': {'category': _('Relaxing'), 'relaxing': {'category': _('Relaxing'),
'fishing': _('Fishing'), 'fishing': _('Gaming'),
'gaming': _('Gaming'), 'going_out': _('Going out'),
'going_out': _('Going out'), 'partying': _('Partying'),
'partying': _('Partying'), 'reading': _('Reading'),
'reading': _('Reading'), 'rehearsing': _('Rehearsing'),
'rehearsing': _('Rehearsing'), 'shopping': _('Shopping'),
'shopping': _('Shopping'), 'smoking': _('Smoking'),
'smoking': _('Smoking'), 'socializing': _('Socializing'),
'socializing': _('Socializing'), 'sunbathing': _('Sunbathing'),
'sunbathing': _('Sunbathing'), 'watching_tv': _('Watching TV'),
'watching_tv': _('Watching TV'), 'watching_a_movie': _('Watching a Movie')},
'watching_a_movie': _('Watching a Movie')}, 'talking': {'category': _('Talking'),
'talking': {'category': _('Talking'), 'in_real_life': _('In Real Life'),
'in_real_life': _('In Real Life'), 'on_the_phone': _('On the Phone'),
'on_the_phone': _('On the Phone'), 'on_video_phone': _('On Video Phone')},
'on_video_phone': _('On Video Phone')}, 'traveling': {'category': _('Traveling'),
'traveling': {'category': _('Traveling'), 'commuting': _('Commuting'),
'commuting': _('Commuting'), 'cycling': _('Cycling'),
'cycling': _('Cycling'), 'driving': _('Driving'),
'driving': _('Driving'), 'in_a_car': _('In a Car'),
'in_a_car': _('In a Car'), 'on_a_bus': _('On a Bus'),
'on_a_bus': _('On a Bus'), 'on_a_plane': _('On a Plane'),
'on_a_plane': _('On a Plane'), 'on_a_train': _('On a Train'),
'on_a_train': _('On a Train'), 'on_a_trip': _('On a Trip'),
'on_a_trip': _('On a Trip'), 'walking': _('Walking')},
'walking': _('Walking')}, 'working': {'category': _('Working'),
'working': {'category': _('Working'), 'coding': _('Coding'),
'coding': _('Coding'), 'in_a_meeting': _('In a Meeting'),
'in_a_meeting': _('In a Meeting'), 'studying': _('Studying'),
'studying': _('Studying'), 'writing': _('Writing')}}
'writing': _('Writing')}}
TUNE_DATA = ['artist', 'title', 'source', 'track', 'length'] TUNE_DATA = ['artist', 'title', 'source', 'track', 'length']
LOCATION_DATA = ['accuracy', 'alt', 'area', 'bearing', 'building', 'country', LOCATION_DATA = ['accuracy', 'alt', 'area', 'bearing', 'building', 'country',
'countrycode', 'datum', 'description', 'error', 'floor', 'lat', 'countrycode', 'datum', 'description', 'error', 'floor', 'lat',
'locality', 'lon', 'postalcode', 'region', 'room', 'speed', 'street', 'locality', 'lon', 'postalcode', 'region', 'room', 'speed',
'text', 'timestamp', 'uri'] 'street', 'text', 'timestamp', 'uri']
import gobject import gobject
import gtk import gtk
...@@ -324,7 +323,7 @@ class UserTunePEP(AbstractPEP): ...@@ -324,7 +323,7 @@ class UserTunePEP(AbstractPEP):
tune_dict[name] = data tune_dict[name] = data
retracted = items.getTag('retract') or not ('artist' in tune_dict or retracted = items.getTag('retract') or not ('artist' in tune_dict or
'title' in tune_dict) 'title' in tune_dict)
return (tune_dict, retracted) return (tune_dict, retracted)
def asPixbufIcon(self): def asPixbufIcon(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment