trying to find out why there are so many different numbered versions
This commit is contained in:
13
CustomerType125.txt
Normal file
13
CustomerType125.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
def validate_StatusType(self, value):
|
||||
# Validate type StatusType, a restriction on xs:string.
|
||||
if value is not None and Validate_simpletypes_ and self.gds_collector_ is not None:
|
||||
if not isinstance(value, str):
|
||||
lineno = self.gds_get_node_lineno_()
|
||||
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s is not of the correct base simple type (str)' % {"value": value, "lineno": lineno, })
|
||||
return False
|
||||
value = value
|
||||
enumerations = ['ALPINEBITS_HANDSHAKE']
|
||||
if value not in enumerations:
|
||||
lineno = self.gds_get_node_lineno_()
|
||||
self.gds_collector_.add_message('Value "%(value)s"%(lineno)s does not match xsd enumeration restriction on StatusType' % {"value" : encode_str_2_3(value), "lineno": lineno} )
|
||||
result = False
|
||||
Reference in New Issue
Block a user