Types (version 0.12.0)
index
/home/groups/p/py/pywebsvcs/src/SOAPpy/Types.py

################################################################################
# Copyright (c) 2003, Pfizer
# Copyright (c) 2001, Cayce Ullman.
# Copyright (c) 2001, Brian Matthews.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# Redistributions of source code must retain the above copyright notice, this
# list of conditions and the following disclaimer.
#
# Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
#
# Neither the name of actzero, inc. nor the names of its contributors may
# be used to endorse or promote products derived from this software without
# specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR
# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
################################################################################

 
Modules
       
UserList
base64
cgi
copy
exceptions
re
time
urllib

 
Classes
       
exceptions.Exception
AuthorizationFailed
MethodFailed
MethodNotFound
RequiredHeaderMismatch
SOAPException
UserList.UserList
arrayType(UserList.UserList, compoundType)
typedArrayType
anyType
ENTITIESType
IDREFSType
NMTOKENSType
NOTATIONType
anyURIType
uriReferenceType
uriType
base64BinaryType
base64Type
binaryType
booleanType
byteType
centuryType
compoundType
arrayType(UserList.UserList, compoundType)
typedArrayType
structType
bodyType
faultType(structType, Errors.Error)
headerType
dateTimeType
timeInstantType
timePeriodType
dateType
decimalType
doubleType
durationType
timeDurationType
floatType
gDayType
recurringDayType
gMonthDayType
recurringDateType
gMonthType
monthType
gYearMonthType
gYearType
yearType
hexBinaryType
intType
integerType
longType
negativeIntegerType
negative_IntegerType
nonNegativeIntegerType
non_Negative_IntegerType
nonPositiveIntegerType
non_Positive_IntegerType
normalizedStringType
CDATAType
positiveIntegerType
positive_IntegerType
recurringInstantType
shortType
stringType
ENTITYType
IDREFType
IDType
NCNameType
NMTOKENType
NameType
QNameType
languageType
untypedType
timeType
tokenType
unsignedByteType
unsignedIntType
unsignedLongType
unsignedShortType
voidType

 
class AuthorizationFailed(exceptions.Exception)
     Methods defined here:
__init__(self, value)
__str__(self)

Methods inherited from exceptions.Exception:
__getitem__(...)

 
class CDATAType(normalizedStringType)
    
Method resolution order:
CDATAType
normalizedStringType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class ENTITIESType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class ENTITYType(stringType)
    
Method resolution order:
ENTITYType
stringType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class IDREFSType(ENTITIESType)
    
Method resolution order:
IDREFSType
ENTITIESType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class IDREFType(stringType)
    
Method resolution order:
IDREFType
stringType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class IDType(stringType)
    
Method resolution order:
IDType
stringType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class MethodFailed(exceptions.Exception)
     Methods defined here:
__init__(self, value)
__str__(self)

Methods inherited from exceptions.Exception:
__getitem__(...)

 
class MethodNotFound(exceptions.Exception)
     Methods defined here:
__init__(self, value)
__str__(self)

Methods inherited from exceptions.Exception:
__getitem__(...)

 
class NCNameType(stringType)
    
Method resolution order:
NCNameType
stringType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class NMTOKENSType(ENTITIESType)
    
Method resolution order:
NMTOKENSType
ENTITIESType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class NMTOKENType(stringType)
    
Method resolution order:
NMTOKENType
stringType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class NOTATIONType(anyType)
     Methods defined here:
__init__(self, data, name=None, typed=1, attrs=None)

Methods inherited from anyType:
__repr__ = __str__(self)
__str__(self)

 
class NameType(stringType)
    
Method resolution order:
NameType
stringType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class QNameType(stringType)
    
Method resolution order:
QNameType
stringType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class RequiredHeaderMismatch(exceptions.Exception)
     Methods defined here:
__init__(self, value)
__str__(self)

Methods inherited from exceptions.Exception:
__getitem__(...)

 
class SOAPException(exceptions.Exception)
     Methods defined here:
__init__(self, code='', string='', detail=None)
__str__(self)

Methods inherited from exceptions.Exception:
__getitem__(...)

 
class anyType
     Methods defined here:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class anyURIType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class arrayType(UserList.UserList, compoundType)
    
Method resolution order:
arrayType
UserList.UserList
compoundType
anyType

Methods defined here:
__getitem__(self, item)
__init__(self, data=None, name=None, attrs=None, offset=0, rank=None, asize=0, elemsname=None)
__len__(self)
__nonzero__(self)
__str__(self)

Methods inherited from UserList.UserList:
__add__(self, other)
__cmp__(self, other)
__contains__(self, item)
__delitem__(self, i)
__delslice__(self, i, j)
__eq__(self, other)
__ge__(self, other)
__getslice__(self, i, j)
__gt__(self, other)
__iadd__(self, other)
__imul__(self, n)
__le__(self, other)
__lt__(self, other)
__mul__(self, n)
__ne__(self, other)
__radd__(self, other)
__repr__(self)
__rmul__ = __mul__(self, n)
__setitem__(self, i, item)
__setslice__(self, i, j, other)
append(self, item)
count(self, item)
extend(self, other)
index(self, item, *args)
insert(self, i, item)
pop(self, i=-1)
remove(self, item)
reverse(self)
sort(self, *args)

 
class base64BinaryType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class base64Type(base64BinaryType)
    
Method resolution order:
base64Type
base64BinaryType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class binaryType(anyType)
     Methods defined here:
__init__(self, data, name=None, typed=1, encoding='base64', attrs=None)

Methods inherited from anyType:
__repr__ = __str__(self)
__str__(self)

 
class bodyType(structType)
    
Method resolution order:
bodyType
structType
compoundType
anyType

Methods defined here:
__init__(self, data=None, typed=1, attrs=None)

Methods inherited from compoundType:
__getitem__(self, item)
__len__(self)
__nonzero__(self)
__repr__(self)
__str__(self)

 
class booleanType(anyType)
     Methods defined here:
__int__(self)
__nonzero__ = __int__(self)

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class byteType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class centuryType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class compoundType(anyType)
     Methods defined here:
__getitem__(self, item)
__init__(self, data=None, name=None, typed=1, attrs=None)
__len__(self)
__nonzero__(self)
__repr__(self)
__str__(self)

 
class dateTimeType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class dateType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class decimalType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class doubleType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class durationType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class faultType(structType, Errors.Error)
    
Method resolution order:
faultType
structType
compoundType
anyType
Errors.Error
exceptions.Exception

Methods defined here:
__call__(self)
__init__(self, faultcode='', faultstring='', detail=None)
__repr__(self)
__str__ = __repr__(self)

Methods inherited from compoundType:
__getitem__(self, item)
__len__(self)
__nonzero__(self)

 
class floatType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class gDayType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class gMonthDayType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class gMonthType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class gYearMonthType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class gYearType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class headerType(structType)
    
Method resolution order:
headerType
structType
compoundType
anyType

Methods defined here:
__init__(self, data=None, typed=1, attrs=None)

Methods inherited from compoundType:
__getitem__(self, item)
__len__(self)
__nonzero__(self)
__repr__(self)
__str__(self)

 
class hexBinaryType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class intType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class integerType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class languageType(stringType)
    
Method resolution order:
languageType
stringType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class longType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class monthType(gMonthType)
    
Method resolution order:
monthType
gMonthType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class negativeIntegerType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class negative_IntegerType(negativeIntegerType)
    
Method resolution order:
negative_IntegerType
negativeIntegerType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class nonNegativeIntegerType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class nonPositiveIntegerType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class non_Negative_IntegerType(nonNegativeIntegerType)
    
Method resolution order:
non_Negative_IntegerType
nonNegativeIntegerType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class non_Positive_IntegerType(nonPositiveIntegerType)
    
Method resolution order:
non_Positive_IntegerType
nonPositiveIntegerType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class normalizedStringType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class positiveIntegerType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class positive_IntegerType(positiveIntegerType)
    
Method resolution order:
positive_IntegerType
positiveIntegerType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class recurringDateType(gMonthDayType)
    
Method resolution order:
recurringDateType
gMonthDayType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class recurringDayType(gDayType)
    
Method resolution order:
recurringDayType
gDayType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class recurringInstantType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class shortType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class stringType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class structType(compoundType)
    
Method resolution order:
structType
compoundType
anyType

Methods inherited from compoundType:
__getitem__(self, item)
__init__(self, data=None, name=None, typed=1, attrs=None)
__len__(self)
__nonzero__(self)
__repr__(self)
__str__(self)

 
class timeDurationType(durationType)
    
Method resolution order:
timeDurationType
durationType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class timeInstantType(dateTimeType)
    
Method resolution order:
timeInstantType
dateTimeType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class timePeriodType(dateTimeType)
    
Method resolution order:
timePeriodType
dateTimeType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class timeType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class tokenType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class typedArrayType(arrayType)
    
Method resolution order:
typedArrayType
arrayType
UserList.UserList
compoundType
anyType

Methods defined here:
__init__(self, data=None, name=None, typed=None, attrs=None, offset=0, rank=None, asize=0, elemsname=None, complexType=0)

Methods inherited from arrayType:
__getitem__(self, item)
__len__(self)
__nonzero__(self)
__str__(self)

Methods inherited from UserList.UserList:
__add__(self, other)
__cmp__(self, other)
__contains__(self, item)
__delitem__(self, i)
__delslice__(self, i, j)
__eq__(self, other)
__ge__(self, other)
__getslice__(self, i, j)
__gt__(self, other)
__iadd__(self, other)
__imul__(self, n)
__le__(self, other)
__lt__(self, other)
__mul__(self, n)
__ne__(self, other)
__radd__(self, other)
__repr__(self)
__rmul__ = __mul__(self, n)
__setitem__(self, i, item)
__setslice__(self, i, j, other)
append(self, item)
count(self, item)
extend(self, other)
index(self, item, *args)
insert(self, i, item)
pop(self, i=-1)
remove(self, item)
reverse(self)
sort(self, *args)

 
class unsignedByteType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class unsignedIntType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class unsignedLongType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class unsignedShortType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class untypedType(stringType)
    
Method resolution order:
untypedType
stringType
anyType

Methods defined here:
__init__(self, data=None, name=None, attrs=None)

Methods inherited from anyType:
__repr__ = __str__(self)
__str__(self)

 
class uriReferenceType(anyURIType)
    
Method resolution order:
uriReferenceType
anyURIType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class uriType(anyURIType)
    
Method resolution order:
uriType
anyURIType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class voidType(anyType)
     Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
class yearType(gYearType)
    
Method resolution order:
yearType
gYearType
anyType

Methods inherited from anyType:
__init__(self, data=None, name=None, typed=1, attrs=None)
__repr__ = __str__(self)
__str__(self)

 
Functions
       
isPrivate(name)
isPublic(name)
simplify(object, level=0)
Convert the SOAPpy objects and thier contents to simple python types.
 
This function recursively converts the passed 'container' object,
and all public subobjects. (Private subobjects have names that
start with '_'.)
 
Conversions:
faultType    --> raise python exception
arrayType    --> array
compoundType --> dictionary
simplify_contents(object, level=0)
Convert the contents of SOAPpy objects to simple python types.
 
This function recursively converts the sub-objects contained in a
'container' object to simple python types.
 
Conversions:
faultType    --> raise python exception
arrayType    --> array
compoundType --> dictionary

 
Data
        Config = <Config.SOAPConfig instance>
StringTypes = (<type 'str'>, <type 'unicode'>)
__version__ = '0.12.0'
ident = '$Id: Errors.py 921 2005-02-15 16:32:23Z warnes $'
nested_scopes = _Feature((2, 1, 0, 'beta', 1), (2, 2, 0, 'alpha', 0), 16)