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)
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)
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)
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)
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)
def server_partials(filepath): return static_file(filepath, root=join(root_path, 'views', 'template'), etag=True)
def server_static(filepath=None): if filepath is None: filepath = 'index.html' return static_file(filepath, root=join(root_path, 'views'), etag=True)
def download(filename): return static_file(filename, root='/path/to/static/files', download=filename, etag=True)