From 318c6d6b836b2f9020ad45bb2f4c28659cdfd8e9 Mon Sep 17 00:00:00 2001 From: Christophe de Vienne Date: Mon, 15 Oct 2012 14:29:56 +0200 Subject: [PATCH] Add a default value to FunctionDefinition.body_type --- wsme/api.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wsme/api.py b/wsme/api.py index c092da5..4ce21d2 100644 --- a/wsme/api.py +++ b/wsme/api.py @@ -68,6 +68,9 @@ class FunctionDefinition(object): #: The function arguments (list of :class:`FunctionArgument`) self.arguments = [] + #: If the body carry the datas of a single argument, its type + self.body_type = None + #: True if this function is exposed by a protocol and not in #: the api tree, which means it is not part of the api. self.protocol_specific = False