aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws.py
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2013-03-13 15:33:33 +0200
committerFilipp Lepalaan <f@230.to>2013-03-13 15:33:33 +0200
commit7e235c69c2625563a5bed055d71f5c85b3fea64e (patch)
tree6c8e781c434a51557afd7e250986b5bc4007e08b /gsxws.py
parent20ea91479d2fffb96192f0159e737ad3030b39e6 (diff)
downloadpy-gsxws-7e235c69c2625563a5bed055d71f5c85b3fea64e.tar.gz
py-gsxws-7e235c69c2625563a5bed055d71f5c85b3fea64e.tar.bz2
py-gsxws-7e235c69c2625563a5bed055d71f5c85b3fea64e.zip
Added environments and regions lists
Diffstat (limited to 'gsxws.py')
-rwxr-xr-xgsxws.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/gsxws.py b/gsxws.py
index ccac6d6..7f6ccf0 100755
--- a/gsxws.py
+++ b/gsxws.py
@@ -19,6 +19,7 @@ logging.getLogger('suds.client').setLevel(logging.DEBUG)
CLIENT = None
SESSION = dict()
LOCALE = 'en_XXX'
+
TIMEZONES = (
('GMT', 'Greenwich Mean Time'),
('PDT', 'Pacific Daylight Time'),
@@ -39,6 +40,21 @@ TIMEZONES = (
('NZST', 'New Zealand Standard Time'),
)
+REGIONS = (
+ ('002', 'Asia/Pacific'),
+ ('003', 'Japan'),
+ ('004', 'Europe'),
+ ('005', 'United States'),
+ ('006', 'Canadia'),
+ ('007', 'Latin America'),
+)
+
+ENVIRONMENTS = (
+ ('pr', 'Production'),
+ ('ut', 'Development'),
+ ('it', 'Testing'),
+)
+
def validate(value, what=None):
"""
Tries to guess the meaning of value or validate that