コード例 #1
0
ファイル: runner.py プロジェクト: NikolayStarodubtsev/murano
 def create_root_context(self, runtime_version):
     root_context = super(TestContextManager, self).create_root_context(runtime_version)
     context = linked_context.link(root_context, yaql_functions.get_context(runtime_version))
     context = context.create_child_context()
     for name, func in self.__functions.iteritems():
         context.register_function(func, name)
     return context
コード例 #2
0
ファイル: runner.py プロジェクト: ldreamke/murano
 def create_root_context(self, runtime_version):
     root_context = super(TestContextManager,
                          self).create_root_context(runtime_version)
     context = helpers.link_contexts(
         root_context, yaql_functions.get_context(runtime_version))
     context = context.create_child_context()
     for name, func in self.__functions.items():
         context.register_function(func, name)
     return context
コード例 #3
0
ファイル: engine.py プロジェクト: Magic-Mirror/murano
 def create_root_context(self, runtime_version):
     root_context = super(ContextManager, self).create_root_context(
         runtime_version)
     return linked_context.link(
         root_context, yaql_functions.get_context(runtime_version))
コード例 #4
0
 def create_root_context(self, runtime_version):
     root_context = super(ContextManager,
                          self).create_root_context(runtime_version)
     return helpers.link_contexts(
         root_context, yaql_functions.get_context(runtime_version))