Exemplo n.º 1
0
 def attach_context(self):
     super().attach_context()
     ca.attach_context(self.context)
Exemplo n.º 2
0
def threads_init():
    if current_context() != CA_CONTEXT:
        attach_context(CA_CONTEXT)
Exemplo n.º 3
0
 def __enter__(self):
     if current_context() != CA_CONTEXT:
         attach_context(CA_CONTEXT)
     return self
Exemplo n.º 4
0
 def attach_context(self):
     super().attach_context()
     ca.attach_context(self.context)