Ejemplo n.º 1
0
 def __init__(self, ambiguous_string, suggestions):
     Response.__init__(self, 400, '')
     self.ambiguous_string = ambiguous_string
     self.suggestions = suggestions
Ejemplo n.º 2
0
 def __init__(self):
     Response.__init__(self, 403, '')
     self.html_template = 'templates/no-payins.html'
Ejemplo n.º 3
0
 def __init__(self, email_address, reason, ts, details, ses_data=None):
     Response.__init__(self, 400, '')
     from liberapay.utils.emails import EmailError
     self.email_error = EmailError(email_address, reason, ts, details,
                                   ses_data)
Ejemplo n.º 4
0
 def __init__(self, ambiguous_string, suggestions):
     Response.__init__(self, 400, '')
     self.ambiguous_string = ambiguous_string
     self.suggestions = suggestions
Ejemplo n.º 5
0
 def __init__(self, *args, **kw):
     Response.__init__(self, 429, (
         "You have consumed your quota of admin actions. This isn't supposed "
         "to happen."))
Ejemplo n.º 6
0
 def __init__(self):
     Response.__init__(self, 403, '')
     self.html_template = 'templates/log-in-required.html'
Ejemplo n.º 7
0
 def __init__(self, *args, **kw):
     Response.__init__(self, self.code, '', **kw)
     self.lazy_body = self.msg
     self.args = args
Ejemplo n.º 8
0
 def __init__(self):
     Response.__init__(self, 403, '')
     self.html_template = 'templates/sign-in-form.html'
Ejemplo n.º 9
0
 def __init__(self, id, class_name):
     Response.__init__(self, 400, "Invalid %s ID: %r" % (class_name, id))
Ejemplo n.º 10
0
 def __init__(self, *args, headers=None):
     Response.__init__(self, self.code, '', headers=headers)
     self.lazy_body = self.msg
     self.args = args
Ejemplo n.º 11
0
 def __init__(self, *args, **kw):
     Response.__init__(self, 403, '', **kw)
     self.show_sign_in_form = True
Ejemplo n.º 12
0
 def __init__(self):
     Response.__init__(self, 503, '')
Ejemplo n.º 13
0
 def __init__(self, participant):
     Response.__init__(self, 410, '')
     self.closed_account = participant
Ejemplo n.º 14
0
 def __init__(self, participant_id):
     Response.__init__(self, 429, '')
Ejemplo n.º 15
0
 def __init__(self, *args, **kw):
     Response.__init__(self, 429, (
         "You have consumed your quota of admin actions. This isn't supposed "
         "to happen."
     ))
Ejemplo n.º 16
0
 def __init__(self, participant_id):
     Response.__init__(self, 429, '')
     self.html_template = 'templates/exceptions/TooManyPasswordLogins.html'
Ejemplo n.º 17
0
 def __init__(self):
     Response.__init__(self, 403, '')
     self.html_template = 'templates/no-payins.html'
Ejemplo n.º 18
0
 def __init__(self, participant):
     Response.__init__(self, 410, '')
     self.closed_account = participant
     self.html_template = 'templates/exceptions/ClosedAccount.html'
Ejemplo n.º 19
0
 def __init__(self):
     Response.__init__(self, 503, '')
     self.html_template = 'templates/no-db.html'
Ejemplo n.º 20
0
 def __init__(self):
     Response.__init__(self, 403, '')
     self.html_template = 'templates/exceptions/LoginRequired.html'
Ejemplo n.º 21
0
 def __init__(self, code, lazy_body, **kw):
     Response.__init__(self, code, '', **kw)
     self.lazy_body = lazy_body
Ejemplo n.º 22
0
 def __init__(self):
     Response.__init__(self, 503, '')
     self.html_template = 'templates/exceptions/NeedDatabase.html'
Ejemplo n.º 23
0
 def __init__(self):
     Response.__init__(self, 403, '')
     self.html_template = 'templates/log-in-required.html'
Ejemplo n.º 24
0
 def __init__(self, id, class_name):
     Response.__init__(self, 400, "Invalid %s ID: %r" % (class_name, id))
Ejemplo n.º 25
0
 def __init__(self):
     Response.__init__(self, 503, '')
     self.html_template = 'templates/no-db.html'
Ejemplo n.º 26
0
 def __init__(self, code, lazy_body, **kw):
     Response.__init__(self, code, '', **kw)
     self.lazy_body = lazy_body
Ejemplo n.º 27
0
 def __init__(self, *args, **kw):
     Response.__init__(self, self.code, '', **kw)
     self.lazy_body = self.msg
     self.args = args
Ejemplo n.º 28
0
 def __init__(self, email_address, reason, ts, details, ses_data=None):
     Response.__init__(self, 400, '')
     self.html_template = 'templates/exceptions/EmailAddressIsBlacklisted.html'
     from liberapay.utils.emails import EmailError
     self.email_error = EmailError(email_address, reason, ts, details,
                                   ses_data)