Author: tmckay
Date: 2012-03-22 20:32:50 +0000 (Thu, 22 Mar 2012)
New Revision: 5267
Modified:
branches/roles/cumin/python/cumin/authorize.py
Log:
Restrict the files we will consider for access maps to those ending in .xml
Modified: branches/roles/cumin/python/cumin/authorize.py
===================================================================
--- branches/roles/cumin/python/cumin/authorize.py 2012-03-22 20:18:49 UTC (rev 5266)
+++ branches/roles/cumin/python/cumin/authorize.py 2012-03-22 20:32:50 UTC (rev 5267)
@@ -84,7 +84,8 @@
log.error("Path '%s' for access files does not exist!"
% access_path)
for accfile in files:
- if os.path.isfile(accfile):
+ if os.path.isfile(accfile) and \
+ os.path.splitext(accfile)[1] == ".xml":
try:
self.accmap.parse_accessfile(accfile)
except:
Show replies by date