jan: thuban/Thuban/UI mainwindow.py,1.130,1.131
cvs@intevation.de
cvs at intevation.de
Fri Apr 16 10:21:15 CEST 2004
Author: jan
Update of /thubanrepository/thuban/Thuban/UI
In directory doto:/tmp/cvs-serv20624
Modified Files:
mainwindow.py
Log Message:
(MainWindow.LayerShowTable): Added docstring. Now for layers without a
ShapeStore a corresponding message is given to the user, that this
layer has no table to show.
Index: mainwindow.py
===================================================================
RCS file: /thubanrepository/thuban/Thuban/UI/mainwindow.py,v
retrieving revision 1.130
retrieving revision 1.131
diff -u -d -r1.130 -r1.131
--- mainwindow.py 13 Apr 2004 10:10:34 -0000 1.130
+++ mainwindow.py 16 Apr 2004 08:21:12 -0000 1.131
@@ -629,8 +629,19 @@
return layer is not None and hasattr(layer, "ShapeStore")
def LayerShowTable(self):
+ """
+ Present a TableView Window for the current layer.
+ In case the window is already open, bring it to the front.
+ In case, there is no active layer, do nothing.
+ In case, the layer has not ShapeStore, raise a corresponding message dialog
+ and do nothing else.
+ """
layer = self.current_layer()
if layer is not None:
+ if not hasattr(layer, "ShapeStore"):
+ self.RunMessageBox(_("Show Table"),
+ _("The layer '%s' has no table." % layer.Title()))
+ return
table = layer.ShapeStore().Table()
name = "table_view" + str(id(table))
dialog = self.get_open_dialog(name)
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)