pidl:Samba4/Python: fix mapType() => mapTypeName()
authorStefan Metzmacher <metze@samba.org>
Fri, 31 Jul 2009 08:14:09 +0000 (10:14 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 31 Jul 2009 08:16:40 +0000 (10:16 +0200)
This tries to fix commit 8eff9f9a3167eb0c2a4c00edf5a4cdbbc06c4dfd.

The problem was:

Undefined subroutine &Parse::Pidl::Samba4::Python::mapType called at /home/metze/master4/pidl/lib/Parse/Pidl/Samba4/Python.pm line 848.

Jelmer: please check this.

metze

pidl/lib/Parse/Pidl/Samba4/Python.pm

index 78a4ebdb5faa2883e27049cb4729f069ed4345cf..3baaa6765582a121a55598860d34bb0547cde588 100644 (file)
@@ -845,7 +845,7 @@ sub ConvertObjectFromPythonData($$$$$$;$)
                my $ctype_name = $self->use_type_variable($ctype);
                unless (defined ($ctype_name)) {
                        error($location, "Unable to determine origin of type `" . mapTypeName($ctype) . "'");
-                       $self->pidl("PyErr_SetString(PyExc_TypeError, \"Can not convert C Type " . mapType($ctype) . " to Python\");");
+                       $self->pidl("PyErr_SetString(PyExc_TypeError, \"Can not convert C Type " . mapTypeName($ctype) . " to Python\");");
                        return;
                }
                $self->pidl("PY_CHECK_TYPE($ctype_name, $cvar, $fail);");