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

    return view
Beispiel #2
0
def getView():
    form = cgi.FieldStorage()

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

    return view
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)
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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #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)
Beispiel #9
0
    def getNormalView(self):
        tFile = open(get_template('camera_controller'))
        html = tFile.read()
        tFile.close()

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

        return html
Beispiel #14
0
def get_view():
    with open(get_template("update_controller")) as template:
        return template.read()
Beispiel #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())
def main():
    tFile = open(get_template('file_manager_controller'))
    content = tFile.read()
    tFile.close()
    view.setContent('File manager', content)
    output(view, cgi.FieldStorage())
Beispiel #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>"
Beispiel #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>"