home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 February / maximum-cd-2011-02.iso / DiscContents / digsby_setup85.exe / lib / msn / SOAP / xml / soapenv.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-11-24  |  19.1 KB  |  535 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 wssoapenv:
  11.     targetNamespace = NS.SOAP.ENV12
  12.     
  13.     class Envelope_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  14.         schema = NS.SOAP.ENV12
  15.         type = (schema, 'Envelope')
  16.         
  17.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  18.             ns = wssoapenv.Envelope_Def.schema
  19.             TClist = [
  20.                 GED(NS.SOAP.ENV12, 'Header', lazy = False, isref = True)(minOccurs = 0, maxOccurs = 1, nillable = False, encoded = kw.get('encoded')),
  21.                 GED(NS.SOAP.ENV12, 'Body', lazy = False, isref = True)(minOccurs = 1, maxOccurs = 1, nillable = False, encoded = kw.get('encoded'))]
  22.             if not attributes:
  23.                 pass
  24.             self.attribute_typecode_dict = { }
  25.             if extend:
  26.                 TClist += ofwhat
  27.             
  28.             if restrict:
  29.                 TClist = ofwhat
  30.             else:
  31.                 self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  32.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  33.             
  34.             class Holder(()):
  35.                 __metaclass__ = pyclass_type
  36.                 typecode = self
  37.                 
  38.                 def __init__(self):
  39.                     self._Header = None
  40.                     self._Body = None
  41.  
  42.  
  43.             Holder.__name__ = 'Envelope_Holder'
  44.             self.pyclass = Holder
  45.  
  46.  
  47.     
  48.     class Header_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  49.         schema = NS.SOAP.ENV12
  50.         type = (schema, 'Header')
  51.         
  52.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  53.             ns = wssoapenv.Header_Def.schema
  54.             TClist = [
  55.                 ZSI.TC.AnyElement(aname = '_any', minOccurs = 0, maxOccurs = 'unbounded', nillable = False, processContents = 'lax')]
  56.             if not attributes:
  57.                 pass
  58.             self.attribute_typecode_dict = { }
  59.             if extend:
  60.                 TClist += ofwhat
  61.             
  62.             if restrict:
  63.                 TClist = ofwhat
  64.             else:
  65.                 self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  66.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  67.             
  68.             class Holder(()):
  69.                 __metaclass__ = pyclass_type
  70.                 typecode = self
  71.                 
  72.                 def __init__(self):
  73.                     self._any = []
  74.  
  75.  
  76.             Holder.__name__ = 'Header_Holder'
  77.             self.pyclass = Holder
  78.  
  79.  
  80.     
  81.     class Body_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  82.         schema = NS.SOAP.ENV12
  83.         type = (schema, 'Body')
  84.         
  85.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  86.             ns = wssoapenv.Body_Def.schema
  87.             TClist = [
  88.                 ZSI.TC.AnyElement(aname = '_any', minOccurs = 0, maxOccurs = 'unbounded', nillable = False, processContents = 'lax')]
  89.             if not attributes:
  90.                 pass
  91.             self.attribute_typecode_dict = { }
  92.             if extend:
  93.                 TClist += ofwhat
  94.             
  95.             if restrict:
  96.                 TClist = ofwhat
  97.             else:
  98.                 self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  99.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  100.             
  101.             class Holder(()):
  102.                 __metaclass__ = pyclass_type
  103.                 typecode = self
  104.                 
  105.                 def __init__(self):
  106.                     self._any = []
  107.  
  108.  
  109.             Holder.__name__ = 'Body_Holder'
  110.             self.pyclass = Holder
  111.  
  112.  
  113.     
  114.     class Fault_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  115.         schema = NS.SOAP.ENV12
  116.         type = (schema, 'Fault')
  117.         
  118.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  119.             ns = wssoapenv.Fault_Def.schema
  120.             TClist = [
  121.                 GTD(NS.SOAP.ENV12, 'faultcode', lazy = False)(pname = (ns, 'Code'), aname = '_Code', minOccurs = 1, maxOccurs = 1, nillable = False, typed = False, encoded = kw.get('encoded')),
  122.                 GTD(NS.SOAP.ENV12, 'faultreason', lazy = False)(pname = (ns, 'Reason'), aname = '_Reason', minOccurs = 1, maxOccurs = 1, nillable = False, typed = False, encoded = kw.get('encoded')),
  123.                 ZSI.TC.URI(pname = (ns, 'Node'), aname = '_Node', minOccurs = 0, maxOccurs = 1, nillable = False, typed = False, encoded = kw.get('encoded')),
  124.                 ZSI.TC.URI(pname = (ns, 'Role'), aname = '_Role', minOccurs = 0, maxOccurs = 1, nillable = False, typed = False, encoded = kw.get('encoded')),
  125.                 GTD(NS.SOAP.ENV12, 'detail', lazy = False)(pname = (ns, 'Detail'), aname = '_Detail', minOccurs = 0, maxOccurs = 1, nillable = False, typed = False, encoded = kw.get('encoded'))]
  126.             if not attributes:
  127.                 pass
  128.             self.attribute_typecode_dict = { }
  129.             if extend:
  130.                 TClist += ofwhat
  131.             
  132.             if restrict:
  133.                 TClist = ofwhat
  134.             
  135.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  136.             
  137.             class Holder(()):
  138.                 __metaclass__ = pyclass_type
  139.                 typecode = self
  140.                 
  141.                 def __init__(self):
  142.                     self._Code = None
  143.                     self._Reason = None
  144.                     self._Node = None
  145.                     self._Role = None
  146.                     self._Detail = None
  147.  
  148.  
  149.             Holder.__name__ = 'Fault_Holder'
  150.             self.pyclass = Holder
  151.  
  152.  
  153.     
  154.     class faultreason_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  155.         schema = NS.SOAP.ENV12
  156.         type = (schema, 'faultreason')
  157.         
  158.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  159.             ns = wssoapenv.faultreason_Def.schema
  160.             TClist = [
  161.                 GTD(NS.SOAP.ENV12, 'reasontext', lazy = False)(pname = (ns, 'Text'), aname = '_Text', minOccurs = 1, maxOccurs = 'unbounded', nillable = False, typed = False, encoded = kw.get('encoded'))]
  162.             if not attributes:
  163.                 pass
  164.             self.attribute_typecode_dict = { }
  165.             if extend:
  166.                 TClist += ofwhat
  167.             
  168.             if restrict:
  169.                 TClist = ofwhat
  170.             
  171.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  172.             
  173.             class Holder(()):
  174.                 __metaclass__ = pyclass_type
  175.                 typecode = self
  176.                 
  177.                 def __init__(self):
  178.                     self._Text = []
  179.  
  180.  
  181.             Holder.__name__ = 'faultreason_Holder'
  182.             self.pyclass = Holder
  183.  
  184.  
  185.     
  186.     class reasontext_Def(ZSI.TC.String, TypeDefinition):
  187.         schema = NS.SOAP.ENV12
  188.         type = (schema, 'reasontext')
  189.         
  190.         def __init__(self, pname, **kw):
  191.             if getattr(self, 'attribute_typecode_dict', None) is None:
  192.                 self.attribute_typecode_dict = { }
  193.             
  194.             self.attribute_typecode_dict[(NS.XMLNS.XML, 'lang')] = ZSI.TC.AnyType()
  195.             ZSI.TC.String.__init__(self, pname, **kw)
  196.             
  197.             class Holder((str,)):
  198.                 __metaclass__ = pyclass_type
  199.                 typecode = self
  200.  
  201.             self.pyclass = Holder
  202.  
  203.  
  204.     
  205.     class faultcode_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  206.         schema = NS.SOAP.ENV12
  207.         type = (schema, 'faultcode')
  208.         
  209.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  210.             ns = wssoapenv.faultcode_Def.schema
  211.             TClist = [
  212.                 GTD(NS.SOAP.ENV12, 'faultcodeEnum', lazy = False)(pname = (ns, 'Value'), aname = '_Value', minOccurs = 1, maxOccurs = 1, nillable = False, typed = False, encoded = kw.get('encoded')),
  213.                 GTD(NS.SOAP.ENV12, 'subcode', lazy = False)(pname = (ns, 'Subcode'), aname = '_Subcode', minOccurs = 0, maxOccurs = 1, nillable = False, typed = False, encoded = kw.get('encoded'))]
  214.             if not attributes:
  215.                 pass
  216.             self.attribute_typecode_dict = { }
  217.             if extend:
  218.                 TClist += ofwhat
  219.             
  220.             if restrict:
  221.                 TClist = ofwhat
  222.             
  223.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  224.             
  225.             class Holder(()):
  226.                 __metaclass__ = pyclass_type
  227.                 typecode = self
  228.                 
  229.                 def __init__(self):
  230.                     self._Value = None
  231.                     self._Subcode = None
  232.  
  233.  
  234.             Holder.__name__ = 'faultcode_Holder'
  235.             self.pyclass = Holder
  236.  
  237.  
  238.     
  239.     class faultcodeEnum_Def(ZSI.TC.QName, TypeDefinition):
  240.         schema = NS.SOAP.ENV12
  241.         type = (schema, 'faultcodeEnum')
  242.         
  243.         def __init__(self, pname, **kw):
  244.             ZSI.TC.QName.__init__(self, pname, pyclass = None, **kw)
  245.             
  246.             class Holder((str,)):
  247.                 typecode = self
  248.  
  249.             self.pyclass = Holder
  250.  
  251.  
  252.     
  253.     class subcode_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  254.         schema = NS.SOAP.ENV12
  255.         type = (schema, 'subcode')
  256.         
  257.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  258.             ns = wssoapenv.subcode_Def.schema
  259.             TClist = [
  260.                 ZSI.TC.QName(pname = (ns, 'Value'), aname = '_Value', minOccurs = 1, maxOccurs = 1, nillable = False, typed = False, encoded = kw.get('encoded'))]
  261.             if not attributes:
  262.                 pass
  263.             self.attribute_typecode_dict = { }
  264.             if extend:
  265.                 TClist += ofwhat
  266.             
  267.             if restrict:
  268.                 TClist = ofwhat
  269.             
  270.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  271.             
  272.             class Holder(()):
  273.                 __metaclass__ = pyclass_type
  274.                 typecode = self
  275.                 
  276.                 def __init__(self):
  277.                     self._Value = None
  278.                     self._Subcode = None
  279.  
  280.  
  281.             Holder.__name__ = 'subcode_Holder'
  282.             self.pyclass = Holder
  283.  
  284.  
  285.     
  286.     class detail_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  287.         schema = NS.SOAP.ENV12
  288.         type = (schema, 'detail')
  289.         
  290.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  291.             ns = wssoapenv.detail_Def.schema
  292.             TClist = [
  293.                 ZSI.TC.AnyElement(aname = '_any', minOccurs = 0, maxOccurs = 'unbounded', nillable = False, processContents = 'lax')]
  294.             if not attributes:
  295.                 pass
  296.             self.attribute_typecode_dict = { }
  297.             if extend:
  298.                 TClist += ofwhat
  299.             
  300.             if restrict:
  301.                 TClist = ofwhat
  302.             else:
  303.                 self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  304.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  305.             
  306.             class Holder(()):
  307.                 __metaclass__ = pyclass_type
  308.                 typecode = self
  309.                 
  310.                 def __init__(self):
  311.                     self._any = []
  312.  
  313.  
  314.             Holder.__name__ = 'detail_Holder'
  315.             self.pyclass = Holder
  316.  
  317.  
  318.     
  319.     class NotUnderstoodType_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  320.         schema = NS.SOAP.ENV12
  321.         type = (schema, 'NotUnderstoodType')
  322.         
  323.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  324.             ns = wssoapenv.NotUnderstoodType_Def.schema
  325.             TClist = []
  326.             if not attributes:
  327.                 pass
  328.             self.attribute_typecode_dict = { }
  329.             if extend:
  330.                 TClist += ofwhat
  331.             
  332.             if restrict:
  333.                 TClist = ofwhat
  334.             else:
  335.                 self.attribute_typecode_dict['qname'] = ZSI.TC.QName()
  336.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  337.             
  338.             class Holder(()):
  339.                 __metaclass__ = pyclass_type
  340.                 typecode = self
  341.                 
  342.                 def __init__(self):
  343.                     pass
  344.  
  345.  
  346.             Holder.__name__ = 'NotUnderstoodType_Holder'
  347.             self.pyclass = Holder
  348.  
  349.  
  350.     
  351.     class SupportedEnvType_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  352.         schema = NS.SOAP.ENV12
  353.         type = (schema, 'SupportedEnvType')
  354.         
  355.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  356.             ns = wssoapenv.SupportedEnvType_Def.schema
  357.             TClist = []
  358.             if not attributes:
  359.                 pass
  360.             self.attribute_typecode_dict = { }
  361.             if extend:
  362.                 TClist += ofwhat
  363.             
  364.             if restrict:
  365.                 TClist = ofwhat
  366.             else:
  367.                 self.attribute_typecode_dict['qname'] = ZSI.TC.QName()
  368.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  369.             
  370.             class Holder(()):
  371.                 __metaclass__ = pyclass_type
  372.                 typecode = self
  373.                 
  374.                 def __init__(self):
  375.                     pass
  376.  
  377.  
  378.             Holder.__name__ = 'SupportedEnvType_Holder'
  379.             self.pyclass = Holder
  380.  
  381.  
  382.     
  383.     class UpgradeType_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  384.         schema = NS.SOAP.ENV12
  385.         type = (schema, 'UpgradeType')
  386.         
  387.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  388.             ns = wssoapenv.UpgradeType_Def.schema
  389.             TClist = [
  390.                 GTD(NS.SOAP.ENV12, 'SupportedEnvType', lazy = False)(pname = (ns, 'SupportedEnvelope'), aname = '_SupportedEnvelope', minOccurs = 1, maxOccurs = 'unbounded', nillable = False, typed = False, encoded = kw.get('encoded'))]
  391.             if not attributes:
  392.                 pass
  393.             self.attribute_typecode_dict = { }
  394.             if extend:
  395.                 TClist += ofwhat
  396.             
  397.             if restrict:
  398.                 TClist = ofwhat
  399.             
  400.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  401.             
  402.             class Holder(()):
  403.                 __metaclass__ = pyclass_type
  404.                 typecode = self
  405.                 
  406.                 def __init__(self):
  407.                     self._SupportedEnvelope = []
  408.  
  409.  
  410.             Holder.__name__ = 'UpgradeType_Holder'
  411.             self.pyclass = Holder
  412.  
  413.  
  414.     
  415.     class Envelope_Dec(ElementDeclaration):
  416.         literal = 'Envelope'
  417.         schema = NS.SOAP.ENV12
  418.         substitutionGroup = None
  419.         
  420.         def __init__(self, **kw):
  421.             kw['pname'] = (NS.SOAP.ENV12, 'Envelope')
  422.             kw['aname'] = '_Envelope'
  423.             if wssoapenv.Envelope_Def not in wssoapenv.Envelope_Dec.__bases__:
  424.                 bases = list(wssoapenv.Envelope_Dec.__bases__)
  425.                 bases.insert(0, wssoapenv.Envelope_Def)
  426.                 wssoapenv.Envelope_Dec.__bases__ = tuple(bases)
  427.             
  428.             wssoapenv.Envelope_Def.__init__(self, **kw)
  429.             if self.pyclass is not None:
  430.                 self.pyclass.__name__ = 'Envelope_Dec_Holder'
  431.             
  432.  
  433.  
  434.     
  435.     class Header_Dec(ElementDeclaration):
  436.         literal = 'Header'
  437.         schema = NS.SOAP.ENV12
  438.         substitutionGroup = None
  439.         
  440.         def __init__(self, **kw):
  441.             kw['pname'] = (NS.SOAP.ENV12, 'Header')
  442.             kw['aname'] = '_Header'
  443.             if wssoapenv.Header_Def not in wssoapenv.Header_Dec.__bases__:
  444.                 bases = list(wssoapenv.Header_Dec.__bases__)
  445.                 bases.insert(0, wssoapenv.Header_Def)
  446.                 wssoapenv.Header_Dec.__bases__ = tuple(bases)
  447.             
  448.             wssoapenv.Header_Def.__init__(self, **kw)
  449.             if self.pyclass is not None:
  450.                 self.pyclass.__name__ = 'Header_Dec_Holder'
  451.             
  452.  
  453.  
  454.     
  455.     class Body_Dec(ElementDeclaration):
  456.         literal = 'Body'
  457.         schema = NS.SOAP.ENV12
  458.         substitutionGroup = None
  459.         
  460.         def __init__(self, **kw):
  461.             kw['pname'] = (NS.SOAP.ENV12, 'Body')
  462.             kw['aname'] = '_Body'
  463.             if wssoapenv.Body_Def not in wssoapenv.Body_Dec.__bases__:
  464.                 bases = list(wssoapenv.Body_Dec.__bases__)
  465.                 bases.insert(0, wssoapenv.Body_Def)
  466.                 wssoapenv.Body_Dec.__bases__ = tuple(bases)
  467.             
  468.             wssoapenv.Body_Def.__init__(self, **kw)
  469.             if self.pyclass is not None:
  470.                 self.pyclass.__name__ = 'Body_Dec_Holder'
  471.             
  472.  
  473.  
  474.     
  475.     class Fault_Dec(ElementDeclaration):
  476.         literal = 'Fault'
  477.         schema = NS.SOAP.ENV12
  478.         substitutionGroup = None
  479.         
  480.         def __init__(self, **kw):
  481.             kw['pname'] = (NS.SOAP.ENV12, 'Fault')
  482.             kw['aname'] = '_Fault'
  483.             if wssoapenv.Fault_Def not in wssoapenv.Fault_Dec.__bases__:
  484.                 bases = list(wssoapenv.Fault_Dec.__bases__)
  485.                 bases.insert(0, wssoapenv.Fault_Def)
  486.                 wssoapenv.Fault_Dec.__bases__ = tuple(bases)
  487.             
  488.             wssoapenv.Fault_Def.__init__(self, **kw)
  489.             if self.pyclass is not None:
  490.                 self.pyclass.__name__ = 'Fault_Dec_Holder'
  491.             
  492.  
  493.  
  494.     
  495.     class NotUnderstood_Dec(ElementDeclaration):
  496.         literal = 'NotUnderstood'
  497.         schema = NS.SOAP.ENV12
  498.         substitutionGroup = None
  499.         
  500.         def __init__(self, **kw):
  501.             kw['pname'] = (NS.SOAP.ENV12, 'NotUnderstood')
  502.             kw['aname'] = '_NotUnderstood'
  503.             if wssoapenv.NotUnderstoodType_Def not in wssoapenv.NotUnderstood_Dec.__bases__:
  504.                 bases = list(wssoapenv.NotUnderstood_Dec.__bases__)
  505.                 bases.insert(0, wssoapenv.NotUnderstoodType_Def)
  506.                 wssoapenv.NotUnderstood_Dec.__bases__ = tuple(bases)
  507.             
  508.             wssoapenv.NotUnderstoodType_Def.__init__(self, **kw)
  509.             if self.pyclass is not None:
  510.                 self.pyclass.__name__ = 'NotUnderstood_Dec_Holder'
  511.             
  512.  
  513.  
  514.     
  515.     class Upgrade_Dec(ElementDeclaration):
  516.         literal = 'Upgrade'
  517.         schema = NS.SOAP.ENV12
  518.         substitutionGroup = None
  519.         
  520.         def __init__(self, **kw):
  521.             kw['pname'] = (NS.SOAP.ENV12, 'Upgrade')
  522.             kw['aname'] = '_Upgrade'
  523.             if wssoapenv.UpgradeType_Def not in wssoapenv.Upgrade_Dec.__bases__:
  524.                 bases = list(wssoapenv.Upgrade_Dec.__bases__)
  525.                 bases.insert(0, wssoapenv.UpgradeType_Def)
  526.                 wssoapenv.Upgrade_Dec.__bases__ = tuple(bases)
  527.             
  528.             wssoapenv.UpgradeType_Def.__init__(self, **kw)
  529.             if self.pyclass is not None:
  530.                 self.pyclass.__name__ = 'Upgrade_Dec_Holder'
  531.             
  532.  
  533.  
  534.  
  535.