Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/bundle
diff options
context:
space:
mode:
authorTomeu Vizoso <tomeu@tomeuvizoso.net>2008-05-19 16:03:04 (GMT)
committer Tomeu Vizoso <tomeu@tomeuvizoso.net>2008-05-24 16:07:51 (GMT)
commit708a62c06f5212773aee46d4263b9e3a96d8cf32 (patch)
tree3ff9a1ae83afae4597c0e33f771afb32befe9c68 /src/sugar/bundle
parent6c024ed52949b758c12fe92033e3fbf07b91fc25 (diff)
Move timestamp_to_elapsed_string to sugar.util and add ActivityBundle.installation_time
Diffstat (limited to 'src/sugar/bundle')
-rw-r--r--src/sugar/bundle/activitybundle.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sugar/bundle/activitybundle.py b/src/sugar/bundle/activitybundle.py
index 5f1fb7b..db30555 100644
--- a/src/sugar/bundle/activitybundle.py
+++ b/src/sugar/bundle/activitybundle.py
@@ -163,6 +163,11 @@ class ActivityBundle(Bundle):
"""Get the activity user visible name."""
return self._name
+ def get_installation_time(self):
+ """Get a timestamp representing the time at which this activity was
+ installed."""
+ return os.stat(self._path).st_mtime
+
def get_bundle_id(self):
"""Get the activity bundle id"""
return self._bundle_id