Esempio n. 1
0
def getView():
    form = cgi.FieldStorage()
    
    f = open(get_template('change_password_controller'))
    view= f.read()
    f.close()

    return view
Esempio n. 2
0
def getView():
    form = cgi.FieldStorage()

    f = open(get_template('change_password_controller'))
    view = f.read()
    f.close()

    return view
Esempio n. 3
0
def main():
    form = cgi.FieldStorage()

    f = open(get_template('gpio_controller'))
    html_tables = f.read()
    f.close()

    view.setContent('GPIO Controller', html_tables)
    output(view, form)
Esempio n. 4
0
def main():
    form = cgi.FieldStorage()
    
    f = open(get_template('gpio_controller'))
    html_tables= f.read()
    f.close()

    view.setContent('GPIO Controller', html_tables)
    output(view, form)
Esempio n. 5
0
def main():
    '''
Application to display the iptables of raspberry to the user
'''

    form = cgi.FieldStorage()
    
    f = open(get_template('firewall_controller'))
    html_tables= f.read()
    f.close()

    view.setContent('IPTables', html_tables)
    output(view, form)
Esempio n. 6
0
def main():
    '''
Application to display the iptables of raspberry to the user
'''

    form = cgi.FieldStorage()

    f = open(get_template('firewall_controller'))
    html_tables = f.read()
    f.close()

    view.setContent('IPTables', html_tables)
    output(view, form)
Esempio n. 7
0
def main():
    '''
    Services application to manage levels of each service.
    It will support only enable/disable for a service.
    Unfinished.
    '''
    form = cgi.FieldStorage()
    
    f = open(get_template('services_controller'))
    html_tables= f.read()
    f.close()
    
    view.setContent('Services Management App', html_tables)
    output(view, form)
Esempio n. 8
0
def main():
    '''
    Services application to manage levels of each service.
    It will support only enable/disable for a service.
    Unfinished.
    '''
    form = cgi.FieldStorage()

    f = open(get_template('services_controller'))
    html_tables = f.read()
    f.close()

    view.setContent('Services Management App', html_tables)
    output(view, form)
Esempio n. 9
0
    def getNormalView(self):
        tFile = open(get_template('camera_controller'))
        html = tFile.read()
        tFile.close()

        return html
Esempio n. 10
0
 def getView(self):
     tFile = open(get_template('startup_controller'))
     html = tFile.read()
     tFile.close()
     return html
Esempio n. 11
0
def get_view():
    with open(get_template("disk_analyzer_controller")) as template:
        return template.read()
Esempio n. 12
0
def get_view():
    with open(get_template("update_controller")) as template:
        return template.read()
Esempio n. 13
0
    def getNormalView(self):
        tFile = open(get_template('camera_controller'))
        html = tFile.read()
        tFile.close()

        return html
Esempio n. 14
0
def get_view():
    with open(get_template("update_controller")) as template:
        return template.read()
Esempio n. 15
0
def main():
    tFile = open(get_template('file_manager_controller'))
    content = tFile.read()
    tFile.close()
    view.setContent('File manager', content)
    output(view, cgi.FieldStorage())
Esempio n. 16
0
def main():
    tFile = open(get_template('file_manager_controller'))
    content = tFile.read()
    tFile.close()
    view.setContent('File manager', content)
    output(view, cgi.FieldStorage())
Esempio n. 17
0
def get_view():
    try:
        with open(get_template("mplayer")) as template:
            return template.read()
    except:
        return "<p>Unexpected error:" + sys.exc_info()[0] + "</p>"
Esempio n. 18
0
def get_view():
    try:
        with open(get_template("mplayer")) as template:
            return template.read()
    except:
        return "<p>Unexpected error:"+ sys.exc_info()[0]+"</p>"