home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 October / maximum-cd-2011-10.iso / DiscContents / digsby_setup.exe / lib / msn / SOAP / xml / wsu.pyo (.txt) < prev   
Encoding:
Python Compiled Bytecode  |  2011-06-22  |  13.9 KB  |  372 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.6)
  3.  
  4. import ZSI
  5. import ZSI.TCcompound as ZSI
  6. import ZSI.wstools.Namespaces as NS
  7. from ZSI.schema import LocalElementDeclaration, ElementDeclaration, TypeDefinition, GTD, GED
  8. from ZSI.generate.pyclass import pyclass_type
  9.  
  10. class wsu:
  11.     targetNamespace = NS.WSU.UTILITY
  12.     
  13.     class tTimestampFault_Def(ZSI.TC.QName, TypeDefinition):
  14.         schema = NS.WSU.UTILITY
  15.         type = (schema, 'tTimestampFault')
  16.         
  17.         def __init__(self, pname, **kw):
  18.             ZSI.TC.QName.__init__(self, pname, pyclass = None, **kw)
  19.             
  20.             class Holder((str,)):
  21.                 typecode = self
  22.  
  23.             self.pyclass = Holder
  24.  
  25.  
  26.     
  27.     class tContextFault_Def(ZSI.TC.QName, TypeDefinition):
  28.         schema = NS.WSU.UTILITY
  29.         type = (schema, 'tContextFault')
  30.         
  31.         def __init__(self, pname, **kw):
  32.             ZSI.TC.QName.__init__(self, pname, pyclass = None, **kw)
  33.             
  34.             class Holder((str,)):
  35.                 typecode = self
  36.  
  37.             self.pyclass = Holder
  38.  
  39.  
  40.     
  41.     class AttributedDateTime_Def(ZSI.TC.String, TypeDefinition):
  42.         schema = NS.WSU.UTILITY
  43.         type = (schema, 'AttributedDateTime')
  44.         
  45.         def __init__(self, pname, **kw):
  46.             if getattr(self, 'attribute_typecode_dict', None) is None:
  47.                 self.attribute_typecode_dict = { }
  48.             
  49.             self.attribute_typecode_dict['ValueType'] = ZSI.TC.QName()
  50.             self.attribute_typecode_dict[(NS.WSU.UTILITY, 'Id')] = ZSI.TC.AnyType()
  51.             self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  52.             ZSI.TC.String.__init__(self, pname, **kw)
  53.             
  54.             class Holder((str,)):
  55.                 __metaclass__ = pyclass_type
  56.                 typecode = self
  57.  
  58.             self.pyclass = Holder
  59.  
  60.  
  61.     
  62.     class ReceivedType_Def(TypeDefinition):
  63.         schema = NS.WSU.UTILITY
  64.         type = (schema, 'ReceivedType')
  65.         
  66.         def __init__(self, pname, **kw):
  67.             ns = wsu.ReceivedType_Def.schema
  68.             if wsu.AttributedDateTime_Def not in wsu.ReceivedType_Def.__bases__:
  69.                 bases = list(wsu.ReceivedType_Def.__bases__)
  70.                 bases.insert(0, wsu.AttributedDateTime_Def)
  71.                 wsu.ReceivedType_Def.__bases__ = tuple(bases)
  72.             
  73.             if getattr(self, 'attribute_typecode_dict', None) is None:
  74.                 self.attribute_typecode_dict = { }
  75.             
  76.             self.attribute_typecode_dict['Delay'] = ZSI.TCnumbers.Iint()
  77.             self.attribute_typecode_dict['Actor'] = ZSI.TC.URI()
  78.             wsu.AttributedDateTime_Def.__init__(self, pname, **kw)
  79.  
  80.  
  81.     
  82.     class AttributedURI_Def(ZSI.TC.URI, TypeDefinition):
  83.         schema = NS.WSU.UTILITY
  84.         type = (schema, 'AttributedURI')
  85.         
  86.         def __init__(self, pname, **kw):
  87.             if getattr(self, 'attribute_typecode_dict', None) is None:
  88.                 self.attribute_typecode_dict = { }
  89.             
  90.             self.attribute_typecode_dict[(NS.WSU.UTILITY, 'Id')] = ZSI.TC.AnyType()
  91.             self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  92.             ZSI.TC.URI.__init__(self, pname, **kw)
  93.             
  94.             class Holder((str,)):
  95.                 __metaclass__ = pyclass_type
  96.                 typecode = self
  97.  
  98.             self.pyclass = Holder
  99.  
  100.  
  101.     
  102.     class TimestampType_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  103.         schema = NS.WSU.UTILITY
  104.         type = (schema, 'TimestampType')
  105.         
  106.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  107.             ns = wsu.TimestampType_Def.schema
  108.             TClist = [
  109.                 GED(NS.WSU.UTILITY, 'Created', lazy = False, isref = True)(minOccurs = 0, maxOccurs = 1, nillable = False, encoded = kw.get('encoded')),
  110.                 GED(NS.WSU.UTILITY, 'Expires', lazy = False, isref = True)(minOccurs = 0, maxOccurs = 1, nillable = False, encoded = kw.get('encoded')),
  111.                 GED(NS.WSU.UTILITY, 'Received', lazy = False, isref = True)(minOccurs = 0, maxOccurs = 'unbounded', nillable = False, encoded = kw.get('encoded')),
  112.                 ZSI.TC.AnyElement(aname = '_any', minOccurs = 0, maxOccurs = 'unbounded', nillable = False, processContents = 'lax')]
  113.             if not attributes:
  114.                 pass
  115.             self.attribute_typecode_dict = { }
  116.             if extend:
  117.                 TClist += ofwhat
  118.             
  119.             if restrict:
  120.                 TClist = ofwhat
  121.             else:
  122.                 self.attribute_typecode_dict[(NS.WSU.UTILITY, 'Id')] = ZSI.TC.AnyType()
  123.                 self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  124.                 self.attribute_typecode_dict[(NS.WSU.UTILITY, 'Id')] = ZSI.TC.AnyType()
  125.                 self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  126.                 self.attribute_typecode_dict[(NS.WSU.UTILITY, 'Id')] = ZSI.TC.AnyType()
  127.                 self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  128.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  129.             
  130.             class Holder(()):
  131.                 __metaclass__ = pyclass_type
  132.                 typecode = self
  133.                 
  134.                 def __init__(self):
  135.                     self._Created = None
  136.                     self._Expires = None
  137.                     self._Received = None
  138.                     self._any = []
  139.  
  140.  
  141.             Holder.__name__ = 'TimestampType_Holder'
  142.             self.pyclass = Holder
  143.  
  144.  
  145.     
  146.     class ContextType_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  147.         schema = NS.WSU.UTILITY
  148.         type = (schema, 'ContextType')
  149.         
  150.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  151.             ns = wsu.ContextType_Def.schema
  152.             TClist = [
  153.                 GED(NS.WSU.UTILITY, 'Expires', lazy = False, isref = True)(minOccurs = 0, maxOccurs = 1, nillable = False, encoded = kw.get('encoded')),
  154.                 GED(NS.WSU.UTILITY, 'Identifier', lazy = False, isref = True)(minOccurs = 1, maxOccurs = 1, nillable = False, encoded = kw.get('encoded'))]
  155.             if not attributes:
  156.                 pass
  157.             self.attribute_typecode_dict = { }
  158.             if extend:
  159.                 TClist += ofwhat
  160.             
  161.             if restrict:
  162.                 TClist = ofwhat
  163.             else:
  164.                 self.attribute_typecode_dict[(NS.WSU.UTILITY, 'Id')] = ZSI.TC.AnyType()
  165.                 self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  166.                 self.attribute_typecode_dict[(NS.WSU.UTILITY, 'Id')] = ZSI.TC.AnyType()
  167.                 self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  168.                 self.attribute_typecode_dict[(NS.WSU.UTILITY, 'Id')] = ZSI.TC.AnyType()
  169.                 self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  170.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  171.             
  172.             class Holder(()):
  173.                 __metaclass__ = pyclass_type
  174.                 typecode = self
  175.                 
  176.                 def __init__(self):
  177.                     self._Expires = None
  178.                     self._Identifier = None
  179.  
  180.  
  181.             Holder.__name__ = 'ContextType_Holder'
  182.             self.pyclass = Holder
  183.  
  184.  
  185.     
  186.     class PortReferenceType_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  187.         schema = NS.WSU.UTILITY
  188.         type = (schema, 'PortReferenceType')
  189.         
  190.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  191.             ns = wsu.PortReferenceType_Def.schema
  192.             TClist = [
  193.                 GTD(NS.WSU.UTILITY, 'AttributedURI', lazy = False)(pname = (ns, 'Address'), aname = '_Address', minOccurs = 1, maxOccurs = 1, nillable = False, typed = False, encoded = kw.get('encoded')),
  194.                 ZSI.TC.AnyElement(aname = '_any', minOccurs = 0, maxOccurs = 'unbounded', nillable = False, processContents = 'lax')]
  195.             if not attributes:
  196.                 pass
  197.             self.attribute_typecode_dict = { }
  198.             if extend:
  199.                 TClist += ofwhat
  200.             
  201.             if restrict:
  202.                 TClist = ofwhat
  203.             else:
  204.                 self.attribute_typecode_dict[(NS.WSU.UTILITY, 'Id')] = ZSI.TC.AnyType()
  205.                 self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  206.                 self.attribute_typecode_dict[(NS.WSU.UTILITY, 'Id')] = ZSI.TC.AnyType()
  207.                 self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  208.                 self.attribute_typecode_dict[(NS.WSU.UTILITY, 'Id')] = ZSI.TC.AnyType()
  209.                 self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  210.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  211.             
  212.             class Holder(()):
  213.                 __metaclass__ = pyclass_type
  214.                 typecode = self
  215.                 
  216.                 def __init__(self):
  217.                     self._Address = None
  218.                     self._any = []
  219.  
  220.  
  221.             Holder.__name__ = 'PortReferenceType_Holder'
  222.             self.pyclass = Holder
  223.  
  224.  
  225.     
  226.     class Timestamp_Dec(ElementDeclaration):
  227.         literal = 'Timestamp'
  228.         schema = NS.WSU.UTILITY
  229.         substitutionGroup = None
  230.         
  231.         def __init__(self, **kw):
  232.             kw['pname'] = (NS.WSU.UTILITY, 'Timestamp')
  233.             kw['aname'] = '_Timestamp'
  234.             if wsu.TimestampType_Def not in wsu.Timestamp_Dec.__bases__:
  235.                 bases = list(wsu.Timestamp_Dec.__bases__)
  236.                 bases.insert(0, wsu.TimestampType_Def)
  237.                 wsu.Timestamp_Dec.__bases__ = tuple(bases)
  238.             
  239.             wsu.TimestampType_Def.__init__(self, **kw)
  240.             if self.pyclass is not None:
  241.                 self.pyclass.__name__ = 'Timestamp_Dec_Holder'
  242.             
  243.  
  244.  
  245.     
  246.     class Expires_Dec(ElementDeclaration):
  247.         literal = 'Expires'
  248.         schema = NS.WSU.UTILITY
  249.         substitutionGroup = None
  250.         
  251.         def __init__(self, **kw):
  252.             kw['pname'] = (NS.WSU.UTILITY, 'Expires')
  253.             kw['aname'] = '_Expires'
  254.             if wsu.AttributedDateTime_Def not in wsu.Expires_Dec.__bases__:
  255.                 bases = list(wsu.Expires_Dec.__bases__)
  256.                 bases.insert(0, wsu.AttributedDateTime_Def)
  257.                 wsu.Expires_Dec.__bases__ = tuple(bases)
  258.             
  259.             wsu.AttributedDateTime_Def.__init__(self, **kw)
  260.             if self.pyclass is not None:
  261.                 self.pyclass.__name__ = 'Expires_Dec_Holder'
  262.             
  263.  
  264.  
  265.     
  266.     class Created_Dec(ElementDeclaration):
  267.         literal = 'Created'
  268.         schema = NS.WSU.UTILITY
  269.         substitutionGroup = None
  270.         
  271.         def __init__(self, **kw):
  272.             kw['pname'] = (NS.WSU.UTILITY, 'Created')
  273.             kw['aname'] = '_Created'
  274.             if wsu.AttributedDateTime_Def not in wsu.Created_Dec.__bases__:
  275.                 bases = list(wsu.Created_Dec.__bases__)
  276.                 bases.insert(0, wsu.AttributedDateTime_Def)
  277.                 wsu.Created_Dec.__bases__ = tuple(bases)
  278.             
  279.             wsu.AttributedDateTime_Def.__init__(self, **kw)
  280.             if self.pyclass is not None:
  281.                 self.pyclass.__name__ = 'Created_Dec_Holder'
  282.             
  283.  
  284.  
  285.     
  286.     class Received_Dec(ElementDeclaration):
  287.         literal = 'Received'
  288.         schema = NS.WSU.UTILITY
  289.         substitutionGroup = None
  290.         
  291.         def __init__(self, **kw):
  292.             kw['pname'] = (NS.WSU.UTILITY, 'Received')
  293.             kw['aname'] = '_Received'
  294.             if wsu.ReceivedType_Def not in wsu.Received_Dec.__bases__:
  295.                 bases = list(wsu.Received_Dec.__bases__)
  296.                 bases.insert(0, wsu.ReceivedType_Def)
  297.                 wsu.Received_Dec.__bases__ = tuple(bases)
  298.             
  299.             wsu.ReceivedType_Def.__init__(self, **kw)
  300.             if self.pyclass is not None:
  301.                 self.pyclass.__name__ = 'Received_Dec_Holder'
  302.             
  303.  
  304.  
  305.     
  306.     class Identifier_Dec(ElementDeclaration):
  307.         literal = 'Identifier'
  308.         schema = NS.WSU.UTILITY
  309.         substitutionGroup = None
  310.         
  311.         def __init__(self, **kw):
  312.             kw['pname'] = (NS.WSU.UTILITY, 'Identifier')
  313.             kw['aname'] = '_Identifier'
  314.             if wsu.AttributedURI_Def not in wsu.Identifier_Dec.__bases__:
  315.                 bases = list(wsu.Identifier_Dec.__bases__)
  316.                 bases.insert(0, wsu.AttributedURI_Def)
  317.                 wsu.Identifier_Dec.__bases__ = tuple(bases)
  318.             
  319.             wsu.AttributedURI_Def.__init__(self, **kw)
  320.             if self.pyclass is not None:
  321.                 self.pyclass.__name__ = 'Identifier_Dec_Holder'
  322.             
  323.  
  324.  
  325.     
  326.     class Context_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
  327.         literal = 'Context'
  328.         schema = NS.WSU.UTILITY
  329.         
  330.         def __init__(self, **kw):
  331.             ns = wsu.Context_Dec.schema
  332.             TClist = [
  333.                 ZSI.TC.AnyElement(aname = '_any', minOccurs = 0, maxOccurs = 'unbounded', nillable = False, processContents = 'lax')]
  334.             kw['pname'] = (NS.WSU.UTILITY, 'Context')
  335.             kw['aname'] = '_Context'
  336.             self.attribute_typecode_dict = { }
  337.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, inorder = 0, **kw)
  338.             
  339.             class Holder(()):
  340.                 __metaclass__ = pyclass_type
  341.                 typecode = self
  342.                 
  343.                 def __init__(self):
  344.                     self._any = []
  345.  
  346.  
  347.             Holder.__name__ = 'Context_Holder'
  348.             self.pyclass = Holder
  349.  
  350.  
  351.     
  352.     class PortReference_Dec(ElementDeclaration):
  353.         literal = 'PortReference'
  354.         schema = NS.WSU.UTILITY
  355.         substitutionGroup = None
  356.         
  357.         def __init__(self, **kw):
  358.             kw['pname'] = (NS.WSU.UTILITY, 'PortReference')
  359.             kw['aname'] = '_PortReference'
  360.             if wsu.PortReferenceType_Def not in wsu.PortReference_Dec.__bases__:
  361.                 bases = list(wsu.PortReference_Dec.__bases__)
  362.                 bases.insert(0, wsu.PortReferenceType_Def)
  363.                 wsu.PortReference_Dec.__bases__ = tuple(bases)
  364.             
  365.             wsu.PortReferenceType_Def.__init__(self, **kw)
  366.             if self.pyclass is not None:
  367.                 self.pyclass.__name__ = 'PortReference_Dec_Holder'
  368.             
  369.  
  370.  
  371.  
  372.