[Twisted-Python] row howto patch

Jonathan Lange jonathan.lange at turnaroundsolutions.com
Mon Oct 28 03:55:44 EST 2002


The row howto has a syntax error in the bit about rowForeignKeys. 
"[(tableName, [(columnName, columnType)], containerMethodName, autoLoad]"

I had a look at the source code, and the error appears to be a little deeper, in that there should be two lists of columns, one for parent columns, one for child columns.

Patch below, sorry if formatting is poor, I'm on Outlook web access.

jml


Index: doc/howto/row.html
===================================================================
RCS file: /cvs/Twisted/doc/howto/row.html,v
retrieving revision 1.17
diff -u -r1.17 row.html
--- doc/howto/row.html	27 Oct 2002 20:46:24 -0000	1.17
+++ doc/howto/row.html	28 Oct 2002 08:33:54 -0000
@@ -48,8 +48,8 @@
 
 <ul>
   <li>rowForeignKeys - list of foreign keys to other database tables
-  in the form: [(tableName, [(columnName, columnType)], containerMethodName,
-  autoLoad]</li>
+  in the form: [(tableName, [(childColumnName, childColumnType)], 
+  [(parentColumnName, parentColumnType)], containerMethodName, autoLoad]</li>
   <li>rowFactoryMethod - a method that creates instances of this
   class</li>
 </ul>





More information about the Twisted-Python mailing list