From: Jason Hildebrand <jdhildeb@us...> - 2003-03-09 00:14:37
Update of /cvsroot/webware/Webware/MiddleKit/Core
In directory sc8-pr-cvs1:/tmp/cvs-serv372/Core
Added support for dumping an object store to the Samples.csv format, which
can be modified and re-loaded via the normal generate, create, insert sequence.
The Samples.csv format has been extended to allow the primary key column
(i.e. fooId for the class Foo) to be included in the Samples.csv file. This
allows the file to contain explicit serial numbers for each object, instead
of having them assigned sequentially.
MiddleKit/Run/Dump.py (analogous to MiddleKit/Design/Generate.py) is a
command-line tool to dump an object store.
The Samples.csv parsing code was changed to use MiscUtils/CSVParser.py
(previously it parsed the CSV ad-hoc, and couldn't handle things like
RCS file: /cvsroot/webware/Webware/MiddleKit/Core/Klasses.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Klasses.py 11 Nov 2002 02:19:25 -0000 1.9
--- Klasses.py 9 Mar 2003 00:14:33 -0000 1.10
*** 54,57 ****
--- 54,64 ----
+ def assignClassIds(self, generator):
+ id = 1
+ for klass in self._model._allKlassesInOrder:
+ id += 1
## Accessing ##
Get latest updates about Open Source Projects, Conferences and News.