Pre-release
This release is a pre-release and may not be stable for production use.
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.
eg:
<cs:contentstructure
xmlns:cs="http://www.elyt.com/cs"
xmlns:z="http://www.zope.org/">
<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>
<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="http://www.google.com"/>
<cs:leaf cs:repeat="2" z:portal_type="Document" z:id="page6"/>
</cs:container>
</cs:contentstructure>
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
python2.4 bootstrap.py ./bin/buildout -N -vvv ./bin/instance test -m "ely.contentgenerator"
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file ely.contentgenerator-0.1.dev-r124.tar.gz.
File metadata
- Download URL: ely.contentgenerator-0.1.dev-r124.tar.gz
- Upload date:
- Size: 9.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b9ec0d5e2bbb3eeb5f87eea232ed0bda1bf4509a44b9b69f2792dcd80879fbee
|
|
| MD5 |
d497ad1cb2d82eec599b65bd15ac2df2
|
|
| BLAKE2b-256 |
f961dd4323969525de83d75c1204f160f97ea270de7e7ef14b8e31666e932dd4
|