Commit Graph

37 Commits

Author SHA1 Message Date
Sascha Silbe
7acfbd070f style cleanup: prefer ' for strings
Tomeu prefers ' for strings, so let's use it wherever we don't have a good
reason to use ".

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
2010-11-23 17:14:34 +01:00
Sascha Silbe
5f13fcfc84 style cleanup: use """ everywhere
Most of the code uses """, so adjust the few deviations.

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
2010-11-23 17:14:34 +01:00
Sascha Silbe
73de340d27 PEP8 cleanup: fix spaces around keyword parameters
Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
2010-11-23 17:14:33 +01:00
Sascha Silbe
60707443ea PEP8 cleanup: fix whitespace around operator
Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
CC: Aleksey Lim <alsroot@member.fsf.org>
2010-11-23 17:14:33 +01:00
Simon Schampijer
c7a80a1e56 Add new numbering scheme #2425
- add class NormalizedVersion to parse and compare the new activity versions
- change the bundlebuilder and activitybundle to use the new scheme, instead
of an int version we expect a string that matches the format defined in
NormalizedVersion
2010-11-09 10:53:05 +01:00
Martin Abente
f0a570b5ae Delete activities profile data when uninstall #2074
When activities are uninstalled, profile data persists. Profile
data can consume a lot of storage space. Therefore it is necessary
to delete it when required.

Signed-off-by: Martin Abente <mabente@paraguayeduca.org>
2010-08-23 14:09:33 -04:00
Tomeu Vizoso
fdfacaf26f Misc. pylint fixes 2010-08-20 15:33:54 +02:00
Simon Schampijer
981707c112 Print warnings about the deprecated activity.info fields 2010-08-17 17:25:19 +02:00
Simon Schampijer
acd8095a29 Revert "Support dropped for activity.info fields 'service_name' and 'class'"
This reverts commit e11b7d3196.
2010-08-17 16:57:02 +02:00
Simon Schampijer
e11b7d3196 Support dropped for activity.info fields 'service_name' and 'class'
You have to use 'bundle_id' and 'exec' instead now.
2010-08-16 16:12:11 +02:00
Simon Schampijer
3aa0995096 Bundelbuilder should not use localized activity name #1968 (Walter Bender)
The localized activity name is only used for
user-facing strings. The .xo and .tar files are
left in the original name.
2010-06-03 08:56:42 +02:00
Aleksey Lim
823188957c Treat broken symlinks corretcly #1394 2009-09-20 13:40:24 +00:00
Aleksey Lim
7a8dc0dd70 Do not fail if activity mime_type was already installed #1394 2009-09-20 11:22:24 +00:00
Aleksey Lim
78d64031c3 Add is_user_activity() to ActivityBundle #701 2009-08-28 12:06:43 +00:00
Sascha Silbe
c9e63eb8ea PEP8 white space and long line fixes 2009-08-25 21:12:40 +02:00
Sascha Silbe
ecdaf6b795 trim EOL (end-of-line) spaces on source files 2009-08-25 19:55:48 +02:00
Simon Schampijer
e1e8647de9 pylint fixes 2009-08-24 14:51:00 +02:00
Sascha Silbe
496090fe62 let the logger do the formatting 2009-08-24 12:54:02 +02:00
Tomeu Vizoso
d7e0e22f49 update mime type db when a new activity is copied to ~/Activities #955 2009-07-22 11:54:12 +02:00
Tomeu Vizoso
cd7debb52a Add support for tags in activity bundles 2009-06-16 16:22:48 +02:00
Tomeu Vizoso
d22b52434b Don't recursively clean an activity if it's a symbolic link #444 2009-03-01 18:24:12 +01:00
Tomeu Vizoso
50a253b1b9 Add extension to temp icon file names #458 2009-03-01 10:36:42 +01:00
Tomeu Vizoso
26e5fc5ca9 Use util.TempFilePath for icons extracted from zipped bundles 2009-01-03 19:11:36 +01:00
Daniel Drake
3f1509cd22 Simplify activity bundle installation
sugar-install-bundle is broken because ActivityBundle.install() gained a
required parameter. Please can we make it optional? This also fixes one
of the problems with the activity updater.
2008-12-05 21:55:34 +00:00
Marco Pesenti Gritti
b58182a970 Mark modules as STABLE/UNSTABLE/DEPRECATED. 2008-10-28 14:19:01 +01:00
Tomeu Vizoso
f5d45d6acd Make sure that manifests in bundles are only called at install and deployment time, so it doesnt impact shell startup performance 2008-10-17 15:29:35 +02:00
Marco Pesenti Gritti
f5f26d59c4 Remove unused imports. 2008-10-06 16:38:25 +02:00
Marco Pesenti Gritti
5c6c7ab1d1 The activity registry is now private to the shell.
Changed the activityfactory to take a bundle instead of a bundle_id
so that it doesn't depend on the registry.
2008-10-06 15:54:46 +02:00
Marco Pesenti Gritti
938e2e9648 Do not try to list the mimetypes directory if it does not exist.
Fix #7837
2008-08-31 14:36:13 +02:00
C. Scott Ananian
1bd1b6c81e Trac #7733: fix severe performance regression when creating ActivityBundle. 2008-08-19 15:46:36 -04:00
Marco Pesenti Gritti
80190bf944 Several pylint fixes. 2008-08-11 00:50:29 +02:00
Jameson Quinn
48597a672f bug #7534: need_upgrade should always be True 2008-07-23 09:55:42 -06:00
Jameson Quinn
62af4ae9bb bug #7494 - uninstall from location, not future location 2008-07-23 07:09:49 -06:00
Tomeu Vizoso
73fe1e9837 #7046: Fix removal of activities 2008-07-03 12:27:28 +02:00
Marco Pesenti Gritti
cfdc17d6c9 Patch by Jameson Chema Quinn.
Readability cleanups and little fixes by me.

use MANIFEST. Deprecate bundle_name. fix_manifest().
bundlebuilder.config() cleanup.
2008-06-13 12:37:45 +02:00
Tomeu Vizoso
708a62c06f Move timestamp_to_elapsed_string to sugar.util and add ActivityBundle.installation_time 2008-05-24 18:07:51 +02:00
Marco Pesenti Gritti
72c2a1d770 Use a src directory consistently with base and shell. 2008-04-29 14:58:34 +02:00