diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-09-21 02:17:21 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-09-28 23:06:41 +0200 |
commit | 121ad074f96c7cec79a15acb5587d3fd601f3e09 (patch) | |
tree | e8511f3f8b75e21cb22a40fb4d85cc3755fc48b4 /pidl/lib/Parse/Pidl/Samba4 | |
parent | a0fa1dd6fccf21e567abb46574ef4e85b886a8ab (diff) | |
download | samba-121ad074f96c7cec79a15acb5587d3fd601f3e09.tar.gz samba-121ad074f96c7cec79a15acb5587d3fd601f3e09.tar.bz2 samba-121ad074f96c7cec79a15acb5587d3fd601f3e09.zip |
pidl/Python: remove todo handling from PythonFunction(), it's done by the caller
metze
Diffstat (limited to 'pidl/lib/Parse/Pidl/Samba4')
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba4/Python.pm | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/Python.pm b/pidl/lib/Parse/Pidl/Samba4/Python.pm index bc56f17fea..e9c9567eb2 100644 --- a/pidl/lib/Parse/Pidl/Samba4/Python.pm +++ b/pidl/lib/Parse/Pidl/Samba4/Python.pm @@ -531,22 +531,13 @@ sub PythonFunction($$$) my $fnname = "py_$fn->{NAME}"; my $docstring = $self->DocString($fn, $fn->{NAME}); - my ($insignature, $outsignature); - my ($infn, $outfn); - - if (has_property($fn, "todo")) { - unless ($docstring) { $docstring = "NULL"; } - $infn = "NULL"; - $outfn = "NULL"; + my ($infn, $insignature) = $self->PythonFunctionPackIn($fn, $fnname); + my ($outfn, $outsignature) = $self->PythonFunctionUnpackOut($fn, $fnname); + my $signature = "S.$prettyname($insignature) -> $outsignature"; + if ($docstring) { + $docstring = "\"$signature\\n\\n\"$docstring"; } else { - ($infn, $insignature) = $self->PythonFunctionPackIn($fn, $fnname); - ($outfn, $outsignature) = $self->PythonFunctionUnpackOut($fn, $fnname); - my $signature = "S.$prettyname($insignature) -> $outsignature"; - if ($docstring) { - $docstring = "\"$signature\\n\\n\"$docstring"; - } else { - $docstring = "\"$signature\""; - } + $docstring = "\"$signature\""; } return ($infn, $outfn, $docstring); |