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: Callable[[WinterthurRequest], Response]) Callable[[WinterthurRequest], Response] [source]
- winterthur.app.get_create_new_organisation_factory() Callable[[WinterthurApp, str], Organisation] [source]