Ejemplo n.º 1
0
 def clear_drivers_list(self):
     for driver in os.listdir(get_resource_path('hw_drivers', 'drivers')):
         if driver != '__pycache__':
             helpers.unlink_file(
                 get_resource_path('hw_drivers', 'drivers', driver))
     return "<meta http-equiv='refresh' content='0; url=http://" + helpers.get_ip(
     ) + ":8069/list_drivers'>"
Ejemplo n.º 2
0
 def clear_six_payment_terminal(self):
     helpers.unlink_file('harpiya-six-payment-terminal.conf')
     subprocess.check_call(["sudo", "service", "harpiya", "restart"])
     return "<meta http-equiv='refresh' content='0; url=http://" + helpers.get_ip(
     ) + ":8069'>"
Ejemplo n.º 3
0
 def clear_wifi_configuration(self):
     helpers.unlink_file('wifi_network.txt')
     return "<meta http-equiv='refresh' content='0; url=http://" + helpers.get_ip(
     ) + ":8069'>"
Ejemplo n.º 4
0
 def clear_server_configuration(self):
     helpers.unlink_file('harpiya-remote-server.conf')
     return "<meta http-equiv='refresh' content='0; url=http://" + helpers.get_ip(
     ) + ":8069'>"
Ejemplo n.º 5
0
 def clear_credential(self):
     helpers.unlink_file('harpiya-db-uuid.conf')
     helpers.unlink_file('harpiya-enterprise-code.conf')
     subprocess.check_call(["sudo", "service", "harpiya", "restart"])
     return "<meta http-equiv='refresh' content='20; url=http://" + helpers.get_ip(
     ) + ":8069'>"