Ver Fonte

fix for wms

Jachym Cepicky há 14 anos atrás
pai
commit
9abaf493df
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      OWS.py

+ 2 - 1
OWS.py

@@ -188,7 +188,8 @@ class OWS:
 
         # nothing has changed in the capabilities document since last
         # request ?
-        if os.path.exists(os.path.join(self.cachedir,"capabilities.xml")):
+        if os.path.exists(os.path.join(self.cachedir,"capabilities.xml")) and\
+            "_capabilities" in dir(self.capabilities):
             oldCapsFile = open(os.path.join(self.cachedir,"capabilities.xml"))
             oldCaps = oldCapsFile.read()
             oldCapsFile.close()