summaryrefslogtreecommitdiff
path: root/pidl/lib/Parse/Pidl/Samba4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-09-21 02:17:21 +0200
committerStefan Metzmacher <metze@samba.org>2010-09-28 23:06:41 +0200
commit121ad074f96c7cec79a15acb5587d3fd601f3e09 (patch)
treee8511f3f8b75e21cb22a40fb4d85cc3755fc48b4 /pidl/lib/Parse/Pidl/Samba4
parenta0fa1dd6fccf21e567abb46574ef4e85b886a8ab (diff)
downloadsamba-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.pm21
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);