Ignore:
Timestamp:
Mar 12, 2010, 5:11:50 PM (15 years ago)
Author:
slederer
Message:

neue SOAP-Operation getSimpleResource implementiert

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vanHelsing/trunk/src/VanHelsing_types.py

    r837 r839  
    8484            self.pyclass = Holder
    8585
     86    class ResourceAttributeType_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
     87        schema = "http://www.dass-it.de/VanHelsing/"
     88        type = (schema, "ResourceAttributeType")
     89        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
     90            ns = ns0.ResourceAttributeType_Def.schema
     91            TClist = [ZSI.TC.String(pname="key", aname="_key", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="value", aname="_value", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
     92            self.attribute_typecode_dict = attributes or {}
     93            if extend: TClist += ofwhat
     94            if restrict: TClist = ofwhat
     95            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
     96            class Holder:
     97                __metaclass__ = pyclass_type
     98                typecode = self
     99                def __init__(self):
     100                    # pyclass
     101                    self._key = None
     102                    self._value = None
     103                    return
     104            Holder.__name__ = "ResourceAttributeType_Holder"
     105            self.pyclass = Holder
     106
     107    class getResourceType_Def(ZSI.TCcompound.ComplexType, TypeDefinition):
     108        schema = "http://www.dass-it.de/VanHelsing/"
     109        type = (schema, "getResourceType")
     110        def __init__(self, pname, ofwhat=(), attributes=None, extend=False, restrict=False, **kw):
     111            ns = ns0.getResourceType_Def.schema
     112            TClist = [ZSI.TCnumbers.Iint(pname="resId", aname="_resId", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="director", aname="_director", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
     113            self.attribute_typecode_dict = attributes or {}
     114            if extend: TClist += ofwhat
     115            if restrict: TClist = ofwhat
     116            ZSI.TCcompound.ComplexType.__init__(self, None, TClist, pname=pname, inorder=0, **kw)
     117            class Holder:
     118                __metaclass__ = pyclass_type
     119                typecode = self
     120                def __init__(self):
     121                    # pyclass
     122                    self._resId = None
     123                    self._director = None
     124                    return
     125            Holder.__name__ = "getResourceType_Holder"
     126            self.pyclass = Holder
     127
    86128    class listResources_Dec(ElementDeclaration):
    87129        literal = "listResources"
     
    114156            if self.pyclass is not None: self.pyclass.__name__ = "listResourcesResponse_Dec_Holder"
    115157
     158    class getSimpleResource_Dec(ElementDeclaration):
     159        literal = "getSimpleResource"
     160        schema = "http://www.dass-it.de/VanHelsing/"
     161        substitutionGroup = None
     162        def __init__(self, **kw):
     163            kw["pname"] = ("http://www.dass-it.de/VanHelsing/","getSimpleResource")
     164            kw["aname"] = "_getSimpleResource"
     165            if ns0.getResourceType_Def not in ns0.getSimpleResource_Dec.__bases__:
     166                bases = list(ns0.getSimpleResource_Dec.__bases__)
     167                bases.insert(0, ns0.getResourceType_Def)
     168                ns0.getSimpleResource_Dec.__bases__ = tuple(bases)
     169
     170            ns0.getResourceType_Def.__init__(self, **kw)
     171            if self.pyclass is not None: self.pyclass.__name__ = "getSimpleResource_Dec_Holder"
     172
     173    class getSimpleResourceResponse_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
     174        literal = "getSimpleResourceResponse"
     175        schema = "http://www.dass-it.de/VanHelsing/"
     176        def __init__(self, **kw):
     177            ns = ns0.getSimpleResourceResponse_Dec.schema
     178            TClist = [GTD("http://www.dass-it.de/VanHelsing/","ResourceInfo",lazy=False)(pname="resInfo", aname="_resInfo", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), GTD("http://www.dass-it.de/VanHelsing/","ResourceAttributeType",lazy=False)(pname="resAttribute", aname="_resAttribute", minOccurs=0, maxOccurs="unbounded", nillable=False, typed=False, encoded=kw.get("encoded"))]
     179            kw["pname"] = ("http://www.dass-it.de/VanHelsing/","getSimpleResourceResponse")
     180            kw["aname"] = "_getSimpleResourceResponse"
     181            self.attribute_typecode_dict = {}
     182            ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw)
     183            class Holder:
     184                __metaclass__ = pyclass_type
     185                typecode = self
     186                def __init__(self):
     187                    # pyclass
     188                    self._resInfo = None
     189                    self._resAttribute = []
     190                    return
     191            Holder.__name__ = "getSimpleResourceResponse_Holder"
     192            self.pyclass = Holder
     193
    116194# end class ns0 (tns: http://www.dass-it.de/VanHelsing/)
Note: See TracChangeset for help on using the changeset viewer.