Hi, I am beginning to understand the way things go with UNO and the way pyuno is implemented.
For now, I have coded a very ugly hack to wrap UNO objects (which are <pyuno> C type instances) in python, so they explicitely have methods and properties (with doc string). It really is helpful (for me) to be able to just hit <TAB> in Ipython to see all supported methods by an object. I'll send this work later, for now, it is only a proof of concept. I am also working on the pythonscript.py file. There are several things I find... let's say strange in it, thus I am trying to make it more usable (and more pythonic). My main goal for now it to provide the standard create/rename/delete/edit functions so it is much more easy to create python scripts from OOo. My problem for now is I cannot find info on what the "invoke" method should return, and what should it actually do when called with "Creatable" for example. In that later case, I guess it must create the file (if in FileBrowseNode), put some header (like "import uno"), and return a XBrowseNode (I guess). I have done this, but it does not work (I only have a message dialog from OOo telling me it failed to create the file). Where can I find those informations (about the invoke method in the scripting framework. I have not found this info in the SDK dev guide, but i may have missed it) ? In case I am right (the invoke method should return a XBrowseNode capable object), can I just return a python instance of the FileBrowseNode class ? ShouldI explicitely make it a Any object before returning it ? Note that I had to look in the sources for the implementation of something similar to this in the ProviderBrowseNode.class file (in the scripting module) to guess that the "Creatable" should probably return a XBrowseNode. I also noticed that with "Deletable" as parameter value, the invoke method returns a "True", but I cannot make it work either. Any tip would make me go faster, and I would really appreciate. David -- David Douard [EMAIL PROTECTED] [EMAIL PROTECTED] 24, rue du Cordier 76000 Rouen France
pgp4AC0V2J3Ux.pgp
Description: PGP signature
