skip to navigation
skip to content

Not Logged In

raptus.contenttemplates 1.0b3

Provides generic interfaces to create content templates using adapters


raptus.contenttemplates allows to provide templates to automate specific tasks. Templates are created by registering an adapter implementing the ITemplate interface for the context the template should be available.


All currently available actions are located at raptus.contenttemplates.actions, new actions may be created by implementing the IAction interface.


ActionChains are helpful if a list of actions have to be executed in the context of a newly created object. Let's say one wants to create a document named test-document, mark it private and give read access to the user jsmith and write access to jdoe. The list returned by the template would look like this:

    CreateContent('test-document', 'Document', {'title': 'Test Document'}),
    AddLocalRole('jsmith', 'Reader'),
    AddLocalRole('jdoe', 'Editor')

ActionChains respect the context returned by actions and use it to execute the preceding action. Actions which create new content, return the newly created object as context. The ActionChain then uses this context to execute the next action.


FieldDataRetrievers allow to use a field of the provided form as an attribute for an action. If one would like to have the aforementioned template use a form providing the title for the document and have the id generated from that field. The template would have to provide the name for the form and the action list could look like this:

    CreateContent(FieldDataRetriever('title'), 'Document'),
    AddLocalRole('jsmith', 'Reader'),
    AddLocalRole('jdoe', 'Editor')


1.0b3 (2013-12-18)

  • Changed import to zope.browsermenu

1.0b2 (2011-10-18)

  • Removed PTS utility for Plone >= 4

1.0b1 (2010-10-20)

  • First public release
File Type Py Version Uploaded on Size (md5) Source 2013-12-18 19KB
  • Downloads (All Versions):
  • 10 downloads in the last day
  • 47 downloads in the last week
  • 299 downloads in the last month