[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5617 - trunk/gnue-common/src/schema/scripter
From: |
reinhard |
Subject: |
r5617 - trunk/gnue-common/src/schema/scripter |
Date: |
Fri, 2 Apr 2004 09:39:30 -0600 (CST) |
Author: reinhard
Date: 2004-04-02 09:39:29 -0600 (Fri, 02 Apr 2004)
New Revision: 5617
Modified:
trunk/gnue-common/src/schema/scripter/Scripter.py
Log:
Keep order of tabledata from gsd file.
Modified: trunk/gnue-common/src/schema/scripter/Scripter.py
===================================================================
--- trunk/gnue-common/src/schema/scripter/Scripter.py 2004-04-02 14:47:43 UTC
(rev 5616)
+++ trunk/gnue-common/src/schema/scripter/Scripter.py 2004-04-02 15:39:29 UTC
(rev 5617)
@@ -232,7 +232,7 @@
try:
self.tables = {}
- self.data = {}
+ self.data = []
self.processor.startDump ()
self.processor.client_encoding (self.OPTIONS ['encoding'])
@@ -247,7 +247,7 @@
for table in self.tables.values ():
self.processor.writePhase (table, phase)
- for table in self.data.values ():
+ for table in self.data:
self.processor.writeData (table, table.tableDef)
self.processor.finishDump ()
@@ -367,16 +367,13 @@
def __data_table (self, sObject):
data = DataDefinition (sObject.tablename)
- self.data [data.name] = data
+ self.data.append (data)
if self.tables.has_key (data.name):
data.tableDef = self.tables [data.name]
sObject.walk (self.__data_rows, dataDef = data)
- # self.processor.writeData (data, data.tableDef)
-
-
# ---------------------------------------------------------------------------
# Iterate over all rows of a tabledata definition
# ---------------------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5617 - trunk/gnue-common/src/schema/scripter,
reinhard <=