home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 February / maximum-cd-2011-02.iso / DiscContents / digsby_setup85.exe / lib / msn / SOAP / xml / wsu_oasis.pyo (.txt) < prev    next >
Encoding:
Python Compiled Bytecode  |  2010-11-24  |  6.6 KB  |  165 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_oasis:
  11.     targetNamespace = NS.OASIS.UTILITY
  12.     
  13.     class tTimestampFault_Def(ZSI.TC.QName, TypeDefinition):
  14.         schema = NS.OASIS.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 AttributedDateTime_Def(ZSI.TC.String, TypeDefinition):
  28.         schema = NS.OASIS.UTILITY
  29.         type = (schema, 'AttributedDateTime')
  30.         
  31.         def __init__(self, pname, **kw):
  32.             if getattr(self, 'attribute_typecode_dict', None) is None:
  33.                 self.attribute_typecode_dict = { }
  34.             
  35.             self.attribute_typecode_dict['Id'] = ZSI.TC.AnyType()
  36.             self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  37.             ZSI.TC.String.__init__(self, pname, **kw)
  38.             
  39.             class Holder((str,)):
  40.                 __metaclass__ = pyclass_type
  41.                 typecode = self
  42.  
  43.             self.pyclass = Holder
  44.  
  45.  
  46.     
  47.     class AttributedURI_Def(ZSI.TC.URI, TypeDefinition):
  48.         schema = NS.OASIS.UTILITY
  49.         type = (schema, 'AttributedURI')
  50.         
  51.         def __init__(self, pname, **kw):
  52.             if getattr(self, 'attribute_typecode_dict', None) is None:
  53.                 self.attribute_typecode_dict = { }
  54.             
  55.             self.attribute_typecode_dict['Id'] = ZSI.TC.AnyType()
  56.             self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  57.             ZSI.TC.URI.__init__(self, pname, **kw)
  58.             
  59.             class Holder((str,)):
  60.                 __metaclass__ = pyclass_type
  61.                 typecode = self
  62.  
  63.             self.pyclass = Holder
  64.  
  65.  
  66.     
  67.     class TimestampType_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
  68.         schema = NS.OASIS.UTILITY
  69.         type = (schema, 'TimestampType')
  70.         
  71.         def __init__(self, pname, ofwhat = (), attributes = None, extend = False, restrict = False, **kw):
  72.             ns = wsu_oasis.TimestampType_Def.schema
  73.             TClist = [
  74.                 GED(NS.OASIS.UTILITY, 'Created', lazy = False, isref = True)(minOccurs = 0, maxOccurs = 1, nillable = False, encoded = kw.get('encoded')),
  75.                 GED(NS.OASIS.UTILITY, 'Expires', lazy = False, isref = True)(minOccurs = 0, maxOccurs = 1, nillable = False, encoded = kw.get('encoded')),
  76.                 ZSI.TC.AnyElement(aname = '_any', minOccurs = 0, maxOccurs = 'unbounded', nillable = False, processContents = 'lax')]
  77.             if not attributes:
  78.                 pass
  79.             self.attribute_typecode_dict = { }
  80.             if extend:
  81.                 TClist += ofwhat
  82.             
  83.             if restrict:
  84.                 TClist = ofwhat
  85.             else:
  86.                 self.attribute_typecode_dict['Id'] = ZSI.TC.AnyType()
  87.                 self.attribute_typecode_dict[(NS.SCHEMA.BASE, 'anyAttribute')] = ZSI.TC.AnyElement()
  88.             ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname = pname, inorder = 0, **kw)
  89.             
  90.             class Holder(()):
  91.                 __metaclass__ = pyclass_type
  92.                 typecode = self
  93.                 
  94.                 def __init__(self):
  95.                     self._Created = None
  96.                     self._Expires = None
  97.                     self._any = []
  98.  
  99.  
  100.             Holder.__name__ = 'TimestampType_Holder'
  101.             self.pyclass = Holder
  102.  
  103.  
  104.     
  105.     class Timestamp_Dec(ElementDeclaration):
  106.         literal = 'Timestamp'
  107.         schema = NS.OASIS.UTILITY
  108.         substitutionGroup = None
  109.         
  110.         def __init__(self, **kw):
  111.             kw['pname'] = (NS.OASIS.UTILITY, 'Timestamp')
  112.             kw['aname'] = '_Timestamp'
  113.             if wsu_oasis.TimestampType_Def not in wsu_oasis.Timestamp_Dec.__bases__:
  114.                 bases = list(wsu_oasis.Timestamp_Dec.__bases__)
  115.                 bases.insert(0, wsu_oasis.TimestampType_Def)
  116.                 wsu_oasis.Timestamp_Dec.__bases__ = tuple(bases)
  117.             
  118.             wsu_oasis.TimestampType_Def.__init__(self, **kw)
  119.             if self.pyclass is not None:
  120.                 self.pyclass.__name__ = 'Timestamp_Dec_Holder'
  121.             
  122.  
  123.  
  124.     
  125.     class Expires_Dec(ElementDeclaration):
  126.         literal = 'Expires'
  127.         schema = NS.OASIS.UTILITY
  128.         substitutionGroup = None
  129.         
  130.         def __init__(self, **kw):
  131.             kw['pname'] = (NS.OASIS.UTILITY, 'Expires')
  132.             kw['aname'] = '_Expires'
  133.             if wsu_oasis.AttributedDateTime_Def not in wsu_oasis.Expires_Dec.__bases__:
  134.                 bases = list(wsu_oasis.Expires_Dec.__bases__)
  135.                 bases.insert(0, wsu_oasis.AttributedDateTime_Def)
  136.                 wsu_oasis.Expires_Dec.__bases__ = tuple(bases)
  137.             
  138.             wsu_oasis.AttributedDateTime_Def.__init__(self, **kw)
  139.             if self.pyclass is not None:
  140.                 self.pyclass.__name__ = 'Expires_Dec_Holder'
  141.             
  142.  
  143.  
  144.     
  145.     class Created_Dec(ElementDeclaration):
  146.         literal = 'Created'
  147.         schema = NS.OASIS.UTILITY
  148.         substitutionGroup = None
  149.         
  150.         def __init__(self, **kw):
  151.             kw['pname'] = (NS.OASIS.UTILITY, 'Created')
  152.             kw['aname'] = '_Created'
  153.             if wsu_oasis.AttributedDateTime_Def not in wsu_oasis.Created_Dec.__bases__:
  154.                 bases = list(wsu_oasis.Created_Dec.__bases__)
  155.                 bases.insert(0, wsu_oasis.AttributedDateTime_Def)
  156.                 wsu_oasis.Created_Dec.__bases__ = tuple(bases)
  157.             
  158.             wsu_oasis.AttributedDateTime_Def.__init__(self, **kw)
  159.             if self.pyclass is not None:
  160.                 self.pyclass.__name__ = 'Created_Dec_Holder'
  161.             
  162.  
  163.  
  164.  
  165.