def getVersion(self): """ Gather our current version information @return: Zenoss version information @rtype: string """ from Products.ZenModel.ZenossInfo import ZenossInfo zinfo = ZenossInfo('') return str(zinfo.getZenossVersion())
def buildParser(self): """ Create the options parser """ if not self.parser: from Products.ZenModel.ZenossInfo import ZenossInfo try: zinfo = ZenossInfo('') version = str(zinfo.getZenossVersion()) except Exception: from Products.ZenModel.ZVersion import VERSION version = VERSION self.parser = OptionParser(usage=self.usage, version="%prog " + version, option_class=LogSeverityOption)
def buildParser(self): """ Create the options parser """ if not self.parser: from Products.ZenModel.ZenossInfo import ZenossInfo try: zinfo= ZenossInfo('') version= str(zinfo.getZenossVersion()) except Exception: from Products.ZenModel.ZVersion import VERSION version= VERSION self.parser = OptionParser(usage=self.usage, version="%prog " + version, option_class=LogSeverityOption)