コード例 #1
0
ファイル: exceptions.py プロジェクト: liberapay/liberapay.com
 def __init__(self, ambiguous_string, suggestions):
     Response.__init__(self, 400, '')
     self.ambiguous_string = ambiguous_string
     self.suggestions = suggestions
コード例 #2
0
ファイル: exceptions.py プロジェクト: blrhc/liberapay.com
 def __init__(self):
     Response.__init__(self, 403, '')
     self.html_template = 'templates/no-payins.html'
コード例 #3
0
ファイル: exceptions.py プロジェクト: swipswaps/liberapay.com
 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)
コード例 #4
0
ファイル: exceptions.py プロジェクト: blrhc/liberapay.com
 def __init__(self, ambiguous_string, suggestions):
     Response.__init__(self, 400, '')
     self.ambiguous_string = ambiguous_string
     self.suggestions = suggestions
コード例 #5
0
ファイル: exceptions.py プロジェクト: blrhc/liberapay.com
 def __init__(self, *args, **kw):
     Response.__init__(self, 429, (
         "You have consumed your quota of admin actions. This isn't supposed "
         "to happen."))
コード例 #6
0
ファイル: exceptions.py プロジェクト: liberapay/liberapay.com
 def __init__(self):
     Response.__init__(self, 403, '')
     self.html_template = 'templates/log-in-required.html'
コード例 #7
0
ファイル: exceptions.py プロジェクト: liberapay/liberapay.com
 def __init__(self, *args, **kw):
     Response.__init__(self, self.code, '', **kw)
     self.lazy_body = self.msg
     self.args = args
コード例 #8
0
 def __init__(self):
     Response.__init__(self, 403, '')
     self.html_template = 'templates/sign-in-form.html'
コード例 #9
0
 def __init__(self, id, class_name):
     Response.__init__(self, 400, "Invalid %s ID: %r" % (class_name, id))
コード例 #10
0
ファイル: exceptions.py プロジェクト: swipswaps/liberapay.com
 def __init__(self, *args, headers=None):
     Response.__init__(self, self.code, '', headers=headers)
     self.lazy_body = self.msg
     self.args = args
コード例 #11
0
 def __init__(self, *args, **kw):
     Response.__init__(self, 403, '', **kw)
     self.show_sign_in_form = True
コード例 #12
0
ファイル: exceptions.py プロジェクト: swipswaps/liberapay.com
 def __init__(self):
     Response.__init__(self, 503, '')
コード例 #13
0
ファイル: exceptions.py プロジェクト: swipswaps/liberapay.com
 def __init__(self, participant):
     Response.__init__(self, 410, '')
     self.closed_account = participant
コード例 #14
0
ファイル: exceptions.py プロジェクト: swipswaps/liberapay.com
 def __init__(self, participant_id):
     Response.__init__(self, 429, '')
コード例 #15
0
ファイル: exceptions.py プロジェクト: liberapay/liberapay.com
 def __init__(self, *args, **kw):
     Response.__init__(self, 429, (
         "You have consumed your quota of admin actions. This isn't supposed "
         "to happen."
     ))
コード例 #16
0
 def __init__(self, participant_id):
     Response.__init__(self, 429, '')
     self.html_template = 'templates/exceptions/TooManyPasswordLogins.html'
コード例 #17
0
ファイル: exceptions.py プロジェクト: liberapay/liberapay.com
 def __init__(self):
     Response.__init__(self, 403, '')
     self.html_template = 'templates/no-payins.html'
コード例 #18
0
 def __init__(self, participant):
     Response.__init__(self, 410, '')
     self.closed_account = participant
     self.html_template = 'templates/exceptions/ClosedAccount.html'
コード例 #19
0
ファイル: exceptions.py プロジェクト: liberapay/liberapay.com
 def __init__(self):
     Response.__init__(self, 503, '')
     self.html_template = 'templates/no-db.html'
コード例 #20
0
 def __init__(self):
     Response.__init__(self, 403, '')
     self.html_template = 'templates/exceptions/LoginRequired.html'
コード例 #21
0
ファイル: exceptions.py プロジェクト: blrhc/liberapay.com
 def __init__(self, code, lazy_body, **kw):
     Response.__init__(self, code, '', **kw)
     self.lazy_body = lazy_body
コード例 #22
0
 def __init__(self):
     Response.__init__(self, 503, '')
     self.html_template = 'templates/exceptions/NeedDatabase.html'
コード例 #23
0
ファイル: exceptions.py プロジェクト: blrhc/liberapay.com
 def __init__(self):
     Response.__init__(self, 403, '')
     self.html_template = 'templates/log-in-required.html'
コード例 #24
0
ファイル: exceptions.py プロジェクト: liberapay/liberapay.com
 def __init__(self, id, class_name):
     Response.__init__(self, 400, "Invalid %s ID: %r" % (class_name, id))
コード例 #25
0
ファイル: exceptions.py プロジェクト: blrhc/liberapay.com
 def __init__(self):
     Response.__init__(self, 503, '')
     self.html_template = 'templates/no-db.html'
コード例 #26
0
ファイル: exceptions.py プロジェクト: liberapay/liberapay.com
 def __init__(self, code, lazy_body, **kw):
     Response.__init__(self, code, '', **kw)
     self.lazy_body = lazy_body
コード例 #27
0
ファイル: exceptions.py プロジェクト: blrhc/liberapay.com
 def __init__(self, *args, **kw):
     Response.__init__(self, self.code, '', **kw)
     self.lazy_body = self.msg
     self.args = args
コード例 #28
0
ファイル: exceptions.py プロジェクト: zaxebo1/liberapay.com
 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)