def hello(): return template('tpl/main_body',chunks=CHUNKS, messages=MESSAGES,message_count=2, note_count=1,notes=NOTES, task_count=4,tasks=TASKS, user=USER, resources=USER.resources, pageTitle="Main Control Panel")
def missionControl(): return template('tpl/missionControl.tpl', chunks=CHUNKS, messages=MESSAGES,message_count=2, note_count=1,notes=NOTES, task_count=4,tasks=TASKS, user=USER, pageTitle="Solar System", resources=USER.resources)
def addOOI(): name = request.query.name OOIs.addObject(python.getAsteroid.byName(name)) print 'object '+name+' added to OOIs' return template('tpl/asteroidAdd',objectName=name,chunks=CHUNKS, messages=MESSAGES,message_count=2, note_count=1,notes=NOTES, task_count=4,tasks=TASKS, user=USER, resources=USER.resources)
def systemView(): # TEMPORARY CHANGE FOR FANCY LOOKS # OOIs.write2JSON(OOI_JSON_FILE,OWNERS_JSON_FILE) # return template('tpl/systemView', # asteroidDB=OOI_JSON_FILE, # ownersDB=OWNERS_JSON_FILE) return template('tpl/systemView', asteroidDB='db/test_asteroids.js', ownersDB='db/test_owners.js', pageTitle="ViewTest" )
def sysView(): OOIs.write2JSON(OOI_JSON_FILE,OWNERS_JSON_FILE) return template('tpl/sysView', asteroidDB=OOI_JSON_FILE, ownersDB=OWNERS_JSON_FILE, chunks=CHUNKS, messages=MESSAGES,message_count=2, note_count=1,notes=NOTES, task_count=4,tasks=TASKS, user=USER, pageTitle="Solar System", resources=USER.resources)
def systemView(): return template('tpl/systemView', asteroidDB='db/test_asteroids.js', ownersDB='db/test_owners.js', pageTitle="ViewTest" )