Exemplo n.º 1
0
    def setUp(self):
        super(TestStaticFilesLocation, self).setUp()

        self.mox = mox.Mox()
        self.servlet = ApplicationServlet(None)

        # Workaround to avoid calling init and creating servlet config
        setattr(self.servlet, 'applicationProperties', {})
Exemplo n.º 2
0
from muntjac.demo.sampler.SamplerApplication import SamplerApplication

from muntjac.addon.colorpicker.color_picker_application \
    import ColorPickerApplication

from muntjac.addon.codemirror.code_mirror_application \
    import CodeMirrorApplication

from muntjac.addon.google_maps.google_map_app \
    import GoogleMapWidgetApp

from paste.urlmap import URLMap
from paste.session import SessionMiddleware
from paste.fileapp import DirectoryApp

hello = ApplicationServlet(HelloWorld)

calc = ApplicationServlet(Calc)

address = ApplicationServlet(SimpleAddressBook)

tunes = ApplicationServlet(MuntjacTunesLayout)

sampler = ApplicationServlet(
    SamplerApplication,
    widgetset='com.vaadin.demo.sampler.gwt.SamplerWidgetSet')

colorpicker = ApplicationServlet(ColorPickerApplication)

codemirror = ApplicationServlet(CodeMirrorApplication)