Exemple #1
0
def get_mesh_context():
    context = ContextLocal.get()
    if context:
        return context

    request = Request.current_request()
    if request:
        return request.context
Exemple #2
0
def get_mesh_context():
    context = ContextLocal.get()
    if context:
        return context

    request = Request.current_request()
    if request:
        return request.context
Exemple #3
0
 def _construct_context(self):
     request = Request.current_request()
     if request:
         return request.context
Exemple #4
0
 def _construct_context(self):
     request = Request.current_request()
     if request:
         return request.context