{{extend 'default.mobile/layout.html'}} {{import os, stat, time}} {{block sectionclass}}errors{{end}} {{if db_ready['status'] == False: switchurl = db_ready['errmessage'] switchbutton = XML("""switch to : db""" % dict(href=switchurl, title=db_ready['errmessage'])) else: switchurl = URL(args=[app, 'dbnew']) switchbutton = XML("""switch to : db""" % (switchurl)) pass}}