E&S CVS Commit: PEAK - Implemented 'with:content-type="whatever"', 'this:is="page"',

pje at eby-sarna.com pje at eby-sarna.com
Mon Oct 25 21:10:01 EDT 2004


Module Name:	PEAK
Committed By:	pje
Date:		Tue Oct 26 01:09:22 UTC 2004

Modified Files:
	PEAK/src/peak/web: templates.py
	PEAK/src/peak/web/tests: showlist.pwt showobject.pwt template1.pwt
	    template2.pwt test_templates.py

Log Message:
Implemented 'with:content-type="whatever"', 'this:is="page"',
'with:fragment-layout="layoutpath"', etc., as described in:

  http://www.eby-sarna.com/pipermail/peak/2004-October/001835.html

Note that this means existing PWT pages will no longer function as web
pages unless you add 'with:page-layout="/default"' or 'this:is="page"' to
the top-level element.  You can use the shorter form if you don't need any
text outside the top-level element (such as whitespace, <!DOCTYPE, a DTD
fragment, or the <?xml PI).  Otherwise, you should use the longer
'with:page-layout="/default"' form, which means, "use the whole file as
a page.  The intended tradeoff is to favor page fragments over full pages,
pushing most HTML details into one or more page layouts.  But, it's not
clear just yet if this is the right thing to do, so this decision could
be reversed or tweaked later.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/peak/web/templates.py.diff?r1=1.33&r2=1.34
http://cvs.eby-sarna.com/PEAK/src/peak/web/tests/showlist.pwt.diff?r1=1.2&r2=1.3
http://cvs.eby-sarna.com/PEAK/src/peak/web/tests/showobject.pwt.diff?r1=1.2&r2=1.3
http://cvs.eby-sarna.com/PEAK/src/peak/web/tests/template1.pwt.diff?r1=1.2&r2=1.3
http://cvs.eby-sarna.com/PEAK/src/peak/web/tests/template2.pwt.diff?r1=1.3&r2=1.4
http://cvs.eby-sarna.com/PEAK/src/peak/web/tests/test_templates.py.diff?r1=1.22&r2=1.23

To generate a diff of this commit:
cvs rdiff -r1.33 -r1.34 PEAK/src/peak/web/templates.py
cvs rdiff -r1.2 -r1.3 PEAK/src/peak/web/tests/showlist.pwt \
    PEAK/src/peak/web/tests/showobject.pwt \
    PEAK/src/peak/web/tests/template1.pwt
cvs rdiff -r1.3 -r1.4 PEAK/src/peak/web/tests/template2.pwt
cvs rdiff -r1.22 -r1.23 PEAK/src/peak/web/tests/test_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