示例#1
0
def ckiPath(cliFile):
    """Request for an cli file(get */lib/cli/<cliPath>*).
    
    :returns: file -- Requested file from cli directory of application for browsers
    """
    return static_file(cliFile, root=cliDir)
示例#2
0
def uiFile(uiFilePath):
    """Request for an UI File file for URL display (get */images/<imgFile>*).
    
    :returns: UI file -- Requested image file from images directory of application for browsers
    """
    return static_file(uiFilePath, root=uiDir)
示例#3
0
def arelleIcon():
    """Request for icon for URL display (get */favicon.ico*).
    
    :returns: ico -- Icon file for browsers
    """
    return static_file(u"arelle.ico", root=imagesDir)
示例#4
0
def image():
    """Request for an cli index file(get */lib/cli/cli_index.html).
    
    :returns: file -- Requested file from cli directory of application for browsers
    """
    return static_file(u'cli_index.html', root=cliDir)
示例#5
0
def ckiPath(cliFile):
    """Request for an cli file(get */lib/cli/<cliPath>*).
    
    :returns: file -- Requested file from cli directory of application for browsers
    """
    return static_file(cliFile, root=cliDir)
示例#6
0
def uiFile(uiFilePath):
    """Request for an UI File file for URL display (get */images/<imgFile>*).
    
    :returns: UI file -- Requested image file from images directory of application for browsers
    """
    return static_file(uiFilePath, root=uiDir)
示例#7
0
def image():
    """Request for an cli index file(get */lib/cli/cli_index.html).
    
    :returns: file -- Requested file from cli directory of application for browsers
    """
    return static_file(u"cli_index.html", root=cliDir)
示例#8
0
def arelleIcon():
    """Request for icon for URL display (get */favicon.ico*).
    
    :returns: ico -- Icon file for browsers
    """
    return static_file(u"arelle.ico", root=imagesDir)
示例#9
0
def server_partials(filepath):
    return static_file(filepath,
                       root=join(root_path, 'views', 'template'),
                       etag=True)
示例#10
0
def server_static(filepath=None):
    if filepath is None:
        filepath = 'index.html'
    return static_file(filepath,
                       root=join(root_path, 'views'),
                       etag=True)
示例#11
0
def download(filename):
    return static_file(filename,
                       root='/path/to/static/files',
                       download=filename,
                       etag=True)