aboutsummaryrefslogtreecommitdiffstats
path: root/gsxws/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'gsxws/core.py')
-rw-r--r--gsxws/core.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gsxws/core.py b/gsxws/core.py
index 4fd4ee3..086df10 100644
--- a/gsxws/core.py
+++ b/gsxws/core.py
@@ -119,6 +119,8 @@ def validate(value, what=None):
True
>>> validate('G143111400', 'dispatchId')
True
+ >>> validate('R164323085', 'dispatchId')
+ True
>>> validate('blaa', 'serialNumber')
False
>>> validate('MacBook Pro (Retina, Mid 2012)', 'productName')
@@ -366,7 +368,6 @@ class GsxObject(object):
self.__setattr__(k, v)
def __setattr__(self, name, value):
-
if name.startswith("_"):
super(GsxObject, self).__setattr__(name, value)
return