Пример #1
0
 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
 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
 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))