projects
/
platform
/
upstream
/
crda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64a42d3
)
make web regdb configurable
author
Johannes Berg
<johannes@sipsolutions.net>
Fri, 23 May 2008 11:59:47 +0000
(13:59 +0200)
committer
Johannes Berg
<johannes@sipsolutions.net>
Fri, 23 May 2008 11:59:47 +0000
(13:59 +0200)
web/Regulatory.py
patch
|
blob
|
history
diff --git
a/web/Regulatory.py
b/web/Regulatory.py
index
145a998
..
52cd575
100644
(file)
--- a/
web/Regulatory.py
+++ b/
web/Regulatory.py
@@
-129,7
+129,10
@@
def macro_Regulatory(macro):
country = request.form.get('alpha2', [None])[0]
- bpc = DBParser().parse(open('/tmp/db.txt'))
+ dbpath = '/tmp/db.txt'
+ if hasattr('regdb_path', request.cfg):
+ dbpath = request.cfg.regdb_path
+ bpc = DBParser().parse(open(dbpath))
if country:
return _country(macro, bpc, country)