Builds a parameter for the specified I{method} using the parameter definition (pdef) and the specified value (object). @param method: A method name. @type method: str @param pdef: A parameter definition. @type pdef: tuple: (I{name}, L{xsd.sxbase.Schem
(self, method, pdef, object)
| 268 | return (faultroot, p.detail) |
| 269 | |
| 270 | def mkparam(self, method, pdef, object): |
| 271 | """ |
| 272 | Builds a parameter for the specified I{method} using the parameter |
| 273 | definition (pdef) and the specified value (object). |
| 274 | @param method: A method name. |
| 275 | @type method: str |
| 276 | @param pdef: A parameter definition. |
| 277 | @type pdef: tuple: (I{name}, L{xsd.sxbase.SchemaObject}) |
| 278 | @param object: The parameter value. |
| 279 | @type object: any |
| 280 | @return: The parameter fragment. |
| 281 | @rtype: L{Element} |
| 282 | """ |
| 283 | marshaller = self.marshaller() |
| 284 | content = \ |
| 285 | Content(tag=pdef[0], |
| 286 | value=object, |
| 287 | type=pdef[1], |
| 288 | real=pdef[1].resolve()) |
| 289 | return marshaller.process(content) |
| 290 | |
| 291 | def mkheader(self, method, hdef, object): |
| 292 | """ |
no test coverage detected