| Server IP : 85.214.239.14 / Your IP : 216.73.216.27 Web Server : Apache/2.4.65 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /srv/modoboa/env/lib64/python3.5/site-packages/caldav/lib/ |
Upload File : |
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
class AuthorizationError(Exception):
"""
The client encountered an HTTP 403 error and is passing it on
to the user. The url property will contain the url in question,
the reason property will contain the excuse the server sent.
"""
url = None
reason = "PHP at work[tm]"
def __str__(self):
return "AuthorizationError at '%s', reason '%s'" % \
(self.url, self.reason)
class PropsetError(Exception):
pass
class PropfindError(Exception):
pass
class ReportError(Exception):
pass
class MkcolError(Exception):
pass
class MkcalendarError(Exception):
pass
class PutError(Exception):
pass
class DeleteError(Exception):
pass
class NotFoundError(Exception):
pass
exception_by_method = {}
for method in ('delete', 'put', 'mkcalendar', 'mkcol', 'report', 'propset',
'propfind'):
exception_by_method[method] = \
locals()[method[0].upper() + method[1:] + 'Error']