s/custom_radius/default_radius

This commit is contained in:
James Turk 2010-03-29 14:38:40 -04:00
parent c2858fa0fa
commit 5ee569ca03

View File

@ -132,11 +132,13 @@ class LayarView(object):
controls the maximum number of results across all pages (default: 50) controls the maximum number of results across all pages (default: 50)
``verify_hash`` ``verify_hash``
set to False to disable hash verification (useful for testing) set to False to disable hash verification (useful for testing)
``default_radius``
radius to use if a radius is not passed
''' '''
results_per_page = 15 results_per_page = 15
max_results = 50 max_results = 50
custom_radius = 1000 default_radius = 1000
verify_hash = True verify_hash = True
def __init__(self): def __init__(self):
@ -229,7 +231,7 @@ class LayarView(object):
# if radius wasn't sent pass back the radius used # if radius wasn't sent pass back the radius used
if not radius: if not radius:
layar_response['radius'] = self.custom_radius layar_response['radius'] = self.default_radius
except LayarException, e: except LayarException, e:
layar_response['errorCode'] = e.code layar_response['errorCode'] = e.code