diff options
author | Mike Crute <mcrute@gmail.com> | 2010-02-15 22:11:50 -0500 |
---|---|---|
committer | Mike Crute <mcrute@gmail.com> | 2010-02-15 22:11:50 -0500 |
commit | df130cd5d132fc5eaf1c88b16c33289c9f31f559 (patch) | |
tree | e6fda7905a2341a75a0b9051c5fe8766fb4748c2 /exchange/__init__.py | |
parent | 6ac707f8ab6ccc551bb0bf1a92aee4ce5329d4f3 (diff) | |
download | calendar_proxy-df130cd5d132fc5eaf1c88b16c33289c9f31f559.tar.bz2 calendar_proxy-df130cd5d132fc5eaf1c88b16c33289c9f31f559.tar.xz calendar_proxy-df130cd5d132fc5eaf1c88b16c33289c9f31f559.zip |
Re-factoring for better abstraction. Moving timezone.
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 | ||