diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-04-08 00:13:09 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-04-08 00:13:09 +0200 |
commit | a3bfabefd71c88a651ae153ce6482313d7f9e405 (patch) | |
tree | fbf2c707bf3b04e9bd53b29a00256cbac7f375eb /source4 | |
parent | a057c7369ae756f67aed107613dec69008c0e78f (diff) | |
download | samba-a3bfabefd71c88a651ae153ce6482313d7f9e405.tar.gz samba-a3bfabefd71c88a651ae153ce6482313d7f9e405.tar.bz2 samba-a3bfabefd71c88a651ae153ce6482313d7f9e405.zip |
Set tp_flags for Python types.
(This used to be commit f214206a36d8822e485f6f076c9f3f0bfc1e1df4)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/pidl/lib/Parse/Pidl/Samba4/Python.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/pidl/lib/Parse/Pidl/Samba4/Python.pm b/source4/pidl/lib/Parse/Pidl/Samba4/Python.pm index 26ef6ae0c9..2191bc0fbb 100644 --- a/source4/pidl/lib/Parse/Pidl/Samba4/Python.pm +++ b/source4/pidl/lib/Parse/Pidl/Samba4/Python.pm @@ -237,6 +237,7 @@ sub PythonStruct($$$$) $self->pidl(".tp_setattr = py_$name\_setattr,"); $self->pidl(".tp_repr = py_talloc_default_repr,"); $self->pidl(".tp_doc = $docstring,"); + $self->pidl(".tp_flags = Py_TPFLAGS_DEFAULT,"); $self->deindent; $self->pidl("};"); @@ -532,6 +533,7 @@ sub Interface($$$) $self->pidl(".tp_dealloc = interface_$interface->{NAME}_dealloc,"); $self->pidl(".tp_getattr = interface_$interface->{NAME}_getattr,"); $self->pidl(".tp_doc = $docstring,"); + $self->pidl(".tp_flags = Py_TPFLAGS_DEFAULT,"); $self->deindent; $self->pidl("};"); |