Author: test
Date: 2005-10-26 23:40:41 +0000 (Wed, 26 Oct 2005)
New Revision: 1149
Modified:
SQLObject/trunk/sqlobject/main.py
SQLObject/trunk/sqlobject/maxdb/maxdbconnection.py
SQLObject/trunk/sqlobject/tests/dbtest.py
Log:
Fix up some docstrings for better reSTability
Modified: SQLObject/trunk/sqlobject/main.py
===================================================================
--- SQLObject/trunk/sqlobject/main.py 2005-10-26 23:40:00 UTC (rev 1148)
+++ SQLObject/trunk/sqlobject/main.py 2005-10-26 23:40:41 UTC (rev 1149)
@@ -7,15 +7,17 @@
SQLObject is a object-relational mapper. See SQLObject.html or
SQLObject.txt for more.
-Modified by
+Modified by:
- Daniel Savard, Xsoli Inc <sqlobject xsoli.com> 7 Feb 2004
- - Added support for simple table inheritance.
+* Daniel Savard, Xsoli Inc <sqlobject xsoli.com> 7 Feb 2004
+ Added support for simple table inheritance.
- Oleg Broytmann, SIA "ANK" <ph...@ph...> 3 Feb 2005
- - Split inheritance support into a number of separate modules and classes -
- InheritableSQLObject at al.
+* Oleg Broytmann, SIA "ANK" <ph...@ph...> 3 Feb 2005
+ Split inheritance support into a number of separate modules and classes -
+ InheritableSQLObject at al.
+* And others...
+
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 2.1 of the
Modified: SQLObject/trunk/sqlobject/maxdb/maxdbconnection.py
===================================================================
--- SQLObject/trunk/sqlobject/maxdb/maxdbconnection.py 2005-10-26 23:40:00 UTC (rev 1148)
+++ SQLObject/trunk/sqlobject/maxdb/maxdbconnection.py 2005-10-26 23:40:41 UTC (rev 1149)
@@ -1,16 +1,17 @@
"""
-Contributed by Edigram SAS,Paris France
-Tel:01 44 77 94 00
+Contributed by Edigram SAS, Paris France Tel:01 44 77 94 00
Ahmed MOHAMED ALI <ahm...@ya...> 27 April 2004
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-connection creation sample
-__connection__ = DBConnection.maxdbConnection(
- host=hostname, database=dbname,
- user=user_name, password=user_password,autoCommit=1,debug=1)
+This program is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+connection creation sample::
+
+ __connection__ = DBConnection.maxdbConnection(
+ host=hostname, database=dbname,
+ user=user_name, password=user_password,autoCommit=1,debug=1)
"""
from sqlobject.dbconnection import DBAPI
from sqlobject import col
Modified: SQLObject/trunk/sqlobject/tests/dbtest.py
===================================================================
--- SQLObject/trunk/sqlobject/tests/dbtest.py 2005-10-26 23:40:00 UTC (rev 1148)
+++ SQLObject/trunk/sqlobject/tests/dbtest.py 2005-10-26 23:40:41 UTC (rev 1149)
@@ -211,15 +211,17 @@
def d(**kw):
"""
- Because dict(**kw) doesn't work in Python 2.2, this is a
+ Because ``dict(**kw)`` doesn't work in Python 2.2, this is a
replacement.
"""
return kw
def inserts(cls, data, schema=None):
"""
- Creates a bunch of rows. You can use it like::
+ Creates a bunch of rows.
+ You can use it like::
+
inserts(Person, [{'fname': 'blah', 'lname': 'doe'}, ...])
Or::
|