Пример #1
0
    def get(self, name=''):
        """
        获取值
        """
        if Utils.empty(name):
            Log.error('name不能为空')
            return False

        # 获取config
        val = self.config.get(self.section, name)
        return val
Пример #2
0
def create(args=None):
    if None is args:
        Log.error('没有name参数')
        return False
    name = args.name.split("/", 1)
    # name = ["it", "demo"]
    if name[0] == "it":
        it(name[1])
    elif name[0] == "st":
        st(name[1])
    elif name[0] == "sm":
        sm(name[1])
    else:
        Log.debug("没有相关类型 请输入it/project st/project sm/project")
Пример #3
0
def server(args=None):
    if None is args:
        Log.error('没有name参数')
        return False

    Log.debug(args)