E&S CVS Commit: PEAK - PEAK changes:

tsarna at eby-sarna.com tsarna at eby-sarna.com
Sat Dec 27 14:07:01 EST 2003


Module Name:	PEAK
Committed By:	tsarna
Date:		Sat Dec 27 19:06:20 UTC 2003

Modified Files:
	PEAK/src/peak: peak.ini
	PEAK/src/peak/storage: LDAP.py SQL.py connections.py
	    cursor_formatters.py interfaces.py
	PEAK/src/peak/tools/n2: main.py sql.py

Log Message:
PEAK changes:

- rename "python" cursor formatter to "repr"
- make "sql" and "ldap" formatters equivalent to "horiz" and "ldif"
  respectively, and use them as the default for SQL and LDAP cursors.
  This allows the default to be changed per cursor type while still
  leaving horiz and ldif available to things that want them specifically
- replaced ICursor.getFormatter() with dumpTo() method. No reason for the
  client of a cursor to interact with the formatters directly.
- TODO: XXX: raise or return error on nonexistant formatter?

N2 changes:
- update to use dumpTo
- "go -x code" to execute code on the cursor instead of using dumpTo
- "go -r code" to execute code per row instead of using dumpTo
- "go -p" to drop into python with "cursor" bound to the cursor

(NOTE: -r, -x, and -p may be combined)


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/peak/peak.ini.diff?r1=1.107&r2=1.108
http://cvs.eby-sarna.com/PEAK/src/peak/storage/LDAP.py.diff?r1=1.29&r2=1.30
http://cvs.eby-sarna.com/PEAK/src/peak/storage/SQL.py.diff?r1=1.65&r2=1.66
http://cvs.eby-sarna.com/PEAK/src/peak/storage/connections.py.diff?r1=1.23&r2=1.24
http://cvs.eby-sarna.com/PEAK/src/peak/storage/cursor_formatters.py.diff?r1=1.1&r2=1.2
http://cvs.eby-sarna.com/PEAK/src/peak/storage/interfaces.py.diff?r1=1.35&r2=1.36
http://cvs.eby-sarna.com/PEAK/src/peak/tools/n2/main.py.diff?r1=1.1&r2=1.2
http://cvs.eby-sarna.com/PEAK/src/peak/tools/n2/sql.py.diff?r1=1.10&r2=1.11

To generate a diff of this commit:
cvs rdiff -r1.107 -r1.108 PEAK/src/peak/peak.ini
cvs rdiff -r1.29 -r1.30 PEAK/src/peak/storage/LDAP.py
cvs rdiff -r1.65 -r1.66 PEAK/src/peak/storage/SQL.py
cvs rdiff -r1.23 -r1.24 PEAK/src/peak/storage/connections.py
cvs rdiff -r1.1 -r1.2 PEAK/src/peak/storage/cursor_formatters.py
cvs rdiff -r1.35 -r1.36 PEAK/src/peak/storage/interfaces.py
cvs rdiff -r1.1 -r1.2 PEAK/src/peak/tools/n2/main.py
cvs rdiff -r1.10 -r1.11 PEAK/src/peak/tools/n2/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