本文整理汇总了Python中mmc.core.version.scmRevision函数的典型用法代码示例。如果您正苦于以下问题:Python scmRevision函数的具体用法?Python scmRevision怎么用?Python scmRevision使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了scmRevision函数的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: scmRevision
"""
import os
import logging
from mmc.core.version import scmRevision
from mmc.support import mmctools
from mmc.support.config import PluginConfig, ConfigException
from ConfigParser import NoSectionError, NoOptionError
from mmc.core.audit import AuditFactory as AF
from mmc.plugins.proxy.audit import AT, AA, PLUGIN_NAME
VERSION = "2.5.1"
APIVERSION = "1:1:0"
REVISION = scmRevision("$Rev$")
def getVersion(): return VERSION
def getApiVersion(): return APIVERSION
def getRevision(): return REVISION
def activate():
"""
this function define if the module "proxy" can be activated.
@return: return True if this module can be activate
@rtype: boolean
"""
config = ProxyConfig("proxy")
logger = logging.getLogger()
if config.disabled:
msg = "disabled by configuration"
示例2: getRevision
def getRevision(self):
return scmRevision("$Rev$")