diff options
author | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-03-20 01:55:19 (GMT) |
---|---|---|
committer | Agustin Zubiaga <aguz@sugarlabs.org> | 2012-03-20 01:55:19 (GMT) |
commit | 548d58e859e017b0d32cbb03ee6a0172e9917aaf (patch) | |
tree | 4b68e682f744c7fd061c3e914d99745d54ec7de4 /utils.py | |
parent | 0d8a44e88b4ae9cacf5e3e3fe63f5a5ab6f17670 (diff) |
Add docstrings
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -32,6 +32,7 @@ TMP_DIR = os.path.join(activity.get_activity_root(), "tmp") def update_list(): + """Download the last list version""" remote_file = urllib.urlopen(LIST_DOWNLOAD) file = open(LIST_PATH, 'w') file.write(remote_file.read()) @@ -53,6 +54,7 @@ def get_store_list(): def get_icon(activity_id): + """Get the icon of an specified activity""" store_list = get_store_list() activity_obj = store_list[activity_id] @@ -66,6 +68,7 @@ def get_icon(activity_id): def download_activity(id, progress_function): + """Download (and install) an activity""" store_list = get_store_list() activity_obj = store_list[id] @@ -86,6 +89,7 @@ def download_activity(id, progress_function): def install_activity(xofile, progress_function): + """Install an downloaded activity""" progress_function(150) os.system('sugar-install-bundle %s' % xofile) os.remove(xofile) |