def default_general(self): general_control.set_wifidog_enable(self, True) general_control.set_gatewayId(self, "44060430603381") general_control.set_checkInterval(self, 300) general_control.set_clientTimeout(self, 50) general_control.set_wifidog_hostname(self, "wifi.100msh.com") general_control.set_wifidog_url(self, "/index/") general_control.apply(self) time.sleep(40)
def default_weblist(self): weblist_control.tabmenu_weblist(self) while 1: weblist_control.remove_button(self, 1) tmp = weblist_control.get_weblist(self) if tmp == [""]: break weblist_control.set_web(self, 1, "img.100msh.net") weblist_control.add_button(self) weblist_control.set_web(self, 2, "wifiauth.100msh.com") weblist_control.add_button(self) weblist_control.set_web(self, 3, "m.100msh.com") general_control.apply(self) time.sleep(40)
def edit_hostname(self, hostname): general_control.set_wifidog_hostname(self, hostname) general_control.apply(self) time.sleep(40) result = network_control.ssh_wifidog() assert result, u"wifidog进程没起来,无法进行下一步"
def edit_gatewayid(self, id): general_control.set_gatewayId(self, id) general_control.apply(self) time.sleep(40)
def edit_wifidog(self, status): general_control.set_wifidog_enable(self, status) general_control.apply(self) time.sleep(40) return network_control.ssh_wifidog()