E&S CVS Commit: PEAK - Move from absolute to relative URLs:

pje at eby-sarna.com pje at eby-sarna.com
Sun Oct 17 09:55:01 EDT 2004


Module Name:	PEAK
Committed By:	pje
Date:		Sun Oct 17 13:54:39 UTC 2004

Modified Files:
	PEAK/src/peak/web: environ.py interfaces.py templates.py
	PEAK/src/peak/web/tests: template2.pwt test_environ.py
	    test_resources.py

Log Message:
Move from absolute to relative URLs:

* Added 'web.relativeURL(base,url)' to compute relative URLs

* Added 'url' attribute to 'web.ITraversalContext' to supply the canonical
  relative URL (or absolute URL if it can't be made relative)

* PWT 'url' operations use the new 'url' attribute

Also, slightly simplified PWT parse algorithm .


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/peak/web/environ.py.diff?r1=1.15&r2=1.16
http://cvs.eby-sarna.com/PEAK/src/peak/web/interfaces.py.diff?r1=1.42&r2=1.43
http://cvs.eby-sarna.com/PEAK/src/peak/web/templates.py.diff?r1=1.29&r2=1.30
http://cvs.eby-sarna.com/PEAK/src/peak/web/tests/template2.pwt.diff?r1=1.2&r2=1.3
http://cvs.eby-sarna.com/PEAK/src/peak/web/tests/test_environ.py.diff?r1=1.12&r2=1.13
http://cvs.eby-sarna.com/PEAK/src/peak/web/tests/test_resources.py.diff?r1=1.13&r2=1.14

To generate a diff of this commit:
cvs rdiff -r1.15 -r1.16 PEAK/src/peak/web/environ.py
cvs rdiff -r1.42 -r1.43 PEAK/src/peak/web/interfaces.py
cvs rdiff -r1.29 -r1.30 PEAK/src/peak/web/templates.py
cvs rdiff -r1.2 -r1.3 PEAK/src/peak/web/tests/template2.pwt
cvs rdiff -r1.12 -r1.13 PEAK/src/peak/web/tests/test_environ.py
cvs rdiff -r1.13 -r1.14 PEAK/src/peak/web/tests/test_resources.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