E&S CVS Commit: PEAK - Added LDAP field type converter support, with unit tests. This uses the
pje at eby-sarna.com
pje at eby-sarna.com
Sat Nov 16 21:42:00 EST 2002
Module Name: PEAK
Committed By: pje
Date: Sun Nov 17 02:41:03 UTC 2002
Modified Files:
PEAK: TODO.txt
PEAK/src/peak/storage: LDAP.py
PEAK/src/peak/storage/tests: __init__.py
PEAK/src/peak/util: Struct.py
Log Message:
Added LDAP field type converter support, with unit tests. This uses the
'peak.ldap.field_converters.*' property namespace, looking up the field
names to find a converter (or import string thereof) that takes two
arguments (name and value) and returns a replacement value. The value
passed in may be 'None' if no value was present in the retrieved data.
Otherwise, it's a list of values returned from the LDAP directory (except
for the 'dn' field, which is always just a string.) Converters are
imported from within the peak.storage package, so we can add some
"standard" converters and then reference them with import strings
like '"LDAP.someConverter"'.
To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/TODO.txt.diff?r1=1.32&r2=1.33
http://cvs.eby-sarna.com/PEAK/src/peak/storage/LDAP.py.diff?r1=1.12&r2=1.13
http://cvs.eby-sarna.com/PEAK/src/peak/storage/tests/__init__.py.diff?r1=1.7&r2=1.8
http://cvs.eby-sarna.com/PEAK/src/peak/util/Struct.py.diff?r1=1.8&r2=1.9
To generate a diff of this commit:
cvs rdiff -r1.32 -r1.33 PEAK/TODO.txt
cvs rdiff -r1.12 -r1.13 PEAK/src/peak/storage/LDAP.py
cvs rdiff -r1.7 -r1.8 PEAK/src/peak/storage/tests/__init__.py
cvs rdiff -r1.8 -r1.9 PEAK/src/peak/util/Struct.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