def getBibutilsVersion(self): """ Return installed Bibutils version """ from bibliograph.core.version_check import checkBibutilsVersion try: return checkBibutilsVersion() except RuntimeError, e: return 'n/a (%s)' % e
def getBibutilsVersion(self): """ Return installed Bibutils version """ from bibliograph.core.version_check import checkBibutilsVersion try: return checkBibutilsVersion() except RuntimeError, e: return 'n/a (%s)' % e
sys.modules[old_path + 'ArticleReference'] = article sys.modules[old_path + 'BookletReference'] = booklet sys.modules[old_path + 'BookReference'] = book sys.modules[old_path + 'InbookReference'] = inbook sys.modules[old_path + 'IncollectionReference'] = incollection sys.modules[old_path + 'InproceedingsReference'] = inproceedings sys.modules[old_path + 'ManualReference'] = manual sys.modules[old_path + 'MastersthesisReference'] = mastersthesis sys.modules[old_path + 'MiscReference'] = misc sys.modules[old_path + 'PhdthesisReference'] = phdthesis sys.modules[old_path + 'PreprintReference'] = preprint sys.modules[old_path + 'ProceedingsReference'] = proceedings sys.modules[old_path + 'TechreportReference'] = techreport sys.modules[old_path + 'UnpublishedReference'] = unpublished sys.modules[old_path + 'WebpublishedReference'] = webpublished from tool import bibliography sys.modules['Products.CMFBibliographyAT.BibliographyTool'] = bibliography # check Bibutils version from bibliograph.core.version_check import checkBibutilsVersion import logging LOG = logging.getLogger('Products.CMFBibliographyAT') try: bibutils_version = checkBibutilsVersion() LOG.info('Installed Bibutils version: %s' % bibutils_version) except RuntimeError, e: bibutils_version = None LOG.warn(e)
sys.modules[old_path + 'BookReference'] = book sys.modules[old_path + 'InbookReference'] = inbook sys.modules[old_path + 'IncollectionReference'] = incollection sys.modules[old_path + 'InproceedingsReference'] = inproceedings sys.modules[old_path + 'ManualReference'] = manual sys.modules[old_path + 'MastersthesisReference'] = mastersthesis sys.modules[old_path + 'MiscReference'] = misc sys.modules[old_path + 'PhdthesisReference'] = phdthesis sys.modules[old_path + 'PreprintReference'] = preprint sys.modules[old_path + 'ProceedingsReference'] = proceedings sys.modules[old_path + 'TechreportReference'] = techreport sys.modules[old_path + 'UnpublishedReference'] = unpublished sys.modules[old_path + 'WebpublishedReference'] = webpublished from tool import bibliography sys.modules['Products.CMFBibliographyAT.BibliographyTool'] = bibliography # check Bibutils version from bibliograph.core.version_check import checkBibutilsVersion import logging LOG = logging.getLogger('Products.CMFBibliographyAT') try: bibutils_version = checkBibutilsVersion() LOG.info('Installed Bibutils version: %s' % bibutils_version) except RuntimeError, e: bibutils_version = None LOG.warn(e)