Exemplo n.º 1
0
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")
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
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)
Exemplo n.º 4
0
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"
        )
Exemplo n.º 5
0
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)
Exemplo n.º 6
0
def systemView():
    return template('tpl/systemView',
        asteroidDB='db/test_asteroids.js',
        ownersDB='db/test_owners.js',
        pageTitle="ViewTest"
        )