jan: thuban/Thuban/Model save.py,1.43,1.44
cvs@intevation.de
cvs at intevation.de
Wed Apr 27 13:05:21 CEST 2005
Author: jan
Update of /thubanrepository/thuban/Thuban/Model
In directory doto:/tmp/cvs-serv29387
Modified Files:
save.py
Log Message:
Replace ShapefileStore by FileShapeStore.
(SessionSaver.write_data_containers): Only use methods of the
base class FileShapeStore.
Index: save.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/Model/save.py,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- save.py 28 Jan 2005 15:54:00 -0000 1.43
+++ save.py 27 Apr 2005 11:05:19 -0000 1.44
@@ -1,4 +1,4 @@
-# Copyright (c) 2001-2004 by Intevation GmbH
+# Copyright (c) 2001-2005 by Intevation GmbH
# Authors:
# Jan-Oliver Wagner <jan at intevation.de> (2004)
# Bernhard Herzog <bh at intevation.de> (2001-2004)
@@ -26,7 +26,7 @@
ClassGroupDefault, ClassGroupSingleton, ClassGroupRange, ClassGroupMap
from Thuban.Model.transientdb import AutoTransientTable, TransientJoinedTable
from Thuban.Model.table import DBFTable, FIELDTYPE_STRING
-from Thuban.Model.data import DerivedShapeStore, ShapefileStore, \
+from Thuban.Model.data import DerivedShapeStore, FileShapeStore, \
SHAPETYPE_POINT
from Thuban.Model.xmlwriter import XMLWriter
@@ -201,12 +201,12 @@
continue
idvalue = self.define_id(container)
- if isinstance(container, ShapefileStore):
+ if isinstance(container, FileShapeStore):
self.define_id(container.Table(), idvalue)
filename = self.prepare_filename(container.FileName())
self.write_element("fileshapesource",
{"id": idvalue, "filename": filename,
- "filetype": "shapefile"})
+ "filetype": container.FileType()})
elif isinstance(container, DerivedShapeStore):
shapesource, table = container.Dependencies()
self.write_element("derivedshapesource",
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)