def makeapp(projectfiles, **proj_data): """returns the application""" return WSGIApplication(project='dropdownDropDown1', projectfiles=projectfiles, proj_data=proj_data, start_call=start_call, submit_data=submit_data, end_call=end_call)
def makeapp(projectfiles, **proj_data): """returns the application""" return WSGIApplication(project='headersDropDownButton1', projectfiles=projectfiles, proj_data=proj_data, start_call=start_call, submit_data=submit_data, end_call=end_call, url="/")
def makeapp(projectfiles, **proj_data): """returns the application""" return WSGIApplication(project='listsUList2', projectfiles=projectfiles, proj_data=proj_data, start_call=start_call, submit_data=submit_data, end_call=end_call, url="/")
def makeapp(projectfiles, **proj_data): """returns the application""" return WSGIApplication(project='errormessagesErrorPara', projectfiles=projectfiles, proj_data=proj_data, start_call=start_call, submit_data=submit_data, end_call=end_call, url="/")
def makeapp(projectfiles, **proj_data): """returns the application""" return WSGIApplication(project='debugtoolsShowResponders', projectfiles=projectfiles, proj_data=proj_data, start_call=start_call, submit_data=submit_data, end_call=end_call, url="/")
def makeapp(projectfiles, **proj_data): """returns the application""" return WSGIApplication(project='svggraphsGraph48Hr', projectfiles=projectfiles, proj_data=proj_data, start_call=start_call, submit_data=submit_data, end_call=end_call, url="/")
def makeapp(projectfiles, **proj_data): """returns the application""" return WSGIApplication(project='footersSimpleFooter', projectfiles=projectfiles, proj_data=proj_data, start_call=start_call, submit_data=submit_data, end_call=end_call, url="/")
def makeapp(projectfiles, **proj_data): """returns the application""" return WSGIApplication(project='confirmAlertClear1', projectfiles=projectfiles, proj_data=proj_data, start_call=start_call, submit_data=submit_data, end_call=end_call, url="/")
def make_wsgi_app(redisserver, blob_folder='', url="/"): """Create a wsgi application which can be served by a WSGI compatable web server. Reads and writes to redis stores created by indi-mr :param redisserver: Named Tuple providing the redis server parameters :type redisserver: namedtuple :param blob_folder: Folder where Blobs will be stored :type blob_folder: String :param url: URL at which the web service is served :type url: String :return: A WSGI callable application :rtype: skipole.WSGIApplication """ if not SKIPOLE_AVAILABLE: return if blob_folder: blob_folder = pathlib.Path(blob_folder).expanduser().resolve() # The web service needs a redis connection, available in tools rconn = tools.open_redis(redisserver) proj_data = { "rconn": rconn, "redisserver": redisserver, "blob_folder": blob_folder } application = WSGIApplication(project=PROJECT, projectfiles=PROJECTFILES, proj_data=proj_data, start_call=_start_call, submit_data=_submit_data, end_call=_end_call, url=url) if url.endswith("/"): skisurl = url + "lib" else: skisurl = url + "/lib" skis_application = skis.makeapp() application.add_project(skis_application, url=skisurl) return application
'para_text'] = "Status: input02 unavailable" return ############################################################################## # # The above functions will be inserted into the skipole.WSGIApplication object # and will be called as required # ############################################################################## # create the wsgi application application = WSGIApplication(project=PROJECT, projectfiles=PROJECTFILES, proj_data={}, start_call=start_call, submit_data=submit_data, end_call=end_call, url="/") # This creates a WSGI application object. On being created the object uses the projectfiles location to find # and load json files which define the project, and also uses the functions : # start_call, submit_data, end_call # to populate returned pages. # proj_data is an optional dictionary which you may use for your own purposes, # it is included as the skicall.proj_data attribute # The skis application must always be added, without skis you're going nowhere! # The skis sub project serves javascript files required by the framework widgets. skis_code = os.path.join(PROJECTFILES, 'skis', 'code')
return (PROJECT, 1) cookiestring = cookievalue.decode('utf-8') if received_cookies[PROJECT] != cookiestring: # invalid cookie, return to top page return (PROJECT, 1) return # The above functions are required as arguments to the skipole.WSGIApplication object # and will be called as required. # create the wsgi application application = WSGIApplication(project=PROJECT, projectfiles=PROJECTFILES, proj_data=PROJ_DATA, start_call=start_call, submit_data=submit_data, end_call=end_call, url="/") skis_application = skis.makeapp() application.add_project(skis_application, url='/lib') indi_application = make_wsgi_app(redis_host, blob_folder=BLOBS) application.add_project(indi_application, url='/indi', check_cookies=check_cookies_function) from skipole import skiadmin, set_debug set_debug(True) skiadmin_application = skiadmin.makeapp(editedprojname=PROJECT)
'footer_text'] = skicall.call_data['status'] if page_num == 500101: # If this is the page of jquery UI tests, add the required javascript skicall.page_data['add_jscript'] = """ $( "#date" ).datepicker(); """ # set secure1 cookie if 'session' in skicall.call_data: return skicall.call_data['session'] # create the wsgi application application = WSGIApplication(project=PROJECT, projectfiles=PROJECTFILES, proj_data={}, start_call=start_call, submit_data=submit_data, end_call=end_call, url="/test") skis_application = skis.makeapp() application.add_project(skis_application, url='/test/lib') # add widget sub projects # import the module where the code for each test widget is found import widgetprojects # from this module, obtain and import each further module containing a widget test application module_tuple = tuple(