joey: thuban/Extensions/wms wms.py,1.6,1.7

cvs@intevation.de cvs at intevation.de
Tue Apr 13 19:38:28 CEST 2004


Author: joey

Update of /thubanrepository/thuban/Extensions/wms
In directory doto:/tmp/cvs-serv4285

Modified Files:
	wms.py 
Log Message:
Reset an empty URL to None so that the subsequent program can depend
on this, since the dialog will indeed return an empty URL, causing
another declaration of love by Python.

Index: wms.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/wms/wms.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- wms.py	13 Apr 2004 17:31:01 -0000	1.6
+++ wms.py	13 Apr 2004 17:38:26 -0000	1.7
@@ -301,6 +301,8 @@
 
     if dialog.ShowModal() == wxID_OK:
         url = dialog.url
+        if len(url) == 0:
+            url = None
     else:
         url = None
     dialog.Destroy()





More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)