From: Johannes Berg Date: Sat, 24 May 2008 23:44:12 +0000 (+0200) Subject: web interfaces fixes X-Git-Tag: v0.9~79 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db7bf531f6719191fb6db92344ff1efce6f69997;p=platform%2Fupstream%2Fcrda.git web interfaces fixes --- diff --git a/web/Regulatory.py b/web/Regulatory.py index 6e9d378..489aaa7 100644 --- a/web/Regulatory.py +++ b/web/Regulatory.py @@ -129,16 +129,15 @@ def macro_Regulatory(macro): dbpath = '/tmp/db.txt' if hasattr(request.cfg, 'regdb_path'): dbpath = request.cfg.regdb_path - bpc = DBParser().parse(open(dbpath)) + countries = DBParser().parse(open(dbpath)) if country: try: - return _country(macro, bpc, country) + return _country(macro, countries, country) except KeyError: return f.text('No such country code') - band, power, country = bpc - countries = country.keys() + countries = countries.keys() countries = [(_get_iso_code(code), code) for code in countries] countries.sort()