diff options
author | David Bolen <db3l.net@gmail.com> | 2013-08-09 23:35:27 -0400 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-08-13 11:34:52 +0000 |
commit | 1be8e912ba8a7d1acaf40d5a8597421c104ab39c (patch) | |
tree | a657875d328eec6f4caf2a51330a6c69851963e4 /pyuno/source/module/pyuno_impl.hxx | |
parent | 87b5ac652d9625545a62fac83bccce369976140c (diff) |
fdo#50470: Restore pyuno object method introspection in Python 3
Switch to __dir__ entry point for introspection as Python 3 dropped support
for __members__/__methods__. This is backwards compatible to Python 2.6.
Module initialization adjusted to complete type setup (needed for tp_dict)
via PyType_Ready.
Change-Id: Ie1f7b9dd4279242de89d009eb7acdc8c786dab8f
Reviewed-on: https://gerrit.libreoffice.org/5375
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'pyuno/source/module/pyuno_impl.hxx')
-rw-r--r-- | pyuno/source/module/pyuno_impl.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pyuno/source/module/pyuno_impl.hxx b/pyuno/source/module/pyuno_impl.hxx index b114b3c68bbf..1222bf30b333 100644 --- a/pyuno/source/module/pyuno_impl.hxx +++ b/pyuno/source/module/pyuno_impl.hxx @@ -188,6 +188,8 @@ typedef ::boost::unordered_map typedef ::boost::unordered_set< PyRef , PyRef::Hash , std::equal_to<PyRef> > ClassSet; +int PyUNO_initType(); + PyObject* PyUNO_new( const com::sun::star::uno::Any & targetInterface, const com::sun::star::uno::Reference<com::sun::star::lang::XSingleServiceFactory> & ssf); |