Hi All, Does anyone know of a good example product that uses GenericSetup? I'm particularly interested in the PythonScript and PageTemplate thingies... cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 9 Jun 2006, at 10:41, Chris Withers wrote:
Hi All,
Does anyone know of a good example product that uses GenericSetup?
I'm particularly interested in the PythonScript and PageTemplate thingies...
The best set of examples is still the CMF itself, and the CMF list is a better place to ask GS questions. jens -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (Darwin) iD8DBQFEiWJDRAx5nvEhZLIRAhzrAJ0SskokdZqRslol/NnUJm1iI0C8XgCdGkKF eybz7gtirfv83Tlm+Gzc5pA= =2Ig/ -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jens Vagelpohl wrote:
On 9 Jun 2006, at 10:41, Chris Withers wrote:
Hi All,
Does anyone know of a good example product that uses GenericSetup?
I'm particularly interested in the PythonScript and PageTemplate thingies...
The best set of examples is still the CMF itself, and the CMF list is a better place to ask GS questions.
PAS and PluginRegistry both have GS support, as well. Tres - -- =================================================================== Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEiajS+gerLs4ltQ4RAh2KAJ97l40w5Ro2F+wNBHBnug9/pQ7iDQCffFs1 pNcHx5npGF8zdZPlAKmOCfw= =FV6h -----END PGP SIGNATURE-----
Chris Withers wrote:
Does anyone know of a good example product that uses GenericSetup?
I'm particularly interested in the PythonScript and PageTemplate thingies...
I just checked in the SampleSite demo product to the doc directory of GenericSetup. You can get it from GenericSetup/trunk. HTH, Yuppie
Hi Yuppie! yuppie wrote:
I just checked in the SampleSite demo product to the doc directory of GenericSetup. You can get it from GenericSetup/trunk.
Thanks, this looks great :-) However, it now makes me wonder: - how would I compare the current configuration with what's on disk without creating a snapshot? - how can I "synch" just one python script or page template with what's on disk? cheers, Chris PS: I think there's a few rough edges on trunk: I setup a sample site, created a snapshot and then compared with what's on disk, the following differences were reported: Index: export_steps.xml =================================================================== --- export_steps.xml 2006/06/12 13:12:08.028 GMT+1 +++ export_steps.xml 2006/06/12 13:01:01 GMT+1 @@ -3,22 +3,16 @@ <export-step id="rolemap" handler="Products.GenericSetup.rolemap.exportRolemap" title="Role / Permission Map"> - Export custom roles and non-default role-permission mappings. - </export-step> <export-step id="site" handler="Products.SampleSite.exportimport.exportSite" title="Site"> - Export site configuration. - </export-step> <export-step id="step_registries" handler="Products.GenericSetup.tool.exportStepRegistries" title="Step Registries"> - Export current contents of import step registry and export step registry. - </export-step> </export-steps> Index: import_steps.xml =================================================================== --- import_steps.xml 2006/06/12 13:12:08.028 GMT+1 +++ import_steps.xml 2006/06/12 13:01:01 GMT+1 @@ -3,17 +3,11 @@ <import-step id="rolemap" version="20060606-01" handler="Products.GenericSetup.rolemap.importRolemap" title="Role / Permission Map"> - - Import custom roles and non-default role-permission mappings. - </import-step> <import-step id="site" version="20060606-01" handler="Products.SampleSite.exportimport.importSite" title="Site"> - - Import site configuration. - </import-step> </import-steps> Index: siteroot.xml =================================================================== --- siteroot.xml 2006/06/12 13:12:08.028 GMT+1 +++ siteroot.xml 2006/06/12 13:01:01 GMT+1 @@ -1,5 +1,5 @@ <?xml version="1.0"?> -<object name="mySite" meta_type="Folder"> +<object name="siteroot" meta_type="Folder"> <property name="title">Sample Zope Site</property> <object name="MailHost" meta_type="Mail Host"/> <object name="ZCatalog" meta_type="ZCatalog"/> -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
Hi Chris! Chris Withers wrote:
yuppie wrote:
I just checked in the SampleSite demo product to the doc directory of GenericSetup. You can get it from GenericSetup/trunk.
Thanks, this looks great :-)
However, it now makes me wonder:
- how would I compare the current configuration with what's on disk without creating a snapshot?
- how can I "synch" just one python script or page template with what's on disk?
Sorry. Both use cases are not supported.
PS: I think there's a few rough edges on trunk:
There are more rough edges ;)
I setup a sample site, created a snapshot and then compared with what's on disk, the following differences were reported:
[...] <import-step id="rolemap" version="20060606-01" handler="Products.GenericSetup.rolemap.importRolemap" title="Role / Permission Map"> - - Import custom roles and non-default role-permission mappings. - </import-step> <import-step id="site" version="20060606-01" handler="Products.SampleSite.exportimport.importSite" title="Site"> - - Import site configuration. - </import-step> </import-steps>
This is annoying, but not annoying enough to make someone write a patch. If you use the "Ignore lines of whitespace" option you don't see these.
Index: siteroot.xml =================================================================== --- siteroot.xml 2006/06/12 13:12:08.028 GMT+1 +++ siteroot.xml 2006/06/12 13:01:01 GMT+1 @@ -1,5 +1,5 @@ <?xml version="1.0"?> -<object name="mySite" meta_type="Folder"> +<object name="siteroot" meta_type="Folder"> <property name="title">Sample Zope Site</property> <object name="MailHost" meta_type="Mail Host"/> <object name="ZCatalog" meta_type="ZCatalog"/>
Avoiding this would have made the example more complex. The adapter responsible for that code is normally used for sub-folders, not the root. The name of the site root is ignored by the import handler but exported by the export handler. Cheers, Yuppie
yuppie wrote:
- how would I compare the current configuration with what's on disk without creating a snapshot?
- how can I "synch" just one python script or page template with what's on disk?
Sorry. Both use cases are not supported.
OK, I guess I might come up with another tool that _just_ supports syncing python scripts and page templates to disk but without the need for the massive "skins tool hammer". cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chris Withers wrote:
yuppie wrote:
- how would I compare the current configuration with what's on disk without creating a snapshot?
- how can I "synch" just one python script or page template with what's on disk?
Sorry. Both use cases are not supported.
OK, I guess I might come up with another tool that _just_ supports syncing python scripts and page templates to disk but without the need for the massive "skins tool hammer".
Nothing says you can't use the framework without the tool. See for instance my CMFFolderExportImport product, which uses the content-space adapters to drive per-item dump / reload: http://palladion.com/home/tseaver/software/CMFFolderExport Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEjpzP+gerLs4ltQ4RAgPTAKC7y2CY1gi2DSsaL8NnfyPHHOjpKwCfULLr qHGB6FtTTNfTynG8VQ+FrX0= =B0a7 -----END PGP SIGNATURE-----
participants (4)
-
Chris Withers -
Jens Vagelpohl -
Tres Seaver -
yuppie