[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5924 - in trunk/gnue-common/src: datasources/drivers/Base/Schema/Creati
From: |
johannes |
Subject: |
r5924 - in trunk/gnue-common/src: datasources/drivers/Base/Schema/Creation schema/scripter |
Date: |
Wed, 7 Jul 2004 17:14:04 -0500 (CDT) |
Author: johannes
Date: 2004-06-22 02:57:07 -0500 (Tue, 22 Jun 2004)
New Revision: 5924
Modified:
trunk/gnue-common/src/datasources/drivers/Base/Schema/Creation/Creation.py
trunk/gnue-common/src/schema/scripter/Scripter.py
Log:
gnue-schema doesn't break on empty tabledata-trees and removed quoting and
escaping from base driver
Modified:
trunk/gnue-common/src/datasources/drivers/Base/Schema/Creation/Creation.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/Schema/Creation/Creation.py
2004-06-22 07:54:54 UTC (rev 5923)
+++ trunk/gnue-common/src/datasources/drivers/Base/Schema/Creation/Creation.py
2004-06-22 07:57:07 UTC (rev 5924)
@@ -264,33 +264,6 @@
# ---------------------------------------------------------------------------
- # Make a string safe for output
- # ---------------------------------------------------------------------------
-
- def escapeString (self, aString):
- """
- This function makes a string safe for output.
- @param aString: string which should be made safe.
- @return: escaped string
- """
- return aString
-
-
- # ---------------------------------------------------------------------------
- # Quote and escape a string
- # ---------------------------------------------------------------------------
-
- def quoteString (self, aString):
- """
- This function escapes the given string and quotes it. @see: escapeString
- @param aString: string to be quoted
- @return: quoted and escaped string
- """
- return "%s%s%s" % (self.QUOTECHAR, self.escapeString (aString),
- self.QUOTECHAR)
-
-
- # ---------------------------------------------------------------------------
# Validate a given table definition
# ---------------------------------------------------------------------------
Modified: trunk/gnue-common/src/schema/scripter/Scripter.py
===================================================================
--- trunk/gnue-common/src/schema/scripter/Scripter.py 2004-06-22 07:54:54 UTC
(rev 5923)
+++ trunk/gnue-common/src/schema/scripter/Scripter.py 2004-06-22 07:57:07 UTC
(rev 5924)
@@ -458,6 +458,9 @@
tablename = table ['name']
rows = table ['rows']
+ if not len (rows):
+ continue
+
attributes = {'name' : "dts_%s" % tablename,
'database': self.OPTIONS ['connection'],
'table' : tablename}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5924 - in trunk/gnue-common/src: datasources/drivers/Base/Schema/Creation schema/scripter,
johannes <=