E&S CVS Commit: PEAK - Refactoring to support "canonical formatting" of URLs. This required

pje at eby-sarna.com pje at eby-sarna.com
Wed May 7 19:24:01 EDT 2003

Module Name:	PEAK
Committed By:	pje
Date:		Wed May  7 23:23:07 UTC 2003

Modified Files:
	PEAK/src/peak: peak.ini
	PEAK/src/peak/model: features.py
	PEAK/src/peak/naming: URL.py
	PEAK/src/peak/naming/factories: smtp.py uuid.py
	PEAK/src/peak/naming/tests: __init__.py
	PEAK/src/peak/running: logs.py
	PEAK/src/peak/storage: DDE.py LDAP.py SQL.py

Log Message:
Refactoring to support "canonical formatting" of URLs.  This required
creating a sizeable parsing/formatting framework.  :(  On the brigher side,
the framework is highly powerful and expressive.  Potentially it could be
pulled out as a 'peak.model' parsing framework, to be reused for other
parse/format applications on model elements that have a single canonical
string syntax.  It would probably need to be reviewed for Unicode
compatibility, however.

Anyway, now printing a parsed URL object should give you back a canonical
form of that URL; equivalent URLs (apart from case-sensitivity issues)
should produce identical canonical forms.  Passing keyword arguments to
a URL constructor should also allow you to selectively override the URL
body content, making it easy to produce new versions of a URL with an
altered field.

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

To generate a diff of this commit:
cvs rdiff -r1.25 -r1.26 PEAK/CHANGES.txt
cvs rdiff -r1.40 -r1.41 PEAK/src/peak/peak.ini
cvs rdiff -r1.9 -r1.10 PEAK/src/peak/model/features.py
cvs rdiff -r1.2 -r1.3 PEAK/src/peak/naming/URL.py
cvs rdiff -r1.17 -r1.18 PEAK/src/peak/naming/factories/smtp.py
cvs rdiff -r1.12 -r1.13 PEAK/src/peak/naming/factories/uuid.py
cvs rdiff -r1.12 -r1.13 PEAK/src/peak/naming/tests/__init__.py
cvs rdiff -r1.15 -r1.16 PEAK/src/peak/running/logs.py
cvs rdiff -r1.6 -r1.7 PEAK/src/peak/storage/DDE.py
cvs rdiff -r1.19 -r1.20 PEAK/src/peak/storage/LDAP.py
cvs rdiff -r1.35 -r1.36 PEAK/src/peak/storage/SQL.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