webserver module

class webserver.MyHandler(request, client_address, server)[source]

Bases: BaseHTTPServer.BaseHTTPRequestHandler

clear_PostData(data)[source]
disable_nagle_algorithm = True
do_GET()[source]
do_POST()[source]
finish(*args, **kw)[source]
get_RoomList()[source]
get_RoomObjectList(room, objectDictionary)[source]
get_WebObjForm(web_obj)[source]
get_WebOjectManager(obj_Dict)[source]
get_Zone_Objects_Setup(current_path, objectDictionary, zone)[source]
get_login()[source]
get_zone_manager(r_Dict)[source]
wbufsize = -1
webserver.NodePinToWebObject(node_sn, pin_number, pin_status)[source]
class webserver.RequestHandler(request, client_address, server)[source]

Bases: BaseHTTPServer.BaseHTTPRequestHandler

setup()[source]
webserver.changeWebObjectStatus(objName, statusToSet, write_to_hardware, user='onos_sys', priority=0, mail_report_list=[])[source]
webserver.changeWebObjectType(objName, typeToSet)[source]
webserver.checkwebObjectScenarios(scenario_name)[source]
webserver.compareText(a, b)[source]
webserver.compose_error_mail(error_type, objName='')[source]
webserver.createNewNode(node_sn, node_ip, node_fw)[source]
webserver.createNewWebObjFromNode(hwType0, node_sn)[source]
webserver.executeQueueFunction(dataExchanged)[source]
webserver.findRoomName(path, roomDictionary)[source]
webserver.formParse(text)[source]
webserver.getRoomHtml(room, object_dictionary, path, roomDictionary)[source]
webserver.getUserFromIp(ipUserAddress)[source]
webserver.hardwareHandlerThread()[source]
webserver.mailCheckThread()[source]
webserver.mailOutputHandler()[source]
webserver.main()[source]
webserver.modPage(htmlPag, WebObjectdictionary, zone, zoneDictionary)[source]
webserver.nodeTcpServer()[source]
webserver.onlineServerSync()[source]
webserver.onosBusThread()[source]
webserver.replace_conditions(scenario_conditions, scenario_name)[source]
webserver.replace_functions(scenario_functions, scenario_name)[source]
webserver.run_while_true(server_class=<class BaseHTTPServer.HTTPServer at 0x7f2693162120>, handler_class=<class webserver.RequestHandler at 0x7f2692ca4c80>)[source]

This assumes that keep_running() is a function of no arguments which is tested initially and after each request. If its return value is true, the server continues.

webserver.setNodePin(node_sn, pin_number, pin_status, write_hw_enable)[source]
webserver.setWebObjectAnalogStatusFromReg(node_sn_tmp, analog_pin, analog_byte0)[source]
webserver.setWebObjectDigitalStatusFromReg(node_sn_tmp, section_number, status_byte)[source]
webserver.sortZonesByOrderNumber()[source]
webserver.transform_object_to_dict(object_dictionary)[source]
webserver.transform_object_to_dict_to_backup(object_dictionary)[source]
webserver.updateDir()[source]
webserver.updateJson(object_dictionary, roomDictionary, scenarioDictionary)[source]
webserver.updateNodeAddress(node_sn0, node_ip)[source]
webserver.updateNodeInputStatusFromReg(node_sn0, register)[source]
webserver.updateOneRoom(room)[source]