示例#1
0
文件: units.py 项目: esho/spire
def get_mesh_context():
    context = ContextLocal.get()
    if context:
        return context

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

    request = Request.current_request()
    if request:
        return request.context
示例#3
0
文件: units.py 项目: esho/spire
 def _construct_context(self):
     request = Request.current_request()
     if request:
         return request.context
示例#4
0
 def _construct_context(self):
     request = Request.current_request()
     if request:
         return request.context