pyramid_formalchemy.views

Classes

ModelView

class pyramid_formalchemy.views.ModelView(context, request)

A RESTful view bound to a model

breadcrumb(fs=None, **kwargs)

return items to build the breadcrumb

get_fieldset(suffix='', id=None)

return a FieldSet object bound to the correct record for id.

get_grid()

return a Grid object

get_page(**kwargs)

return a webhelpers.paginate.Page used to display Grid.

listing(*args, **kwargs)

listing page

models(**kwargs)

Models index page

render(**kwargs)

render the form as html or json

render_grid(**kwargs)

render the grid as html or json

sync(fs, id=None)

sync a record. If id is None add a new record else save current one.

update_grid(grid)

Add edit and delete buttons to Grid

update_resources()

A hook to add some fanstatic resources

validate(fs)

validate fieldset

Session

class pyramid_formalchemy.views.Session

A abstract class to implement other backend than SA

add(record)

add a record

commit()

commit transaction

delete(record)

delete a record

update(record)

update a record

Functions

set_language()

pyramid_formalchemy.views.set_language(request)

Set the _LOCALE_ cookie used by pyramid

set_theme()

pyramid_formalchemy.views.set_theme(request)

Set the _THEME_ cookie used by pyramid_formalchemy to get a jquery.ui theme

Table Of Contents

Previous topic

pyramid_formalchemy.utils

This Page