#6183 NORM Future : Error when loading bundles pass unnoticed at startup.

Zarro Boogs per Child bugtracker at laptop.org
Thu Jan 31 06:45:38 EST 2008


#6183: Error when loading bundles pass unnoticed at startup.
---------------------+------------------------------------------------------
  Reporter:  Ivo     |       Owner:  tomeu         
      Type:  defect  |      Status:  new           
  Priority:  normal  |   Milestone:  Future Release
 Component:  sugar   |     Version:  Q2D07         
Resolution:          |    Keywords:  review?       
  Verified:  0       |    Blocking:                
 Blockedby:          |  
---------------------+------------------------------------------------------
Changes (by tomeu):

 * cc: tomeu (removed)
 * cc: marco (added)
  * keywords:  => review?
  * owner:  marco => tomeu


Comment:

 This patch should improve error reporting in the activity registry:

 {{{
 diff --git a/services/shell/bundleregistry.py
 b/services/shell/bundleregistry.py
 index 8dd141c..322b503 100644
 --- a/services/shell/bundleregistry.py
 +++ b/services/shell/bundleregistry.py
 @@ -106,7 +106,8 @@ class BundleRegistry(gobject.GObject):
      def add_bundle(self, bundle_path):
          try:
              bundle = ActivityBundle(bundle_path)
 -        except MalformedBundleException:
 +        except MalformedBundleException, e:
 +            logging.error('BundleRegistry.add_bundle: malformed bundle:
 %r' % bundle_path)
              return False

          self._bundles.append(bundle)
 diff --git a/services/shell/sugar-shell-service b/services/shell/sugar-
 shell-service
 index e5c6a7d..f1253f2 100755
 --- a/services/shell/sugar-shell-service
 +++ b/services/shell/sugar-shell-service
 @@ -30,12 +30,12 @@ from sugar import env

  sys.path.append(env.get_service_path('shell'))

 -import clipboardservice
 -import activityregistryservice
 -
  logger.start('shellservice')
  logging.info('Starting shell service.')

 +import clipboardservice
 +import activityregistryservice
 +
  gobject.threads_init()
  dbus.glib.threads_init()

 }}}

-- 
Ticket URL: <http://dev.laptop.org/ticket/6183#comment:22>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list