[Zope-CMF] Re: GenericSetup content exporting
Spanky wrote: Greetings! I'm just getting started with GenericSetup, and I feel like I'm missing something simple. Hope you can help :) My goal is to get some default content exported as XML so I can use it as part of the GS profile for my new site. In my experimenting: I have a stock Plone site, nothing special. I make a test folder and test page in it. I make the Plone Profile active and export. In that export, I don't get any of the content I've created TTW. I'm walking through it in a debugger to try to see what happens where. Any advice on getting content exported would be appreciated. I've been reading the docs that are excellent in explaining how to set up a profile and use GS, but nothing along the lines of getting the content OUT of a site. GenericSetup's content import/export works well w/ default CMF content, but AFAIK it does not yet fully support AT-based content. AT has the Marshall product, which provides infrastructure for (de)serializing AT content into XML; it would be nice to write some content im/export adapters that use Marshall, but i haven't heard of anyone who's done that yet. -r ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
Re: [Zope-CMF] Re: [Warning] Danger from Zope caching, especially the CMF Caching Policy Manager
Miles Waller wrote at 2006-12-18 12:57 +: > ... >At the moment, the CPM fires after rendering, so setting it's own >headers and overwriting any headers set in the template. If it fired >before rendering, then a template would be free to set whatever policy >it wanted. > >Is there a special reason why it needs to set the headers after >rendering, rather than before? I can't think of a reason, but then our >policies are about as simple as can be. I expect this was to counter the effect that "recursively" called templates could trigger the CPM as well. If the CPM is activated before the actual rendering, then these "recursive" activations would override the effect of the "top" activation. The latest CMF version tries to detect "recursive" activations and suppress them. Nevertheless, your proposal would not be safe, as shown this this example: You have a script "someScript" with the following body container.REQUEST.response.setHeader('Cache-Control', 'no-cache') ... context.someTemplate(...) then the call to "someTemplate" may override the "Cache-Control" set before, even with your proposal. Of course, the script could set the header after the template call -- *IF* it were aware of the danger. However, I doubt that this will be the case -- Dieter ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
Re: [Zope-CMF] [Warning] Danger from Zope caching, especially the CMF Caching Policy Manager
Wichert Akkerman wrote at 2006-12-18 08:38 +0100: >Previously Dieter Maurer wrote: >> The description indicates in what direction the CPM should get fixed: >> >> * If the response already provides cache control, the CPM should >> not override it, as it is likely that the specific information >> available to the response generating process is more trustworthy >> then the general CPM policies. > >If we want to make CPM smarted wouldn't it make more sense to have it >select the most restrictive set of caching settings? Yes, that is something, I called "intelligent merging". -- Dieter ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
Re: [Zope-CMF] [Warning] Danger from Zope caching, especially the CMF Caching Policy Manager
Jens Vagelpohl wrote at 2006-12-17 19:57 +0100: > ... >I don't know if it is possible to have any sane policy about "what to >do if the response already has caching headers". First of all, when >should this exception policy trigger? Which headers should tell the >CPM that someone else already decided on caching? Secondly, what is >the behavior supposed to be? "Do nothing"? "DWIM"? This obviously >needs exact specifications and use cases. The HTTP/1.1 specification tells us what cache-control headers are for and we can deduce from it how to merge "concurrent" cache controls when the aims of HTTP/1.1 are respected (ensure "semantic transparency"). I sketched this in the collector issue. > >> * The CPM (and Zope's HTTP Cache Manager) must set cache headers >> only based on the object that generated the (complete) response >> entity and not based on other objects called during the request >> (and probably only responsible for part of the entity). > >As mentioned in my reply to your collector issue, there are fixes on >the CMF trunk already and you should look at those to see if they fix >your problem. As I replied in the collector: I improves the state of affairs a lot but it still only a partial solution... -- Dieter ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] GenericSetup content exporting
Greetings! I'm just getting started with GenericSetup, and I feel like I'm missing something simple. Hope you can help :) My goal is to get some default content exported as XML so I can use it as part of the GS profile for my new site. In my experimenting: I have a stock Plone site, nothing special. I make a test folder and test page in it. I make the Plone Profile active and export. In that export, I don't get any of the content I've created TTW. I'm walking through it in a debugger to try to see what happens where. Any advice on getting content exported would be appreciated. I've been reading the docs that are excellent in explaining how to set up a profile and use GS, but nothing along the lines of getting the content OUT of a site. Thanks in advance, -- ~Spanky ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] Re: [Warning] Danger from Zope caching, especially the CMF Caching Policy Manager
Jens Vagelpohl wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 17 Dec 2006, at 18:52, Dieter Maurer wrote: The description indicates in what direction the CPM should get fixed: * If the response already provides cache control, the CPM should not override it, as it is likely that the specific information available to the response generating process is more trustworthy then the general CPM policies. This is arguable, especially as it changes the current behaviour. Maybe, it should be controlled by an additional configuration option. I don't know if it is possible to have any sane policy about "what to do if the response already has caching headers". First of all, when should this exception policy trigger? Which headers should tell the CPM that someone else already decided on caching? Secondly, what is the behavior supposed to be? "Do nothing"? "DWIM"? This obviously needs exact specifications and use cases. At the moment, the CPM fires after rendering, so setting it's own headers and overwriting any headers set in the template. If it fired before rendering, then a template would be free to set whatever policy it wanted. Is there a special reason why it needs to set the headers after rendering, rather than before? I can't think of a reason, but then our policies are about as simple as can be. Miles ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] [CMF 2.1] FSPageTemplate & Unicode
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 You might have noticed that I have changed the ZopeTemplateFile implementation to work with unicode as internal representation. I think it would make sense for FSPageTemplate instance to use unicode as well - especially when ZPTs and FSPageTemplate live side by side. However FSPageTemplate inherits directly from PageTemplate. What has to be done: - FSPageTemplate._readFile() should convert 'data' to unicode and pass it to pt_edit() instead of using write() - a filesystem-based PT should be able to specify its encoding through the .metafile like [default] encoding=utf-8 For XML files the encoding is determines by the XML preamble and for HTML file we are able to check for the 'charset' inside tag (if available) What do you think about this idea? How about the schedule? I would like to port my ZPT changes to the Zope 2.10 branch because the ZPT implementation is now partly broken and needs the fixes. However I don't know if the changes will play nicely with the upcoming CMF 2.1 release. I had no problem with a plain CMF site running on Zope 2.10.2 with my changes but we should ensure that are not big issues with the upcoming Plone 3.0 release (which requires Zope 2.10/CMF 2.1). Andreas -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (Darwin) iD8DBQFFho8GCJIWIbr9KYwRAt9GAJwLS+t3vz95JUTDiB498+3YVLCCtACeNv1q aCFwpGMUg8VjlXJLXpqCKFw= =D/F6 -END PGP SIGNATURE- ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] CMF Tests: 8 OK, 1 Failed
Summary of messages to the cmf-tests list. Period Sun Dec 17 12:00:00 2006 UTC to Mon Dec 18 12:00:00 2006 UTC. There were 9 messages: 9 from CMF Unit Tests. Test failures - Subject: FAILED (failures=3) : CMF-trunk Zope-trunk Python-2.4.4 : Linux From: CMF Unit Tests Date: Sun Dec 17 21:51:44 EST 2006 URL: http://mail.zope.org/pipermail/cmf-tests/2006-December/003559.html Tests passed OK --- Subject: OK : CMF-1.5 Zope-2.7 Python-2.3.6 : Linux From: CMF Unit Tests Date: Sun Dec 17 21:39:43 EST 2006 URL: http://mail.zope.org/pipermail/cmf-tests/2006-December/003551.html Subject: OK : CMF-1.5 Zope-2.8 Python-2.3.6 : Linux From: CMF Unit Tests Date: Sun Dec 17 21:41:13 EST 2006 URL: http://mail.zope.org/pipermail/cmf-tests/2006-December/003552.html Subject: OK : CMF-1.5 Zope-2.9 Python-2.4.4 : Linux From: CMF Unit Tests Date: Sun Dec 17 21:42:43 EST 2006 URL: http://mail.zope.org/pipermail/cmf-tests/2006-December/003553.html Subject: OK : CMF-1.6 Zope-2.8 Python-2.3.6 : Linux From: CMF Unit Tests Date: Sun Dec 17 21:44:14 EST 2006 URL: http://mail.zope.org/pipermail/cmf-tests/2006-December/003554.html Subject: OK : CMF-1.6 Zope-2.9 Python-2.4.4 : Linux From: CMF Unit Tests Date: Sun Dec 17 21:45:44 EST 2006 URL: http://mail.zope.org/pipermail/cmf-tests/2006-December/003555.html Subject: OK : CMF-2.0 Zope-2.9 Python-2.4.4 : Linux From: CMF Unit Tests Date: Sun Dec 17 21:47:14 EST 2006 URL: http://mail.zope.org/pipermail/cmf-tests/2006-December/003556.html Subject: OK : CMF-2.0 Zope-2.10 Python-2.4.4 : Linux From: CMF Unit Tests Date: Sun Dec 17 21:48:44 EST 2006 URL: http://mail.zope.org/pipermail/cmf-tests/2006-December/003557.html Subject: OK : CMF-trunk Zope-2.10 Python-2.4.4 : Linux From: CMF Unit Tests Date: Sun Dec 17 21:50:14 EST 2006 URL: http://mail.zope.org/pipermail/cmf-tests/2006-December/003558.html ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests
[Zope-CMF] CMF Collector: Open Issues
The following supporters have open issues assigned to them in this collector (http://www.zope.org/Collectors/CMF). Assigned and Open mhammond - "Windows DevelopmentMode penalty in CMFCore.DirectoryView", [Accepted] http://www.zope.org/Collectors/CMF/366 Pending / Deferred Issues - "FSPropertiesObject.py cannot handle multiline input for lines, text attributes", [Deferred] http://www.zope.org/Collectors/CMF/271 - "Can't invalidate skin items in a RAMCacheManager", [Pending] http://www.zope.org/Collectors/CMF/343 - "workflow notify success should be after reindex", [Deferred] http://www.zope.org/Collectors/CMF/389 - "Possible bug when using a BTreeFolder Member folder", [Pending] http://www.zope.org/Collectors/CMF/441 - "Proxy Roles not Working/Applied to Worflow Transition Scripts", [Pending] http://www.zope.org/Collectors/CMF/449 - "safe_html filters some tags which should probably not be filtered", [Pending] http://www.zope.org/Collectors/CMF/452 - "purge_old in runAllImportSteps not working", [Pending] http://www.zope.org/Collectors/CMF/455 - "PUT handling for Events is broken", [Pending] http://www.zope.org/Collectors/CMF/458 - "Danger from Caching Policy Manager", [Pending] http://www.zope.org/Collectors/CMF/460 Pending / Deferred Features - "Favorite.py: queries and anchors in remote_url", [Pending] http://www.zope.org/Collectors/CMF/26 - "DefaultDublinCore should have Creator property", [Pending] http://www.zope.org/Collectors/CMF/61 - "Document.py: universal newlines", [Pending] http://www.zope.org/Collectors/CMF/174 - "portal_type is undefined in initialization code", [Pending] http://www.zope.org/Collectors/CMF/248 - "CMFTopic Does Not Cache", [Deferred] http://www.zope.org/Collectors/CMF/295 - "Wishlist: a flag that tags the selected action.", [Pending] http://www.zope.org/Collectors/CMF/301 - "CMFDefault should make use of allowCreate()", [Pending] http://www.zope.org/Collectors/CMF/340 - "Nested Skins", [Deferred] http://www.zope.org/Collectors/CMF/377 - "CatalogVariableProvider code + tests", [Pending] http://www.zope.org/Collectors/CMF/378 - "manage_doCustomize() : minor additions", [Pending] http://www.zope.org/Collectors/CMF/382 - "CMF needs View-based TypeInformation", [Pending] http://www.zope.org/Collectors/CMF/437 - "Marker attributes should be deprecated", [Pending] http://www.zope.org/Collectors/CMF/440 ___ Zope-CMF maillist - Zope-CMF@lists.zope.org http://mail.zope.org/mailman/listinfo/zope-cmf See http://collector.zope.org/CMF for bug reports and feature requests