Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/jarabe/model/bundleregistry.py
Commit message (Collapse)AuthorAgeFilesLines
* Pep8 fixes and other changes to finish the Multiple Homeviews feature.HEADmasterDaniel Francis2012-11-301-11/+8
| | | | | | Implies a change in the translation strings. Signed-off-by: Daniel Francis <francis@sugarlabs.org>
* Fix problems in bundle registryDaniel Francis2012-11-301-1/+9
| | | | Signed-off-by: Daniel Francis <francis@sugarlabs.org>
* Start fixing bundle registryDaniel Francis2012-11-301-2/+8
| | | | Signed-off-by: Daniel Francis <francis@sugarlabs.org>
* Other conditionals for multiple homeviewsDaniel Francis2012-11-291-15/+31
| | | | Signed-off-by: Daniel Francis <francis@sugarlabs.org>
* Multiple home viewsDaniel Francis2012-11-291-0/+86
| | | | Signed-off-by: Daniel Francis <francis@sugarlabs.org>
* Protected Activities: workaround gconf_client_get_list not (yet) introspectableSimon Schampijer2012-09-071-3/+8
| | | | | | | | | | | client.get_list() is not introspectable, as the elements in the list returned do not have a fixed type. However, we can use the more generic .get() and the GConfValue methods to read the list. Patch by Daniel: http://dev.laptop.org/git/users/dsd/sugar/commit/?h=gtk3port&id=5ebdc335a6ed33aa019093db27b25a874221fe4d Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Bundleregistry: adopt to dynamic bindings for Gio GFileManuel Quiñones2012-09-071-2/+3
| | | | | | | | | | | | | | | | | | | | There is a constructor to construct a GFile with a given path [1] instead of passing the patch to the constructor as in the static bindings. For monitoring the directory [3] we pass no GFileMonitorFlags [4] and mark it non cancellable. A test program can be found at [5]. [1] http://developer.gnome.org/gio/unstable/GFile.html#g-file-new-for-path [2] http://www.pygtk.org/docs/pygobject/class-giofile.html#constructor-giofile [3] http://developer.gnome.org/gio/unstable/GFile.html#g-file-monitor-directory [4] http://developer.gnome.org/gio/unstable/GFile.html#GFileMonitorFlags-enum [5] http://dev.laptop.org/~erikos/shell_port/tests/test_gio_watch.py Signed-off-by: Manuel Quiñones <manuq@laptop.org> Acked-by: Simon Schampijer <simon@laptop.org>
* Run sugar-convert.sh for automatic conversion from sugar.* to sugar3.* importsSimon Schampijer2012-09-071-5/+5
| | | | | | | | | | | | | | Run sugar-convert.sh [1] for automatic conversion from sugar.* imports to sugar3.* imports. This is only on a best-effort basis; the code will be in a broken state after this patch and need to be fixed manually. The purpose of committing the intermediate, non-working output is to make it reproducible. It's impractical to manually review the changes. [1] http://dev.laptop.org/~manuq/sugar-convert.sh Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Run pygi-convert.sh for automatic conversion from GTK+ 2 to GTK+ 3Simon Schampijer2012-09-071-16/+16
| | | | | | | | | | | | | | | | | | Run pygi-convert.sh for automatic conversion from GTK+ 2 to GTK+ 3 and pygobject+gobject-introspection. This is only on a best-effort basis; the code will be in a broken state after this patch and need to be fixed manually. The purpose of committing the intermediate, non-working output is to make it reproducible. It's impractical to manually review the changes. The exact version used was 2d8f48f4ff56bb75985136452b50b75895258608 from the main pygobject repository [1]. [1] git://git.gnome.org/pygobject Signed-off-by: Simon Schampijer <simon@laptop.org> Acked-by: Manuel Quiñones <manuq@laptop.org>
* Only consider the exact same version of a bundle as installed (fixes SL#3081)Sascha Silbe2011-09-071-1/+1
| | | | | | | | | | | | 49232e55 introduced a typo that caused a bundle to be considered installed even if it contained an older version than what was actually installed. This is turn triggered the "upgrade" logic in jarabe.journal.misc.resume(). The result was that activities got downgraded without asking the user for confirmation. Signed-off-by: Sascha Silbe <silbe@activitycentral.com> Acked-by: Simon Schampijer <simon@laptop.org>
* Open content bundles on a external device #1748Simon Schampijer2011-03-031-0/+2
| | | | | | Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org> Acked-By: Simon Schampijer <simon@laptop.org> Reviewed-By: Sascha Silbe <silbe@activitycentral.com>
* fix whitespace error introduced by 4b6a534 (revert of 4a3416b)Sascha Silbe2011-02-121-1/+1
| | | | | Signed-off-by: Sascha Silbe <silbe@activitycentral.com> Reviewed-by: Aleksey Lim <alsroot@activitycentral.org>
* Based on Jame's comment at http://dev.laptop.org/ticket/9189#comment:25Simon Schampijer2011-02-041-13/+3
| | | | | | | | I am reverting this commit. Revert "restore sugar-launch by bundle id substring, fixes #897" This reverts commit 4a3416b9acdfdd533ee2d69633f1383476db5e71.
* pylint cleanup: disable warnings for reasonable catch-all exception handlersSascha Silbe2010-11-241-0/+1
| | | | | | Reviewed-by: James Cameron <quozl@laptop.org> Reviewed-by: Simon Schampijer <simon@laptop.org> CC: Aleksey Lim <alsroot@member.fsf.org>
* use logging.exception() instead of logging.error(traceback.format_exc())Sascha Silbe2010-11-241-12/+8
| | | | | | | | | logging.exception() handles exceptions nicely for us, no need to explicitly use traceback. Reviewed-by: James Cameron <quozl@laptop.org> Reviewed-by: Simon Schampijer <simon@laptop.org> CC: Aleksey Lim <alsroot@member.fsf.org>
* PEP8 cleanup: don't use has_key()Sascha Silbe2010-11-241-4/+1
| | | | | | | | has_key() has been deprecated for quite some time now. Reviewed-by: James Cameron <quozl@laptop.org> Reviewed-by: Simon Schampijer <simon@laptop.org> CC: Aleksey Lim <alsroot@member.fsf.org>
* PEP8 cleanup: ensure lines are shorter than 80 charactersSascha Silbe2010-11-241-3/+3
| | | | | | | | This is important for Sugar because the XO has a small screen where long lines would make the code hard to understand (because you need to constantly scroll horizontally). Reviewed-by: James Cameron <quozl@laptop.org> CC: Aleksey Lim <alsroot@member.fsf.org>
* PEP8 cleanup: fix spaces around operators and parenthesesSascha Silbe2010-11-241-3/+3
| | | | | | Reviewed-by: James Cameron <quozl@laptop.org> Reviewed-by: Simon Schampijer <simon@laptop.org> CC: Aleksey Lim <alsroot@member.fsf.org>
* pep8 cleanup: fix number of blank linesSascha Silbe2010-11-241-1/+0
| | | | | | Reviewed-by: James Cameron <quozl@laptop.org> Reviewed-by: Simon Schampijer <simon@laptop.org> CC: Aleksey Lim <alsroot@member.fsf.org>
* style cleanup: move globals before class and method definitionsSascha Silbe2010-11-241-1/+4
| | | | | | | | | | | | | This only touches the globals that were flagged by pep8 due to white space issues or contain "instance" in their name (singleton pattern). I've also left the sunflower layout variables alone. AFAICT this layout is currently unused and should be removed instead (or factored out like the snow flake layout and reenabled). Reviewed-by: James Cameron <quozl@laptop.org> Reviewed-by: Simon Schampijer <simon@laptop.org> CC: Aleksey Lim <alsroot@member.fsf.org>
* Adapt activity list and bundleregistry to new numbering scheme #2425Simon Schampijer2010-11-091-9/+12
| | | | | | - the activities list view is changed to use a string for the version - the comparisons in the bundleregistry have changed to use the new numbering scheme
* Downgrading activities not allowed. (SL #2164)shanjit@seeta.in2010-10-251-2/+5
| | | | | | | | | | Activity can be downgraded on the availability of an older .xo version of an activity. An alert pops up when trying to install an older .xo file of an activity, which asks the user to make a selection on whether to move to an older activity version or not. Co-authored-by: Shanjit Singh Jajmann <shanjit@seeta.in> Co-authored-by: Anubhav Aggarwal <anubhav@seeta.in>
* Protected Activities Support #2087Martin Abente2010-09-091-0/+12
| | | | | | | | | | | | Activities deletion causes troubles during classes. Teachers from Paraguay and Uruguay asked for a mechanism to protect activities from being easily deleted. This patch provides a mechanism that uses a gconf value to determine which activities will not contain the erase option at the list view palette. The gconf value contains a list of activities bundle indentifiers.
* Delete profile data only when erased #2074Martin Abente2010-08-231-2/+2
| | | | | | | | Profile data should be deleted _only_ when the user explicitly erases the activity from the activities list. Signed-off-by: Martin Abente <mabente@paraguayeduca.org>
* restore sugar-launch by bundle id substring, fixes #897James Cameron2010-08-131-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sugar-launch uses GetBundlePath which calls bundleregistry.get_bundle(). In this patch, the get_bundle() method is changed to retain as much of the original API as possible, yet in the situation where it might return None it will now return a bundle if there is only one bundle that matches the search string. http://bugs.sugarlabs.org/ticket/897 http://dev.laptop.org/ticket/9189 Patch tested on Sugar 0.84.10 on OLPC XO-1.5 build os108. Test case: import jarabe.model.bundleregistry registry = jarabe.model.bundleregistry.BundleRegistry() tests = ['org.laptop.Terminal', 'Terminal', 'terminal', 'e', 'asdqweas'] for x in tests: y = registry.get_bundle(x) if y is None: z = 'None' else: z = y.get_bundle_id() print x, z Output before patch: org.laptop.Terminal org.laptop.Terminal Terminal None terminal None e None asdqweas None Output after patch: org.laptop.Terminal org.laptop.Terminal Terminal org.laptop.Terminal terminal org.laptop.Terminal e None asdqweas None
* Clean up some .xoj registry code #1098Aleksey Lim2010-03-101-1/+1
|
* Keep preferable activities #1493Aleksey Lim2010-03-081-1/+14
|
* Journal entry bundles shouldn't create a 2nd ds entryDaniel Drake2009-11-261-3/+6
| | | | | | | | | | This fixes a problem where "Show in Journal" from a Browse download was broken. This is because the JEB installation code would extract the content from the bundle entry, install it as a new datastore entry, and then delete the bundle entry. This is fixed by making the journal entry from the bundle take over the datastore entry that belonged to the bundle.
* Revert "Move to cjson and drop pyjson and simplejson"Daniel Drake2009-11-231-3/+3
| | | | | | | | | | | This reverts commit ee4535c98ae74347e7072909d49dcf8a5e16ca7b. cjson has a big bug dealing with slashes, this is a significant long-term bug and upstream has not been responsive other than acknowledging it. This bug breaks journal entry bundles. http://dev.sugarlabs.org/ticket/1553 Thanks to Martin Langhoff for identifying and researching this issue
* Let user upgrade system activity from .xo #701Aleksey Lim2009-08-281-6/+16
|
* let the logger do the formattingSascha Silbe2009-08-241-6/+4
|
* Bunch of pylint fixesTomeu Vizoso2009-08-191-2/+2
|
* Improve error reporting.Tomeu Vizoso2009-08-141-5/+6
|
* Add support for len(bundleregistry.get_registry())Tomeu Vizoso2009-08-061-0/+3
|
* Change scope for class membersAleksey Lim2009-08-031-2/+0
|
* Install .xo bundles while uploading to JournalAleksey Lim2009-07-301-4/+3
|
* Fix .xoj support #1098Aleksey Lim2009-07-271-3/+7
|
* Dont reinstall bundle if its already installed (silbe) #1053Tomeu Vizoso2009-07-221-0/+3
|
* update mime type db when a new activity is copied to ~/Activities #955Tomeu Vizoso2009-07-221-4/+6
|
* Hold a reference to the monitors so don't get disposedSimon Schampijer2009-06-111-0/+4
|
* If user updates an activity installed... #707Aleksey Lim2009-04-061-2/+3
|
* Restore minimal .xol support #459Tomeu Vizoso2009-03-031-1/+21
|
* Check the activity version and replace an older version upon download #464Tomeu Vizoso2009-03-021-2/+15
|
* Avoid reading the bundle twice #442Tomeu Vizoso2009-03-011-9/+4
|
* Don't add_bundle on activity dir change when installed already #442Simon Schampijer2009-02-271-1/+9
| | | | regression from #235
* Fix a couple of trivial pylint warningsTomeu Vizoso2009-02-241-2/+2
|
*