Ticket #1098: 0001-Clean-up-some-.xoj-registry-code-1098.patch

File 0001-Clean-up-some-.xoj-registry-code-1098.patch, 1.3 KB (added by alsroot, 11 years ago)
  • src/jarabe/journal/journalentrybundle.py

    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): 
    4040    def __init__(self, path):
    4141        Bundle.__init__(self, path)
    4242
    43     def install(self, install_path, uid=''):
     43    def install(self, uid=''):
    4444        if os.environ.has_key('SUGAR_ACTIVITY_ROOT'):
    4545            install_dir = os.path.join(os.environ['SUGAR_ACTIVITY_ROOT'],
    4646                                       'data')
  • src/jarabe/model/bundleregistry.py

    diff --git a/src/jarabe/model/bundleregistry.py b/src/jarabe/model/bundleregistry.py
    index 5abd654..86a2738 100644
    a b class BundleRegistry(gobject.GObject): 
    364364
    365365        install_dir = env.get_user_activities_path()
    366366        if isinstance(bundle, JournalEntryBundle):
    367             install_path = bundle.install(install_dir, uid)
     367            install_path = bundle.install(uid)
    368368        else:
    369369            install_path = bundle.install(install_dir)
    370370