diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2017-03-01 19:25:57 +0100 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2017-03-01 19:25:57 +0100 |
commit | 301103b31e56c214572663893f233de41c3e1d56 (patch) | |
tree | 1e24b2d70b24a7da7592e1b134f6401979f3a37b /modules | |
parent | 66417e0010546b8c2ab32d4fa3a684262185dec3 (diff) |
tracking: Added DHL Global Mail support.
Diffstat (limited to 'modules')
-rwxr-xr-x | modules/tracking.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/tracking.py b/modules/tracking.py index e7f9c9d..2b0ddd7 100755 --- a/modules/tracking.py +++ b/modules/tracking.py @@ -359,6 +359,16 @@ class DHLModule(TrackingModule, EasypostModule): url += code return url +class DHLGMModule(TrackingModule, EasypostModule): + name = 'dhlgm' + easypost_carrier = 'DHLGlobalMail' + + def get_url(self, code = None): + url = 'http://webtrack.dhlglobalmail.com/?trackingnumber=' + if code: + url += code + return url + def code_split(code): if ':' in code: return code.split(':') |