cwconfig.py
changeset 140 478bdd15bc0e
parent 0 b97547f5f1fa
child 180 8bcebdb5f55d
equal deleted inserted replaced
139:16aafc56a1ac 140:478bdd15bc0e
   262     def cube_pkginfo(cls, cube):
   262     def cube_pkginfo(cls, cube):
   263         """return the information module for the given cube"""
   263         """return the information module for the given cube"""
   264         cube = CW_MIGRATION_MAP.get(cube, cube)
   264         cube = CW_MIGRATION_MAP.get(cube, cube)
   265         try:
   265         try:
   266             return getattr(__import__('cubes.%s.__pkginfo__' % cube), cube).__pkginfo__
   266             return getattr(__import__('cubes.%s.__pkginfo__' % cube), cube).__pkginfo__
   267         except ImportError:
   267         except Exception, ex:
   268             raise ConfigurationError('unable to find packaging information for '
   268             raise ConfigurationError('unable to find packaging information for '
   269                                      'cube %s' % cube)
   269                                      'cube %s (%s: %s)' % (cube, ex.__class__.__name__, ex))
   270 
   270 
   271     @classmethod
   271     @classmethod
   272     def cube_version(cls, cube):
   272     def cube_version(cls, cube):
   273         """return the version of the cube located in the given directory        
   273         """return the version of the cube located in the given directory        
   274         """
   274         """