web bugfix
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 23 May 2008 12:02:39 +0000 (14:02 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Fri, 23 May 2008 12:02:39 +0000 (14:02 +0200)
web/Regulatory.py

index 52cd575..9f79693 100644 (file)
@@ -130,7 +130,7 @@ def macro_Regulatory(macro):
     country = request.form.get('alpha2', [None])[0]
 
     dbpath = '/tmp/db.txt'
-    if hasattr('regdb_path', request.cfg):
+    if hasattr(request.cfg, 'regdb_path'):
         dbpath = request.cfg.regdb_path
     bpc = DBParser().parse(open(dbpath))