assembl.views package

Module contents

App URL routing and renderers are configured in this module.

Note that IdeaLoom is a hybrid app, and combines routes and traversal.

exception assembl.views.HTTPTemporaryRedirect(*args, **kwargs)[source]

Bases: pyramid.httpexceptions.HTTPTemporaryRedirect

exception assembl.views.JSONError(detail=None, error_type=None, code=400, headers=None, comment=None, body_template=None, **kw)[source]

Bases: pyramid.httpexceptions.HTTPError

assembl.views.find_theme(theme_name)[source]

Recursively looks for a theme with the provided name in the theme path folder @returns the theme path fragment relative to the theme base_path, or None if not found

assembl.views.get_template_views()[source]

get all .tmpl files from templates/views directory

assembl.views.get_theme_info(discussion)[source]

@return (theme_name, theme_relative_path) the relative path is relative to the theme_base_path. See find_theme.

assembl.views.includeme(config)[source]

Initialize views and renderers at app start-up time.