from calculate.variables.datavars import ( Variable, StringType, ListType, Calculate ) ''' main: chroot -> string cl_template_path -> string ''' class A: @classmethod def test(cls): return "test" Variable("test", type=StringType, source=Calculate(A.test)) Variable('cl_chroot_path', type=StringType.readonly, source='/') Variable('cl_root_path', type=StringType.readonly, source='/') Variable('cl_template_path', type=ListType.readonly, source=['./tests/templates/testfiles/test_runner']) Variable('cl_ignore_files', type=ListType.readonly, source=['*.swp']) Variable('cl_config_path', type=StringType.readonly, source='/var/lib/calculate/config') Variable('cl_config_archive', type=StringType.readonly, source='/var/lib/calculate/config-archive') Variable('cl_exec_dir_path', type=StringType.readonly, source='/var/lib/calculate/.execute')