E&S CVS Commit: PEAK - Minor 'peak.web' enhancements, to better support the "app as resource dirs"

pje at eby-sarna.com pje at eby-sarna.com
Mon Feb 9 12:07:01 EST 2004

Module Name:	PEAK
Committed By:	pje
Date:		Mon Feb  9 17:06:37 UTC 2004

Modified Files:
	PEAK/src/peak/web: publish.py resources.py templates.py

Log Message:
Minor 'peak.web' enhancements, to better support the "app as resource dirs"
paradigm, as described in:


Except that this is to support creating DDT document directories that are
web-publishable.  The main changes are to make resources traversable-to,
add a 'basename' attribute for filesystem resources (base filename, ala
Zope's 'id'), and add 'header' and 'footer' options to the 'list' DOMlet.

Working with this a bit has shown me that nameless security checks (i.e.
'interaction.allows(ob)') need a bit of work.  We should probably assume
that access to an object as a collection member is safe unless declared
otherwise, since the use case is to allow application objects to exclude
themselves from appearing in a collection.  But that'll need to change in
'peak.security', not 'peak.web'.

Also, traversal implementations are starting to proliferate, and probably
need a mini-framework added to pull them back together.

To view diffs of this commit, you can use the following URL(s):

To generate a diff of this commit:
cvs rdiff -r1.30 -r1.31 PEAK/src/peak/web/publish.py
cvs rdiff -r1.19 -r1.20 PEAK/src/peak/web/resources.py
cvs rdiff -r1.16 -r1.17 PEAK/src/peak/web/templates.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

More information about the source-changes mailing list