From fb81d3a51f29b0bf71843bb5540e508b6d480c25 Mon Sep 17 00:00:00 2001
From: Aleksey Lim <alsroot@member.fsf.org>
Date: Wed, 10 Mar 2010 10:09:13 +0000
Subject: Clean up some .xoj registry code #1098
diff --git a/src/jarabe/journal/journalentrybundle.py b/src/jarabe/journal/journalentrybundle.py
index 9e68c06..41777c7 100644
a
|
b
|
class JournalEntryBundle(Bundle): |
40 | 40 | def __init__(self, path): |
41 | 41 | Bundle.__init__(self, path) |
42 | 42 | |
43 | | def install(self, install_path, uid=''): |
| 43 | def install(self, uid=''): |
44 | 44 | if os.environ.has_key('SUGAR_ACTIVITY_ROOT'): |
45 | 45 | install_dir = os.path.join(os.environ['SUGAR_ACTIVITY_ROOT'], |
46 | 46 | 'data') |
diff --git a/src/jarabe/model/bundleregistry.py b/src/jarabe/model/bundleregistry.py
index 5abd654..86a2738 100644
a
|
b
|
class BundleRegistry(gobject.GObject): |
364 | 364 | |
365 | 365 | install_dir = env.get_user_activities_path() |
366 | 366 | if isinstance(bundle, JournalEntryBundle): |
367 | | install_path = bundle.install(install_dir, uid) |
| 367 | install_path = bundle.install(uid) |
368 | 368 | else: |
369 | 369 | install_path = bundle.install(install_dir) |
370 | 370 | |