equal
deleted
inserted
replaced
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 """ |