winterthur.app
Classes
Baseclass for Morepath OneGov applications. |
Functions
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Module Contents
- class winterthur.app.WinterthurApp[source]
Bases:
onegov.org.OrgApp
Baseclass for Morepath OneGov applications.
- serve_static_files = True[source]
Returns True if
/static
files should be served. Needs to be enabled manually.Note that even if the static files are not served,
/static
path is still served, it just won’t return anything but a 404.Note also that static files are served publicly. You can override this in your application, but doing that and testing for it is on you!
See also:
onegov.core.static
.
- winterthur.app.enable_iframes_tween_factory(app: WinterthurApp, handler: collections.abc.Callable[[onegov.winterthur.request.WinterthurRequest], webob.Response]) collections.abc.Callable[[onegov.winterthur.request.WinterthurRequest], webob.Response] [source]
- winterthur.app.get_create_new_organisation_factory() collections.abc.Callable[[WinterthurApp, str], onegov.org.models.Organisation] [source]