Instance Creation¶
Usually, you do not deploy a native version of PubliForge but a customized one. To do so, you are going to use the Pyramid scaffold system. A PubliForge scaffold template is just a bunch of customized configuration files.
First of all, type the following command and answer the questions:
(virtualenv)$ pcreate -s publiforge_front Foo
At the end of the process, you have a new set of configuration files. Now, you have to tune these files before deploying them on your server.
Processor Creation¶
If you have a specific need, you can develop your own processor. A PubliForge scaffold template generates for you a skeleton for your new processor.
(virtualenv)$ pcreate -s publiforge_leprisme Foo2Bar
You can recreate a immediatly working processor following these steps:
(virtualenv)$ pcreate -s publiforge_leprisme Publidoc2Csv
Default language for texts [en]:
Label [Publidoc2Csv]: Publidoc XML images to CSV
Description: Convert a Publidoc XML document into a CSV file containing the list of its images with their captions.
Space separated ancestors: Publiset2Publidoc
Root for templates: Dummy2
Output: Result/Csv
Output to pack method (? for help): result2files
Then, use the generated publidoc2cvs.pfprc.xml
file to complete your
PubliForge configuration.