dabo Commit
Revision 4801
Date: 2008-12-08 10:34:16 -0800 (Mon, 08 Dec 2008)
Author: Johnf
Trac: http://trac.dabodev.com/dabo/changeset/4801

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

Log:
removed the tableNameBreak var - and tested using my forms, CD and appWizard.

Diff:
Modified: trunk/dabo/db/dbPostgreSQL.py
===================================================================
--- trunk/dabo/db/dbPostgreSQL.py       2008-12-08 18:24:23 UTC (rev 4800)
+++ trunk/dabo/db/dbPostgreSQL.py       2008-12-08 18:34:16 UTC (rev 4801)
@@ -88,13 +88,11 @@
        def getFields(self, tableName, cursor):
                """JFCS support for 7.4 and greater
                   Requires that each table have a primary key"""
-               tableNameBreak=tableName.split(".", 1)
-               #localSchemaName = tableNameBreak[0]
                try:
                        localSchemaName, localTableName = tableName.split(".", 
1)
                except ValueError:
                        raise ValueError("Please use schema-qualified 
datasource names " "(e.g. 'public.%s')" % tableName)
-               localTableName = tableNameBreak[1]
+               
 
                cursor.execute("""SELECT a.attname, t.typname from pg_attribute 
a, pg_type t, pg_class c 
                LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
@@ -235,12 +233,12 @@
                currval() will return the correct value for each session.
                
                """
-               tableNameBreak=tableName.split(".", 1)
+               
                try:
                        localSchemaName, localTableName = tableName.split(".", 
1)
                except ValueError:
                        raise ValueError("Please use schema-qualified 
datasource names " "(e.g. 'public.%s')" % tableName)
-               localTableName = tableNameBreak[1]
+               
 
                tempCursor =self._connection.cursor()
 




_______________________________________________
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