Exemple #1
0
import handlers, os

name = "Transport To WebPage"
__dir = os.path.dirname(os.path.realpath(__file__))

root = handlers.Index(os.path.join(__dir, 'transportto.html'))
root.common = handlers.StaticFiles(os.path.join(__dir, '../../../common'))
root.images = handlers.StaticFiles(os.path.join(__dir, '../images'))
root.css = handlers.StaticFiles(os.path.join(__dir, '../css'))
Exemple #2
0
import handlers, os
import currentMap

name = "Live Sensor View"
__dir = os.path.dirname(os.path.realpath(__file__))

root = handlers.Index(os.path.join(__dir, 'sensormap.html'))
root.image = currentMap.MapImage()
root.js = handlers.StaticFiles(os.path.join(__dir, 'js'))
root.css = handlers.StaticFiles(os.path.join(__dir, 'css'))
root.details = handlers.Index(os.path.join(__dir, 'sensorstates.html'))
Exemple #3
0
import handlers, os
from actionHistory import MapHistory, Data, Images, Root

name = "Action History"

root = Root()
root.data = Data()
root.images = Images()
root.mapHistory = MapHistory()
root.iui = handlers.StaticFiles(
    os.path.join(os.path.dirname(os.path.realpath(__file__)), 'iui'))
root.js = handlers.StaticFiles(
    os.path.join(os.path.dirname(os.path.realpath(__file__)), 'js'))
Exemple #4
0
import handlers, os
from common.scripts.httpRequests import Data, UserData, RobotCommands

name = "Site Root"

root = handlers.Index(
    os.path.join(os.path.dirname(os.path.realpath(__file__)), 'dirIndex.html'))
root.js = handlers.StaticFiles(
    os.path.join(os.path.dirname(os.path.realpath(__file__)), 'common/js'))
root.css = handlers.StaticFiles(
    os.path.join(os.path.dirname(os.path.realpath(__file__)), 'common/css'))
root.images = handlers.StaticFiles(
    os.path.join(os.path.dirname(os.path.realpath(__file__)), 'common/images'))
root.favicon_ico = handlers.StaticFile(
    os.path.join(os.path.dirname(os.path.realpath(__file__)), 'favicon.ico'))
root.data = Data()
root.userdata = UserData()
root.command = RobotCommands()

from modules.home import root as homeRoot
root.home = homeRoot