示例#1
0
文件: app.py 项目: pr4v33n/Cosmosium
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")
示例#2
0
文件: app.py 项目: pr4v33n/Cosmosium
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)
示例#3
0
文件: app.py 项目: pr4v33n/Cosmosium
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)
示例#4
0
文件: app.py 项目: pr4v33n/Cosmosium
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"
        )
示例#5
0
文件: app.py 项目: pr4v33n/Cosmosium
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)
示例#6
0
文件: app.py 项目: pr4v33n/Cosmosium
def systemView():
    return template('tpl/systemView',
        asteroidDB='db/test_asteroids.js',
        ownersDB='db/test_owners.js',
        pageTitle="ViewTest"
        )