From 301103b31e56c214572663893f233de41c3e1d56 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Wed, 1 Mar 2017 19:25:57 +0100 Subject: tracking: Added DHL Global Mail support. --- modules/tracking.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'modules') 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(':') -- cgit v1.2.3