示例#1
0
文件: __init__.py 项目: xeor/fecto
def templateDict(request):
    '''
    Will be accessible as {{ data }} in your template.
    Remember that this can be a dict or whatever you want
    but the data will loaded at page load, not when you open
    the filter!
    '''

    form = getIpInputHtml(request)
    return {'form': form}
示例#2
0
文件: __init__.py 项目: xeor/fecto
def templateDict(request):
    '''
    Will be accessible as {{ data }} in your template.
    Remember that this can be a dict or whatever you want
    but the data will loaded at page load, not when you open
    the filter!
    '''

    form = getIpInputHtml(request)
    return {'form': form}
示例#3
0
文件: api.py 项目: xeor/fecto
 def get(self, request):
     html = getIpInputHtml(request)
     return html
示例#4
0
文件: api.py 项目: xeor/fecto
 def get(self, request):
     html = getIpInputHtml(request)
     return html