diff options
author | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-05-19 16:03:04 (GMT) |
---|---|---|
committer | Tomeu Vizoso <tomeu@tomeuvizoso.net> | 2008-05-24 16:07:51 (GMT) |
commit | 708a62c06f5212773aee46d4263b9e3a96d8cf32 (patch) | |
tree | 3ff9a1ae83afae4597c0e33f771afb32befe9c68 /src/sugar/activity | |
parent | 6c024ed52949b758c12fe92033e3fbf07b91fc25 (diff) |
Move timestamp_to_elapsed_string to sugar.util and add ActivityBundle.installation_time
Diffstat (limited to 'src/sugar/activity')
-rw-r--r-- | src/sugar/activity/registry.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sugar/activity/registry.py b/src/sugar/activity/registry.py index 5f5aefc..d5d0529 100644 --- a/src/sugar/activity/registry.py +++ b/src/sugar/activity/registry.py @@ -31,11 +31,12 @@ def _activity_info_from_dict(info_dict): return ActivityInfo(info_dict['name'], info_dict['icon'], info_dict['bundle_id'], info_dict['version'], info_dict['path'], info_dict['show_launcher'], - info_dict['command'], info_dict['favorite']) + info_dict['command'], info_dict['favorite'], + info_dict['installation_time']) class ActivityInfo(object): - def __init__(self, name, icon, bundle_id, version, - path, show_launcher, command, favorite): + def __init__(self, name, icon, bundle_id, version, path, show_launcher, + command, favorite, installation_time): self.name = name self.icon = icon self.bundle_id = bundle_id @@ -44,6 +45,7 @@ class ActivityInfo(object): self.command = command self.show_launcher = show_launcher self.favorite = favorite + self.installation_time = installation_time class ActivityRegistry(gobject.GObject): __gsignals__ = { |