diff options
Diffstat (limited to 'exchange/__init__.py')
-rw-r--r-- | exchange/__init__.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/exchange/__init__.py b/exchange/__init__.py index a2a78ec..eafb43f 100644 --- a/exchange/__init__.py +++ b/exchange/__init__.py | |||
@@ -7,6 +7,23 @@ Exchange Server Handling Code | |||
7 | @date: April 26, 2009 | 7 | @date: April 26, 2009 |
8 | """ | 8 | """ |
9 | 9 | ||
10 | from datetime import tzinfo, timedelta | ||
11 | |||
10 | 12 | ||
11 | class ExchangeException(Exception): | 13 | class ExchangeException(Exception): |
12 | "Exception that is thrown by all Exchange handling code." | 14 | "Exception that is thrown by all Exchange handling code." |
15 | |||
16 | |||
17 | class AuthenticationException(ExchangeException): | ||
18 | "Exception that is raised when authentication fails." | ||
19 | |||
20 | |||
21 | class EST(tzinfo): | ||
22 | |||
23 | def tzname(self, dt): | ||
24 | return "EST" | ||
25 | |||
26 | def utcoffset(self, dt): | ||
27 | return timedelta(0) | ||
28 | |||
29 | dst = utcoffset | ||