dabo Commit
Revision 6602
Date: 2011-05-25 17:33:49 -0700 (Wed, 25 May 2011)
Author: Aklaver
Trac: http://trac.dabodev.com/changeset/6602

Changed:
U   trunk/dabo/db/dDataSet.py

Log:
Doc string change to _makeCreateTable() in dDataSet.py

Diff:
Modified: trunk/dabo/db/dDataSet.py
===================================================================
--- trunk/dabo/db/dDataSet.py   2011-05-25 22:30:47 UTC (rev 6601)
+++ trunk/dabo/db/dDataSet.py   2011-05-26 00:33:49 UTC (rev 6602)
@@ -66,6 +66,7 @@
                                unicode: "text", float: "real", datetime.date: 
"date",
                                datetime.datetime: "timestamp", Decimal: 
"decimal"}
 
+               self._typeStructure = None
 
 
        def __del__(self):
@@ -261,7 +262,11 @@
        def _makeCreateTable(self, ds, alias=None):
                """Makes the CREATE TABLE string needed to represent
                this data set. There must be at least one record in the
-               data set, or we can't get the necessary column info.
+               data set, or we can't get the necessary column info. Optional, 
can use
+               TypeStructure property to give data type hint to CREATE TABLE 
process.
+               TypeStructure is a dictionary of form:
+               {"fld_name":"field_type"} where field_type is the same as that 
in
+               DataStructure. Ex: field_type "I" equals integer, "B" 
boolean,etc.
                """
                if len(ds) == 0:
                        return None



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to