def _handler(self, cgi): a_name = cgi["SCRIPT_NAME"] if self._func.has_key(a_name): a_func = self._func[a_name] a_out = a_func(cgi) #elif path.isfile(a_name): # a_out = static_file(a_name, ".") # pass else: a_out = static_file(a_name, self._top) return a_out
def media(file): return static_file(file, root='./media')
def media(file): return static_file(file, root='./tmpfile')
def admin_static(filename): return static_file(filename, root=static_path)
def getfile(file): return static_file(file, root=config.upload_path)
def admin_static(filename): return static_file(filename, root=static_path) #from db import Database #from apps import crud_db_config #db = Database(crud_db_config)
def media(file): return static_file(file, root="./media")
def static_page(self, a_path): return static_file(a_path, self._top)
def rpc_media(file): return static_file(file, root='./pywebsv/static')
def admin_static(filename): return static_file(filename, root='./lib/mocrud/static') #from db import Database #from apps import crud_db_config #db = Database(crud_db_config)
def media(file): return static_file(file, root='./lib/serverM/static')