Hi David,

David Douard wrote:
Hi everybody, Hi Joerg,

I am a quite advanced Python developper, and I have some expertise in writing C/C++ Python extensions. I'd like to help in the development of PyUNO (I have 2 hours of train a day I'd like to at least partially invest in PyUNO development) which seems to me at a very early stage, even if a wonderful work as already been achieved.
you are welcome.

Let me just add, that I wouldn't call myself an experienced python programmer and I am not very familar with standard python programming concepts.

I do not have knowledge in UNO, but I am trying to acquire some for now.

Here are some reflexions, questions and remarks I can make for now (OOo 2.0.0, Linux) (please forgive me if I ask here stupid things or make stupid assumptions):

- I am trying to understand the C code of the pyuno module.
I must admit that for now, I find this task not very easy (I know, being in front of a new and complex piece of code always looks a little bit like being in front of a citadel), mainly because I have very poor knowledge in UNO and the Uno C++ bridge, but also because the source code is not very documented.
agreed, but that's how it is ...

- One thing that I find disappointing is the fact that the UNO introspection capabilities are not (as far as I understand, but again, I am very new in this code) very well reflected in the pyuno module (at least the python way).
give an example.

- Is there a technical reason (but the lack of dev time) why UNO types, classes, services and interfaces are not exported in Python as types and classes (rather than instances of an obscure class like it is the case for now)?
will reply on this later, when I have more time. Stay tuned.

- Why is the (very basic) Python editor disabled in the actual 2.0 OOo release (the MacroEditor dialog file is even missing)? Even if it is very basic, it is very useful to be able to create/modify scripts directly without having to hack the OOo file. Note that I have made a very simple patch that uses Idle as python editor in OOo (just to have a colorized editor, and I have no idea for now on how to implement this feature in the MaroEditor dialog using UNO).

One remark: when I tried to use Tk in OOo, I noticed inconsistencies in the Python install that is shipped with OOo 2.0.0: the _tkinter.so module is linked against a inconsistent libtk (which is not shipped with OOo, and was not matching the version natively installed on my computer).In fact, it is linked against libtk.so.8.3 (as reported by ldd), but seems to have been compiled with tk8.4 (when I add libtk8.3 in the LD_LIBRARY_PATH, it complains about tk version mismatches. Everything works fine if I copy libtk8.4.so <http://libtk8.4.so> in OOO/program an rename it libtk8.3.so <http://libtk8.3.so> (and libtcl also)).
Yes, tkinter is not supported with the python currently shipped with OOo. Actually, this would be a great place for someone with good python knowledge to help out. The challenge is to get this run on all platforms supported by OOo within OOo buildenv and on end user systems with current OOo product requirements. Once this is running, one can also ship Idle with OOo.


My main question is (for Joerg maybe?):
what is the most important task in pyUNO development I could work on? Note that I do not have MS-like nor MacOS environment to work on, so almost all the tasks that are listed on the PyUno bridge project page are not really things I can work on?
Lots of things are to be done in the python runtime (e.g. tkinter and zip), but for this, you need access at least to the MS platforms.

One important thing to work on is to add import support for UNO packages (see last point of http://udk.openoffice.org/python/python-bridge.html#pyuno_needs_you ). There certainly needs to be done some conceptual work before implementing it. Let me know if you are interested, try to get yourself a little familar with the problem and the we can discuss how to solve it.

Bye,

Joerg


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to