[z3-five] pagetemplate resources

Jan-Wijbrand Kolman jw at infrae.com
Mon Apr 25 15:59:23 CEST 2005


Hello,


I just now checked in a test and a fix for a bug where publishing a
PageTemplateResource would fail.

I am not 100% the current fix actually has the behaviour we want. So I have a
couple of questions:

Shouldn't PageTemplateResources behave like 'normal' resources as much as
possible? So, the __call__ method returns the resource's absolute URL and the
__browser_default__ method returns the name to call on the resource when being
published?

And, more or less related, wouldn't it make sense to follow the pattern in
FileResource, where the HTTP method is used for the name to call on the resource
instance? Would it then not also make sense to send out HTTP cache headers etc.
for all types of resources, like is done for FileResource resources?

I'm not sure - for one because I didn't yet study Zope-3's implementation for
resources in complete detail. And I guess we want to follow Zope-3's behaviour?
Or maybe Zope-3's resources are not optimal yet either?


kind regards,
jw

-- 
Jan-Wijbrand Kolman
jw at infrae.com


More information about the z3-five mailing list