home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 October / maximum-cd-2011-10.iso / DiscContents / digsby_setup.exe / lib / msn / SOAP / xml / wsc.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2011-06-22  |  11.2 KB  |  276 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 wsc:
  11.     targetNamespace = NS.WSTRUST200502.CONV
  12.     
  13.     class SecurityContextTokenType_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  14.         schema = NS.WSTRUST200502.CONV
  15.         type = (schema, 'SecurityContextTokenType')
  16.         
  17.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  18.             ns = wsc.SecurityContextTokenType_Def.schema
  19.             TClist = [
  20.                 ZSI.TC.AnyElement(aname = '_any', minOccurs = 0, maxOccurs = 'unbounded', nillable = False, processContents = 'lax')]
  21.             if not attributes:
  22.                 pass
  23.             self.attribute_typecode_dict = { }
  24.             if extend:
  25.                 TClist += ofwhat
  26.             
  27.             if restrict:
  28.                 TClist = ofwhat
  29.             else:
  30.                 self.attribute_typecode_dict[(NS.OASIS.UTILITY, 'Id')] = ZSI.TC.AnyType()
  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._any = []
  40.  
  41.  
  42.             Holder.__name__ = 'SecurityContextTokenType_Holder'
  43.             self.pyclass = Holder
  44.  
  45.  
  46.     
  47.     class DerivedKeyTokenType_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  48.         schema = NS.WSTRUST200502.CONV
  49.         type = (schema, 'DerivedKeyTokenType')
  50.         
  51.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  52.             ns = wsc.DerivedKeyTokenType_Def.schema
  53.             TClist = [
  54.                 GED(NS.OASIS.WSSE, 'SecurityTokenReference', lazy = False, isref = True)(minOccurs = 0, maxOccurs = 1, nillable = False, encoded = kw.get('encoded')),
  55.                 GTD(NS.WSTRUST200502.CONV, 'PropertiesType', lazy = False)(pname = (ns, 'Properties'), aname = '_Properties', minOccurs = 0, maxOccurs = 1, nillable = False, typed = False, encoded = kw.get('encoded')),
  56.                 ZSI.TCnumbers.IunsignedLong(pname = (ns, 'Generation'), aname = '_Generation', minOccurs = 0, maxOccurs = 1, nillable = False, typed = False, encoded = kw.get('encoded')),
  57.                 ZSI.TCnumbers.IunsignedLong(pname = (ns, 'Offset'), aname = '_Offset', minOccurs = 0, maxOccurs = 1, nillable = False, typed = False, encoded = kw.get('encoded')),
  58.                 ZSI.TCnumbers.IunsignedLong(pname = (ns, 'Length'), aname = '_Length', minOccurs = 0, maxOccurs = 1, nillable = False, typed = False, encoded = kw.get('encoded')),
  59.                 GED(NS.WSTRUST200502.CONV, 'Label', lazy = False, isref = True)(minOccurs = 0, maxOccurs = 1, nillable = False, encoded = kw.get('encoded')),
  60.                 GED(NS.WSTRUST200502.CONV, 'Nonce', lazy = False, isref = True)(minOccurs = 0, maxOccurs = 1, nillable = False, encoded = kw.get('encoded'))]
  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.OASIS.UTILITY, 'Id')] = ZSI.TC.AnyType()
  71.                 self.attribute_typecode_dict['Algorithm'] = ZSI.TC.URI()
  72.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  73.             
  74.             class Holder(()):
  75.                 __metaclass__ = pyclass_type
  76.                 typecode = self
  77.                 
  78.                 def __init__(self):
  79.                     self._SecurityTokenReference = None
  80.                     self._Properties = None
  81.                     self._Generation = None
  82.                     self._Offset = None
  83.                     self._Length = None
  84.                     self._Label = None
  85.                     self._Nonce = None
  86.  
  87.  
  88.             Holder.__name__ = 'DerivedKeyTokenType_Holder'
  89.             self.pyclass = Holder
  90.  
  91.  
  92.     
  93.     class PropertiesType_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  94.         schema = NS.WSTRUST200502.CONV
  95.         type = (schema, 'PropertiesType')
  96.         
  97.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  98.             ns = wsc.PropertiesType_Def.schema
  99.             TClist = [
  100.                 ZSI.TC.AnyElement(aname = '_any', minOccurs = 0, maxOccurs = 'unbounded', nillable = False, processContents = 'lax')]
  101.             if not attributes:
  102.                 pass
  103.             self.attribute_typecode_dict = { }
  104.             if extend:
  105.                 TClist += ofwhat
  106.             
  107.             if restrict:
  108.                 TClist = ofwhat
  109.             
  110.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  111.             
  112.             class Holder(()):
  113.                 __metaclass__ = pyclass_type
  114.                 typecode = self
  115.                 
  116.                 def __init__(self):
  117.                     self._any = []
  118.  
  119.  
  120.             Holder.__name__ = 'PropertiesType_Holder'
  121.             self.pyclass = Holder
  122.  
  123.  
  124.     
  125.     class FaultCodeType_Def(ZSI.TC.QName, TypeDefinition):
  126.         schema = NS.WSTRUST200502.CONV
  127.         type = (schema, 'FaultCodeType')
  128.         
  129.         def __init__(self, pname, **kw):
  130.             ZSI.TC.QName.__init__(self, pname, pyclass = None, **kw)
  131.             
  132.             class Holder((str,)):
  133.                 typecode = self
  134.  
  135.             self.pyclass = Holder
  136.  
  137.  
  138.     
  139.     class FaultCodeOpenEnumType_Def(ZSI.TC.Union, TypeDefinition):
  140.         memberTypes = [
  141.             (NS.WSTRUST200502.CONV, u'FaultCodeType'),
  142.             (NS.SCHEMA.BASE, u'QName')]
  143.         schema = NS.WSTRUST200502.CONV
  144.         type = (schema, 'FaultCodeOpenEnumType')
  145.         
  146.         def __init__(self, pname, **kw):
  147.             ZSI.TC.Union.__init__(self, pname, **kw)
  148.  
  149.  
  150.     
  151.     class SecurityContextToken_Dec(ElementDeclaration):
  152.         literal = 'SecurityContextToken'
  153.         schema = NS.WSTRUST200502.CONV
  154.         substitutionGroup = None
  155.         
  156.         def __init__(self, **kw):
  157.             kw['pname'] = (NS.WSTRUST200502.CONV, 'SecurityContextToken')
  158.             kw['aname'] = '_SecurityContextToken'
  159.             if wsc.SecurityContextTokenType_Def not in wsc.SecurityContextToken_Dec.__bases__:
  160.                 bases = list(wsc.SecurityContextToken_Dec.__bases__)
  161.                 bases.insert(0, wsc.SecurityContextTokenType_Def)
  162.                 wsc.SecurityContextToken_Dec.__bases__ = tuple(bases)
  163.             
  164.             wsc.SecurityContextTokenType_Def.__init__(self, **kw)
  165.             if self.pyclass is not None:
  166.                 self.pyclass.__name__ = 'SecurityContextToken_Dec_Holder'
  167.             
  168.  
  169.  
  170.     
  171.     class Identifier_Dec(ZSI.TC.URI, ElementDeclaration):
  172.         literal = 'Identifier'
  173.         schema = NS.WSTRUST200502.CONV
  174.         
  175.         def __init__(self, **kw):
  176.             kw['pname'] = (NS.WSTRUST200502.CONV, 'Identifier')
  177.             kw['aname'] = '_Identifier'
  178.             
  179.             class IHolder((str,)):
  180.                 typecode = self
  181.  
  182.             kw['pyclass'] = IHolder
  183.             IHolder.__name__ = '_Identifier_immutable_holder'
  184.             ZSI.TC.URI.__init__(self, **kw)
  185.  
  186.  
  187.     
  188.     class Instance_Dec(ZSI.TC.String, ElementDeclaration):
  189.         literal = 'Instance'
  190.         schema = NS.WSTRUST200502.CONV
  191.         
  192.         def __init__(self, **kw):
  193.             kw['pname'] = (NS.WSTRUST200502.CONV, 'Instance')
  194.             kw['aname'] = '_Instance'
  195.             
  196.             class IHolder((str,)):
  197.                 typecode = self
  198.  
  199.             kw['pyclass'] = IHolder
  200.             IHolder.__name__ = '_Instance_immutable_holder'
  201.             ZSI.TC.String.__init__(self, **kw)
  202.  
  203.  
  204.     
  205.     class DerivedKeyToken_Dec(ElementDeclaration):
  206.         literal = 'DerivedKeyToken'
  207.         schema = NS.WSTRUST200502.CONV
  208.         substitutionGroup = None
  209.         
  210.         def __init__(self, **kw):
  211.             kw['pname'] = (NS.WSTRUST200502.CONV, 'DerivedKeyToken')
  212.             kw['aname'] = '_DerivedKeyToken'
  213.             if wsc.DerivedKeyTokenType_Def not in wsc.DerivedKeyToken_Dec.__bases__:
  214.                 bases = list(wsc.DerivedKeyToken_Dec.__bases__)
  215.                 bases.insert(0, wsc.DerivedKeyTokenType_Def)
  216.                 wsc.DerivedKeyToken_Dec.__bases__ = tuple(bases)
  217.             
  218.             wsc.DerivedKeyTokenType_Def.__init__(self, **kw)
  219.             if self.pyclass is not None:
  220.                 self.pyclass.__name__ = 'DerivedKeyToken_Dec_Holder'
  221.             
  222.  
  223.  
  224.     
  225.     class Name_Dec(ZSI.TC.URI, ElementDeclaration):
  226.         literal = 'Name'
  227.         schema = NS.WSTRUST200502.CONV
  228.         
  229.         def __init__(self, **kw):
  230.             kw['pname'] = (NS.WSTRUST200502.CONV, 'Name')
  231.             kw['aname'] = '_Name'
  232.             
  233.             class IHolder((str,)):
  234.                 typecode = self
  235.  
  236.             kw['pyclass'] = IHolder
  237.             IHolder.__name__ = '_Name_immutable_holder'
  238.             ZSI.TC.URI.__init__(self, **kw)
  239.  
  240.  
  241.     
  242.     class Label_Dec(ZSI.TC.String, ElementDeclaration):
  243.         literal = 'Label'
  244.         schema = NS.WSTRUST200502.CONV
  245.         
  246.         def __init__(self, **kw):
  247.             kw['pname'] = (NS.WSTRUST200502.CONV, 'Label')
  248.             kw['aname'] = '_Label'
  249.             
  250.             class IHolder((str,)):
  251.                 typecode = self
  252.  
  253.             kw['pyclass'] = IHolder
  254.             IHolder.__name__ = '_Label_immutable_holder'
  255.             ZSI.TC.String.__init__(self, **kw)
  256.  
  257.  
  258.     
  259.     class Nonce_Dec(ZSI.TC.Base64String, ElementDeclaration):
  260.         literal = 'Nonce'
  261.         schema = NS.WSTRUST200502.CONV
  262.         
  263.         def __init__(self, **kw):
  264.             kw['pname'] = (NS.WSTRUST200502.CONV, 'Nonce')
  265.             kw['aname'] = '_Nonce'
  266.             
  267.             class IHolder((str,)):
  268.                 typecode = self
  269.  
  270.             kw['pyclass'] = IHolder
  271.             IHolder.__name__ = '_Nonce_immutable_holder'
  272.             ZSI.TC.Base64String.__init__(self, **kw)
  273.  
  274.  
  275.  
  276.