示例#1
0
 class EnviBridge(EnviManager):
     __configuration__ = {
         "VAR1": EnviType.bool(is_ok=["True"]),
         "VAR2": EnviType.bool(is_ok=["true"]),
         "VAR3": EnviType.bool(is_ok=["True"]),
         "VAR4": EnviType.bool(is_ok=["true"]),
         "VAR5": EnviType.bool(is_ok=["true", "True"]),
     }
示例#2
0
    class EnviBridge(EnviManager):
        VAR = EnviType.bool()

        def callable(self):
            return "callable"

        @classmethod
        def callable2(cls):
            return "callable2"
示例#3
0
 class EnviBridge(EnviManager):
     __configuration__ = {
         "VAR": EnviType.bool(),
     }
示例#4
0
 class EnviBridgeInheriting(EnviBridge):
     __configuration__ = {
         "VAR1": EnviType.bool(),
         "VAR2": EnviType.bool(),
     }
示例#5
0
 class EnviBridge(EnviManager):
     VAR = EnviType.bool()
示例#6
0
 class EnviBridgeInheriting(EnviBridge):
     VAR1 = EnviType.bool()
     VAR2 = EnviType.bool()
示例#7
0
 class EnviBridge(EnviManager):
     VAR1 = EnviType.bool(is_ok=["True"])
     VAR2 = EnviType.bool(is_ok=["true"])
     VAR3 = EnviType.bool(is_ok=["True"])
     VAR4 = EnviType.bool(is_ok=["true"])
     VAR5 = EnviType.bool(is_ok=["true", "True"])