Bases: plone.app.tiles.browser.base.TileForm, z3c.form.form.Form
Standard tile add form, which is wrapped by DefaultAddView (see below).
This form is capable of rendering the fields of any tile schema as defined by an ITileType utility.
Bases: plone.z3cform.layout.FormWrapper
This is the default add view as looked up by the @@add-tile traversal view. It is an unnamed adapter on (context, request, tileType).
Note that this is registered in ZCML as a simple <adapter />, but we also use the <class /> directive to set up security.
alias of DefaultAddForm
Bases: plone.app.tiles.browser.base.TileForm, z3c.form.form.Form
Standard tile edit form, which is wrapped by DefaultEditView (see below).
This form is capable of rendering the fields of any tile schema as defined by an ITileType utility.
Bases: plone.z3cform.layout.FormWrapper
This is the default edit view as looked up by the @@edit-tile traveral view. It is an unnamed adapter on (context, request, tileType).
Note that this is registered in ZCML as a simple <adapter />, but we also use the <class /> directive to set up security.
alias of DefaultEditForm
Bases: plone.app.tiles.browser.traversal.TileTraverser
Implements the @@add-tile traversal view
Rendering this view on its own will display a template where the user may choose a tile type to add.
Traversing to /path/to/obj/@@add-tile/tile-name will:
Look up the tile info for ‘tile-name’ as a named utility
- Attempt to find view which is an adapter for (context, request,
tile_info) with the name ‘tile-name’
Fall back on the unnamed adapter of the same triple
Return above found view for rendering
Bases: plone.app.tiles.browser.traversal.TileTraverser
Implements the @@delete-tile traversal view
Traversing to /path/to/obj/@@delete-tile will list all tiles. Traversing to /path/to/obj/@@delete-tile/tile-id will delete tile.
Bases: plone.app.tiles.browser.traversal.TileTraverser
Implements the @@edit-tile namespace.
Traversing to /path/to/obj/@@edit-tile/tile-name/tile-id will:
Look up the tile info for ‘tile-name’ as a named utility
- Attempt to find an adapter for (context, request, tile_info) with
the name ‘tile-name’
Fall back on the unnamed adapter of the same triple
Set the ‘tileId’ property on the view to the id ‘tile-id
Return the view for rendering
Bases: object
Base class for tile add/edit view traversers.
Below, we register two traversal views: @@add-tile and @@edit-tile.
We look up for adapter from (context, request, tileType) to an appropriate interface. The default is to use the unnamed adapter, but this can be overridden by registering a named adapter with the name of the tile type. This way, a custom add/edit view can be reigstered for a particular type of tile.