Example #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
Example #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
Example #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))
Example #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))