Skip to main content

Product for creating content in Zope

Project description

This is a simple component for generating zope content. It is especially useful for tests. It uses a simple xml syntax for defining the content structure and some hooks to call python methods or read data from files.


 <cs:container z:portal_type="Folder" z:id="folder1">
   <cs:leaf cs:repeat="10" z:portal_type="Document" z:id="page1"/>
   <cs:leaf z:portal_type="Document" z:id="page2"/>
   <cs:leaf z:portal_type="Document" z:id="page3"/>
 <cs:container z:portal_type="Folder" z:id="folder2">
   <cs:leaf z:portal_type="Document" z:id="page4" z:description="file: ${testfolder}/page4_description.txt"/>
   <cs:leaf z:portal_type="Document" z:id="page5" z:description="python: self.description_page5"/>
   <cs:leaf z:portal_type="Link" z:id="link1" z:remoteUrl=""/>
   <cs:leaf cs:repeat="2" z:portal_type="Document" z:id="page6"/>

see the src/ely/contentgenerator/README.txt and tests/testcontent1.txt for the fuller story.

A plone 3 buildout is provided to help with development, testing, and documentation.

To buildout and test from source

./bin/buildout -N -vvv
./bin/instance test -m "ely.contentgenerator"

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date (8.9 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page