home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 October / maximum-cd-2011-10.iso / DiscContents / digsby_setup.exe / lib / msn / SOAP / xml / wsrm.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2011-06-22  |  20.0 KB  |  521 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 wsrm:
  11.     targetNamespace = NS.WSA.RM
  12.     
  13.     class SequenceType_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  14.         schema = NS.WSA.RM
  15.         type = (schema, 'SequenceType')
  16.         
  17.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  18.             ns = wsrm.SequenceType_Def.schema
  19.             TClist = [
  20.                 GED(NS.WSU.UTILITY, 'Identifier', lazy = False, isref = True)(minOccurs = 1, maxOccurs = 1, nillable = False, encoded = kw.get('encoded')),
  21.                 ZSI.TCnumbers.IunsignedLong(pname = (ns, 'MessageNumber'), aname = '_MessageNumber', minOccurs = 1, maxOccurs = 1, nillable = False, typed = False, encoded = kw.get('encoded')),
  22.                 ZSI.TC.AnyType(pname = (ns, 'LastMessage'), aname = '_LastMessage', minOccurs = 0, maxOccurs = 1, nillable = False, typed = False, encoded = kw.get('encoded')),
  23.                 ZSI.TC.AnyElement(aname = '_any', minOccurs = 0, maxOccurs = 'unbounded', nillable = False, processContents = 'lax')]
  24.             if not attributes:
  25.                 pass
  26.             self.attribute_typecode_dict = { }
  27.             if extend:
  28.                 TClist += ofwhat
  29.             
  30.             if restrict:
  31.                 TClist = ofwhat
  32.             else:
  33.                 self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  34.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  35.             
  36.             class Holder(()):
  37.                 __metaclass__ = pyclass_type
  38.                 typecode = self
  39.                 
  40.                 def __init__(self):
  41.                     self._Identifier = None
  42.                     self._MessageNumber = None
  43.                     self._LastMessage = None
  44.                     self._any = []
  45.  
  46.  
  47.             Holder.__name__ = 'SequenceType_Holder'
  48.             self.pyclass = Holder
  49.  
  50.  
  51.     
  52.     class AckRequestedType_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  53.         schema = NS.WSA.RM
  54.         type = (schema, 'AckRequestedType')
  55.         
  56.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  57.             ns = wsrm.AckRequestedType_Def.schema
  58.             TClist = [
  59.                 GED(NS.WSU.UTILITY, 'Identifier', lazy = False, isref = True)(minOccurs = 1, maxOccurs = 1, nillable = False, encoded = kw.get('encoded')),
  60.                 ZSI.TC.AnyElement(aname = '_any', minOccurs = 0, maxOccurs = 'unbounded', nillable = False, processContents = 'lax')]
  61.             if not attributes:
  62.                 pass
  63.             self.attribute_typecode_dict = { }
  64.             if extend:
  65.                 TClist += ofwhat
  66.             
  67.             if restrict:
  68.                 TClist = ofwhat
  69.             else:
  70.                 self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  71.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  72.             
  73.             class Holder(()):
  74.                 __metaclass__ = pyclass_type
  75.                 typecode = self
  76.                 
  77.                 def __init__(self):
  78.                     self._Identifier = None
  79.                     self._any = []
  80.  
  81.  
  82.             Holder.__name__ = 'AckRequestedType_Holder'
  83.             self.pyclass = Holder
  84.  
  85.  
  86.     
  87.     class PolicyAssertionType_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  88.         schema = NS.WSA.RM
  89.         type = (schema, 'PolicyAssertionType')
  90.         
  91.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  92.             ns = wsrm.PolicyAssertionType_Def.schema
  93.             TClist = [
  94.                 ZSI.TC.AnyElement(aname = '_any', minOccurs = 0, maxOccurs = 'unbounded', nillable = False, processContents = 'lax')]
  95.             if not attributes:
  96.                 pass
  97.             self.attribute_typecode_dict = { }
  98.             if extend:
  99.                 TClist += ofwhat
  100.             
  101.             if restrict:
  102.                 TClist = ofwhat
  103.             else:
  104.                 self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  105.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  106.             
  107.             class Holder(()):
  108.                 __metaclass__ = pyclass_type
  109.                 typecode = self
  110.                 
  111.                 def __init__(self):
  112.                     self._any = []
  113.  
  114.  
  115.             Holder.__name__ = 'PolicyAssertionType_Holder'
  116.             self.pyclass = Holder
  117.  
  118.  
  119.     
  120.     class DeliveryAssuranceEnum_Def(ZSI.TC.QName, TypeDefinition):
  121.         schema = NS.WSA.RM
  122.         type = (schema, 'DeliveryAssuranceEnum')
  123.         
  124.         def __init__(self, pname, **kw):
  125.             ZSI.TC.QName.__init__(self, pname, pyclass = None, **kw)
  126.             
  127.             class Holder((str,)):
  128.                 typecode = self
  129.  
  130.             self.pyclass = Holder
  131.  
  132.  
  133.     
  134.     class FaultCodes_Def(ZSI.TC.QName, TypeDefinition):
  135.         schema = NS.WSA.RM
  136.         type = (schema, 'FaultCodes')
  137.         
  138.         def __init__(self, pname, **kw):
  139.             ZSI.TC.QName.__init__(self, pname, pyclass = None, **kw)
  140.             
  141.             class Holder((str,)):
  142.                 typecode = self
  143.  
  144.             self.pyclass = Holder
  145.  
  146.  
  147.     
  148.     class SequenceFaultType_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  149.         schema = NS.WSA.RM
  150.         type = (schema, 'SequenceFaultType')
  151.         
  152.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  153.             ns = wsrm.SequenceFaultType_Def.schema
  154.             TClist = [
  155.                 GED(NS.WSU.UTILITY, 'Identifier', lazy = False, isref = True)(minOccurs = 1, maxOccurs = 1, nillable = False, encoded = kw.get('encoded')),
  156.                 ZSI.TC.QName(pname = (ns, 'FaultCode'), aname = '_FaultCode', minOccurs = 1, maxOccurs = 1, nillable = False, typed = False, encoded = kw.get('encoded')),
  157.                 ZSI.TC.AnyElement(aname = '_any', minOccurs = 1, maxOccurs = 1, nillable = False, processContents = 'strict')]
  158.             if not attributes:
  159.                 pass
  160.             self.attribute_typecode_dict = { }
  161.             if extend:
  162.                 TClist += ofwhat
  163.             
  164.             if restrict:
  165.                 TClist = ofwhat
  166.             else:
  167.                 self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  168.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  169.             
  170.             class Holder(()):
  171.                 __metaclass__ = pyclass_type
  172.                 typecode = self
  173.                 
  174.                 def __init__(self):
  175.                     self._Identifier = None
  176.                     self._FaultCode = None
  177.                     self._any = None
  178.  
  179.  
  180.             Holder.__name__ = 'SequenceFaultType_Holder'
  181.             self.pyclass = Holder
  182.  
  183.  
  184.     
  185.     class SequenceRefType_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  186.         schema = NS.WSA.RM
  187.         type = (schema, 'SequenceRefType')
  188.         
  189.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  190.             ns = wsrm.SequenceRefType_Def.schema
  191.             TClist = [
  192.                 ZSI.TC.AnyElement(aname = '_any', minOccurs = 0, maxOccurs = 'unbounded', nillable = False, processContents = 'lax')]
  193.             if not attributes:
  194.                 pass
  195.             self.attribute_typecode_dict = { }
  196.             if extend:
  197.                 TClist += ofwhat
  198.             
  199.             if restrict:
  200.                 TClist = ofwhat
  201.             else:
  202.                 self.attribute_typecode_dict['Identifier'] = ZSI.TC.URI()
  203.                 self.attribute_typecode_dict['Match'] = wsrm.MatchChoiceType_Def(None)
  204.                 self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  205.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  206.             
  207.             class Holder(()):
  208.                 __metaclass__ = pyclass_type
  209.                 typecode = self
  210.                 
  211.                 def __init__(self):
  212.                     self._any = []
  213.  
  214.  
  215.             Holder.__name__ = 'SequenceRefType_Holder'
  216.             self.pyclass = Holder
  217.  
  218.  
  219.     
  220.     class MatchChoiceType_Def(ZSI.TC.QName, TypeDefinition):
  221.         schema = NS.WSA.RM
  222.         type = (schema, 'MatchChoiceType')
  223.         
  224.         def __init__(self, pname, **kw):
  225.             ZSI.TC.QName.__init__(self, pname, pyclass = None, **kw)
  226.             
  227.             class Holder((str,)):
  228.                 typecode = self
  229.  
  230.             self.pyclass = Holder
  231.  
  232.  
  233.     
  234.     class Sequence_Dec(ElementDeclaration):
  235.         literal = 'Sequence'
  236.         schema = NS.WSA.RM
  237.         substitutionGroup = None
  238.         
  239.         def __init__(self, **kw):
  240.             kw['pname'] = (NS.WSA.RM, 'Sequence')
  241.             kw['aname'] = '_Sequence'
  242.             if wsrm.SequenceType_Def not in wsrm.Sequence_Dec.__bases__:
  243.                 bases = list(wsrm.Sequence_Dec.__bases__)
  244.                 bases.insert(0, wsrm.SequenceType_Def)
  245.                 wsrm.Sequence_Dec.__bases__ = tuple(bases)
  246.             
  247.             wsrm.SequenceType_Def.__init__(self, **kw)
  248.             if self.pyclass is not None:
  249.                 self.pyclass.__name__ = 'Sequence_Dec_Holder'
  250.             
  251.  
  252.  
  253.     
  254.     class SequenceTerminate_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
  255.         literal = 'SequenceTerminate'
  256.         schema = NS.WSA.RM
  257.         
  258.         def __init__(self, **kw):
  259.             ns = wsrm.SequenceTerminate_Dec.schema
  260.             TClist = [
  261.                 GED(NS.WSU.UTILITY, 'Identifier', lazy = False, isref = True)(minOccurs = 1, maxOccurs = 1, nillable = False, encoded = kw.get('encoded')),
  262.                 ZSI.TC.AnyElement(aname = '_any', minOccurs = 0, maxOccurs = 'unbounded', nillable = False, processContents = 'lax')]
  263.             kw['pname'] = (NS.WSA.RM, 'SequenceTerminate')
  264.             kw['aname'] = '_SequenceTerminate'
  265.             self.attribute_typecode_dict = { }
  266.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, inorder = 0, **kw)
  267.             self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  268.             
  269.             class Holder(()):
  270.                 __metaclass__ = pyclass_type
  271.                 typecode = self
  272.                 
  273.                 def __init__(self):
  274.                     self._Identifier = None
  275.                     self._any = []
  276.  
  277.  
  278.             Holder.__name__ = 'SequenceTerminate_Holder'
  279.             self.pyclass = Holder
  280.  
  281.  
  282.     
  283.     class SequenceAcknowledgment_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
  284.         literal = 'SequenceAcknowledgment'
  285.         schema = NS.WSA.RM
  286.         
  287.         def __init__(self, **kw):
  288.             ns = wsrm.SequenceAcknowledgment_Dec.schema
  289.             TClist = [
  290.                 GED(NS.WSU.UTILITY, 'Identifier', lazy = False, isref = True)(minOccurs = 1, maxOccurs = 1, nillable = False, encoded = kw.get('encoded')),
  291.                 self.__class__.AcknowledgmentRange_Dec(minOccurs = 1, maxOccurs = 'unbounded', nillable = False, encoded = kw.get('encoded')),
  292.                 ZSI.TC.AnyElement(aname = '_any', minOccurs = 0, maxOccurs = 'unbounded', nillable = False, processContents = 'lax')]
  293.             kw['pname'] = (NS.WSA.RM, 'SequenceAcknowledgment')
  294.             kw['aname'] = '_SequenceAcknowledgment'
  295.             self.attribute_typecode_dict = { }
  296.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, inorder = 0, **kw)
  297.             self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  298.             
  299.             class Holder(()):
  300.                 __metaclass__ = pyclass_type
  301.                 typecode = self
  302.                 
  303.                 def __init__(self):
  304.                     self._Identifier = None
  305.                     self._AcknowledgmentRange = []
  306.                     self._any = []
  307.  
  308.  
  309.             Holder.__name__ = 'SequenceAcknowledgment_Holder'
  310.             self.pyclass = Holder
  311.  
  312.         
  313.         class AcknowledgmentRange_Dec(ZSI.TCcompound.ComplexType, LocalElementDeclaration):
  314.             literal = 'AcknowledgmentRange'
  315.             schema = NS.WSA.RM
  316.             
  317.             def __init__(self, **kw):
  318.                 ns = wsrm.SequenceAcknowledgment_Dec.AcknowledgmentRange_Dec.schema
  319.                 TClist = []
  320.                 kw['pname'] = (NS.WSA.RM, 'AcknowledgmentRange')
  321.                 kw['aname'] = '_AcknowledgmentRange'
  322.                 self.attribute_typecode_dict = { }
  323.                 ZSI.TCcompound.ComplexType.__init__(self, None, TClist, inorder = 0, **kw)
  324.                 self.attribute_typecode_dict['Upper'] = ZSI.TCnumbers.IunsignedLong()
  325.                 self.attribute_typecode_dict['Lower'] = ZSI.TCnumbers.IunsignedLong()
  326.                 
  327.                 class Holder(()):
  328.                     __metaclass__ = pyclass_type
  329.                     typecode = self
  330.                     
  331.                     def __init__(self):
  332.                         pass
  333.  
  334.  
  335.                 Holder.__name__ = 'AcknowledgmentRange_Holder'
  336.                 self.pyclass = Holder
  337.  
  338.  
  339.  
  340.     
  341.     class AckRequested_Dec(ElementDeclaration):
  342.         literal = 'AckRequested'
  343.         schema = NS.WSA.RM
  344.         substitutionGroup = None
  345.         
  346.         def __init__(self, **kw):
  347.             kw['pname'] = (NS.WSA.RM, 'AckRequested')
  348.             kw['aname'] = '_AckRequested'
  349.             if wsrm.AckRequestedType_Def not in wsrm.AckRequested_Dec.__bases__:
  350.                 bases = list(wsrm.AckRequested_Dec.__bases__)
  351.                 bases.insert(0, wsrm.AckRequestedType_Def)
  352.                 wsrm.AckRequested_Dec.__bases__ = tuple(bases)
  353.             
  354.             wsrm.AckRequestedType_Def.__init__(self, **kw)
  355.             if self.pyclass is not None:
  356.                 self.pyclass.__name__ = 'AckRequested_Dec_Holder'
  357.             
  358.  
  359.  
  360.     
  361.     class InactivityTimeout_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
  362.         literal = 'InactivityTimeout'
  363.         schema = NS.WSA.RM
  364.         
  365.         def __init__(self, **kw):
  366.             ns = wsrm.InactivityTimeout_Dec.schema
  367.             TClist = []
  368.             kw['pname'] = (NS.WSA.RM, 'InactivityTimeout')
  369.             kw['aname'] = '_InactivityTimeout'
  370.             self.attribute_typecode_dict = { }
  371.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, inorder = 0, **kw)
  372.             
  373.             class Holder(()):
  374.                 __metaclass__ = pyclass_type
  375.                 typecode = self
  376.                 
  377.                 def __init__(self):
  378.                     pass
  379.  
  380.  
  381.             Holder.__name__ = 'InactivityTimeout_Holder'
  382.             self.pyclass = Holder
  383.  
  384.  
  385.     
  386.     class BaseRetransmissionInterval_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
  387.         literal = 'BaseRetransmissionInterval'
  388.         schema = NS.WSA.RM
  389.         
  390.         def __init__(self, **kw):
  391.             ns = wsrm.BaseRetransmissionInterval_Dec.schema
  392.             TClist = []
  393.             kw['pname'] = (NS.WSA.RM, 'BaseRetransmissionInterval')
  394.             kw['aname'] = '_BaseRetransmissionInterval'
  395.             self.attribute_typecode_dict = { }
  396.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, inorder = 0, **kw)
  397.             
  398.             class Holder(()):
  399.                 __metaclass__ = pyclass_type
  400.                 typecode = self
  401.                 
  402.                 def __init__(self):
  403.                     pass
  404.  
  405.  
  406.             Holder.__name__ = 'BaseRetransmissionInterval_Holder'
  407.             self.pyclass = Holder
  408.  
  409.  
  410.     
  411.     class ExponentialBackoff_Dec(ElementDeclaration):
  412.         literal = 'ExponentialBackoff'
  413.         schema = NS.WSA.RM
  414.         substitutionGroup = None
  415.         
  416.         def __init__(self, **kw):
  417.             kw['pname'] = (NS.WSA.RM, 'ExponentialBackoff')
  418.             kw['aname'] = '_ExponentialBackoff'
  419.             if wsrm.PolicyAssertionType_Def not in wsrm.ExponentialBackoff_Dec.__bases__:
  420.                 bases = list(wsrm.ExponentialBackoff_Dec.__bases__)
  421.                 bases.insert(0, wsrm.PolicyAssertionType_Def)
  422.                 wsrm.ExponentialBackoff_Dec.__bases__ = tuple(bases)
  423.             
  424.             wsrm.PolicyAssertionType_Def.__init__(self, **kw)
  425.             if self.pyclass is not None:
  426.                 self.pyclass.__name__ = 'ExponentialBackoff_Dec_Holder'
  427.             
  428.  
  429.  
  430.     
  431.     class AcknowledgementInterval_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
  432.         literal = 'AcknowledgementInterval'
  433.         schema = NS.WSA.RM
  434.         
  435.         def __init__(self, **kw):
  436.             ns = wsrm.AcknowledgementInterval_Dec.schema
  437.             TClist = []
  438.             kw['pname'] = (NS.WSA.RM, 'AcknowledgementInterval')
  439.             kw['aname'] = '_AcknowledgementInterval'
  440.             self.attribute_typecode_dict = { }
  441.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, inorder = 0, **kw)
  442.             
  443.             class Holder(()):
  444.                 __metaclass__ = pyclass_type
  445.                 typecode = self
  446.                 
  447.                 def __init__(self):
  448.                     pass
  449.  
  450.  
  451.             Holder.__name__ = 'AcknowledgementInterval_Holder'
  452.             self.pyclass = Holder
  453.  
  454.  
  455.     
  456.     class DeliveryAssurance_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
  457.         literal = 'DeliveryAssurance'
  458.         schema = NS.WSA.RM
  459.         
  460.         def __init__(self, **kw):
  461.             ns = wsrm.DeliveryAssurance_Dec.schema
  462.             TClist = []
  463.             kw['pname'] = (NS.WSA.RM, 'DeliveryAssurance')
  464.             kw['aname'] = '_DeliveryAssurance'
  465.             self.attribute_typecode_dict = { }
  466.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, inorder = 0, **kw)
  467.             
  468.             class Holder(()):
  469.                 __metaclass__ = pyclass_type
  470.                 typecode = self
  471.                 
  472.                 def __init__(self):
  473.                     pass
  474.  
  475.  
  476.             Holder.__name__ = 'DeliveryAssurance_Holder'
  477.             self.pyclass = Holder
  478.  
  479.  
  480.     
  481.     class SequenceFault_Dec(ElementDeclaration):
  482.         literal = 'SequenceFault'
  483.         schema = NS.WSA.RM
  484.         substitutionGroup = None
  485.         
  486.         def __init__(self, **kw):
  487.             kw['pname'] = (NS.WSA.RM, 'SequenceFault')
  488.             kw['aname'] = '_SequenceFault'
  489.             if wsrm.SequenceFaultType_Def not in wsrm.SequenceFault_Dec.__bases__:
  490.                 bases = list(wsrm.SequenceFault_Dec.__bases__)
  491.                 bases.insert(0, wsrm.SequenceFaultType_Def)
  492.                 wsrm.SequenceFault_Dec.__bases__ = tuple(bases)
  493.             
  494.             wsrm.SequenceFaultType_Def.__init__(self, **kw)
  495.             if self.pyclass is not None:
  496.                 self.pyclass.__name__ = 'SequenceFault_Dec_Holder'
  497.             
  498.  
  499.  
  500.     
  501.     class SequenceRef_Dec(ElementDeclaration):
  502.         literal = 'SequenceRef'
  503.         schema = NS.WSA.RM
  504.         substitutionGroup = None
  505.         
  506.         def __init__(self, **kw):
  507.             kw['pname'] = (NS.WSA.RM, 'SequenceRef')
  508.             kw['aname'] = '_SequenceRef'
  509.             if wsrm.SequenceRefType_Def not in wsrm.SequenceRef_Dec.__bases__:
  510.                 bases = list(wsrm.SequenceRef_Dec.__bases__)
  511.                 bases.insert(0, wsrm.SequenceRefType_Def)
  512.                 wsrm.SequenceRef_Dec.__bases__ = tuple(bases)
  513.             
  514.             wsrm.SequenceRefType_Def.__init__(self, **kw)
  515.             if self.pyclass is not None:
  516.                 self.pyclass.__name__ = 'SequenceRef_Dec_Holder'
  517.             
  518.  
  519.  
  520.  
  521.