Пример #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'))
Пример #2
0
import handlers, os
from linkData import LinkData

name = "Site Root"
links = {}

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__)), 'js'))
root.css = handlers.StaticFiles(
    os.path.join(os.path.dirname(os.path.realpath(__file__)), 'css'))
root.favicon_ico = handlers.StaticFile(
    os.path.join(os.path.dirname(os.path.realpath(__file__)), 'favicon.ico'))


def setLinks(links):
    for (path, webRoot) in links:
        if type(webRoot) != str:
            root.__dict__[path] = webRoot.root

    root.js.links = LinkData(links)
    return root
Пример #3
0
import handlers, os  #

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

root = handlers.Index(os.path.join(__dir, 'commands.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'))

from modules.commands.goto import root as goTo
root.goto = goTo

from modules.commands.transportto import root as transportTo
root.transportto = transportTo

from modules.commands.admin import root as admin
root.admin = admin
Пример #4
0
import handlers, os

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

root = handlers.Index(os.path.join(__dir, 'admin.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'))
Пример #5
0
import handlers, os

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

root = handlers.Index(os.path.join(__dir, 'goto.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'))
Пример #6
0
import handlers, os#

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

root = handlers.Index(os.path.join(__dir, 'preferences.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'))
Пример #7
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'))
Пример #8
0
import handlers, os  #

name = "User Services"
__dir = os.path.dirname(os.path.realpath(__file__))

root = handlers.Index(os.path.join(__dir, 'userServices.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'))
root.favicon_ico = handlers.StaticFile(
    os.path.join(os.path.dirname(os.path.realpath(__file__)),
                 '../../favicon.ico'))
Пример #9
0
import handlers, os
import states

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

root = handlers.Index(os.path.join(__dir, 'sensorstates.html'))
root.images = handlers.StaticFiles(os.path.join(__dir, 'images'))
root.js = handlers.StaticFiles(os.path.join(__dir, 'js'))
root.css = handlers.StaticFiles(os.path.join(__dir, 'css'))
root.data = states.States()
Пример #10
0
import handlers, os  #

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

root = handlers.Index(os.path.join(__dir, 'home.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'))

from modules.userServices import root as userServices
root.services = userServices

from modules.commands import root as commandsUser
root.commands = commandsUser

from modules.preferences import root as preferencesUser
root.preferences = preferencesUser