equal
deleted
inserted
replaced
407 # static and class methods used to get instance independant resources ## |
407 # static and class methods used to get instance independant resources ## |
408 @staticmethod |
408 @staticmethod |
409 def cubicweb_version(): |
409 def cubicweb_version(): |
410 """return installed cubicweb version""" |
410 """return installed cubicweb version""" |
411 from logilab.common.changelog import Version |
411 from logilab.common.changelog import Version |
412 from cubicweb import __pkginfo__ |
412 str_base_version = pkg_resources.get_distribution('cubicweb').parsed_version.base_version |
413 version = __pkginfo__.numversion |
413 version = tuple([int(x) for x in str_base_version.split('.')]) |
414 assert len(version) == 3, version |
414 assert len(version) == 3, version |
415 return Version(version) |
415 return Version(version) |
|
416 |
416 |
417 |
417 @staticmethod |
418 @staticmethod |
418 def persistent_options_configuration(): |
419 def persistent_options_configuration(): |
419 return Configuration(options=PERSISTENT_OPTIONS) |
420 return Configuration(options=PERSISTENT_OPTIONS) |
420 |
421 |