get quota values from new headers

This commit is contained in:
Frédéric Péters 2011-04-21 11:56:35 +02:00
parent 398e4eb416
commit 9734a7a83f
1 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ class QuotaExceeded(AccessError):
continue_to = (get_publisher().get_root_url(), _('the homepage')))
def get_max_number_of_forms():
t = get_request().get_header('QuotaForms')
t = get_request().get_header('x-asec-quota-forms')
if not t:
return None
return int(t)
@ -43,7 +43,7 @@ def may_add_a_new_form():
def get_max_number_of_fields():
t = get_request().get_header('QuotaFields')
t = get_request().get_header('x-asec-quota-fields')
if not t:
return None
return int(t)
@ -60,7 +60,7 @@ def may_add_a_new_field(formdef):
return (fields_count < max_fields)
def get_max_number_of_answers():
t = get_request().get_header('QuotaAnswers')
t = get_request().get_header('x-asec-quota-answers')
if not t:
return None
return int(t)