소스 검색

fix for wms

Jachym Cepicky 14 년 전
부모
커밋
9abaf493df
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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()