[udk-dev] CannotRegisterImplementationException issue
Hi all i just entered this issue http://www.openoffice.org/issues/show_bug.cgi?id=107877 i don't know if udk is the right project, or framework ? the problem is that every extension needing to register a component fails if the windows user account contains accent leading to a path like C:\Documents and Settings\Benoît The User\Application Data\OpenOffice.org\3\user\uno_packages\cache\uno_packages the error is a classical CannotRegisterImplementationException this prevent all such users (quite a large number though) to install any java-based extension can someone have a look ? would i have any chance that it is nominated for the coming OOo3.2.0 if the correction is light ? thanks in advance laurent - To unsubscribe, e-mail: dev-unsubscr...@udk.openoffice.org For additional commands, e-mail: dev-h...@udk.openoffice.org
Re: [udk-dev] Description file for an extension
Hi bernard Waiting.. to be sure it is not lost, i would suggest to open an issue against the extensions or api project Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[udk-dev] COM and Named constants
Hi A user accesses OOo from VisualFoxPro through COM It works but, he can't access to nammed contants like com.sun.star.text.ControlCharacter.PARAGRAPH_BREAK What is the best way to use them ? Thanks laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] RE:PyUNO and OpenOffice installaed with Ubuntu distro
Hi The Ubuntu 7.04 distro provides a python UNO package that appears to be python 2.5 compatible (See the Provides: section below) : Original-Maintainer: Debian OpenOffice Team [EMAIL PROTECTED] I'll ask rene laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[udk-dev] Maven repositiory for OOo2.2 jar files
Hi all are the OOo2.2 jar files available on Maven repository ? using JODConverter worked with OOo2.1 but not anymore with OOo2.2 Thanks in advance Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] Suggestion for adding python import functionality (i76281)
HI Jorg, Guy, you rock !!! I'm totally for this solution the main drawback for me is Undesired Side effects: * (cannot be changed, as python does not have a classloader concept): Two independend uno packages from different developers may interfere each other, when they have name clashes in their code (e.g. same 3rd party product, but different versions). But as it solves a lot of use-cases, i'm for it Any volunteer for having a look at http://www.openoffice.org/issues/show_bug.cgi?id=27026 ? Thanks again Jorg Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[udk-dev] Next steps for pyUNO
Hi If there is some error information during building the CWS python25, please let me know. :-) i'm sure peter will let us know Can we move on an other project regarding python ? there is some points we may gather from IZ regarding pyUNO one annoying point is that we vant not put multiple python files in an extension. Putting all in one file is quite disturbing and may not work for more elaborated extensions than simple scripts an other point is to have tools to connect some external IDE so that we have one for python that can be used. May be things can be discussed regarding this. Do you think we could propose a Google summer of code on this (eg. External IDE connector for UNO Scripting) Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] A new Version of the Object Inspector is available
Hi Berend Thanks a lot for the annoucement i also forward on dev @extension Regarding code generation, would it be possible to have it in python ? in what language is the ObjectInspector written ? thanks again Laurent A new Version of the Object Inspector is available at http://api.openoffice.org/Projects/ObjectInspector/Inspector.oxt The major difference to the last version is the improved sourcecode generation for selected Uno objects. Optionally sourcecode will now also be generated for Basic and C++. This is a short description of what the Object Inspector is about: The Object Inspector is an OpenOffice.org extension that is to help the developer to inspect arbitrary Uno-Objects. As Uno provides a service-oriented API with abstract service descriptions exporting defined interfaces the capabilities of a Uno Object does not open up to the developer at design time mainly due to several „deficiencies“. The Object Inspector is still under development. ... For further information see http://wiki.services.openoffice.org/wiki/Object_Inspector -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] Re: The CWS python25 Will be setted ready for QA
Hi Peter I am back in Beijing and I will have some time to study the project pages now. Just one question at this point. Do we have a project schedule for this CWS right now? Release target is OOo2.3 (June 2007) according to EIS. thanks a lot i'll be one more time quite busy this week (i hope it will go better next week). I'll be out of office with light-email-connection i do not remember any mandatory target date and i would say when ready obviously, June or September would be very cool !!! (before next OOoCon in fact) thanks a lot for your help and let us know Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] The CWS python25 Will be setted ready for QA
Hi Liyuan, The Spring festival is coming and I will take the holiday from next week, it will last 2 weeks. I will be sorry if I can't reply for your letters in time. No problem, have nice hollidays meantime, i'll trime to define some clear goals to achieve regarding pyUno bugs and IDFE conenctions Peter, eel free to ask if any question Thansk again Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] The CWS python25 Will be setted ready for QA
HI Buildbots have been launched by manuel (thanks to him) both failed (intel ppc) here are the logs http://termite.go-oo.org/MacPort1/builds/113/ http://termite.go-oo.org/MacPort3/builds/35 Charlie, may be a review of logs could help to spot what is going wrong and provide Liyuan (ore someone else) some ideas to correct this Thanks to all Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] The CWS python25 Will be setted ready for QA
Hi Liyuan I have done all the test work on linux(SUSE), and It works well. great ! I have commited all my patch files into the CWS python25. thanks what about your windows problems ? are they solved (sorry i've been away for one week and i'm just back) I think that the CWS python25 can be setted ready for QA. Are your problem under windows solved ? I'll ask if some MacOsX volunteers want to test But we must find a qa representative for the CWS. I see peter Junge from Redflag Chinese 2000 is beeing volunteer does he work with you ? Is he aware of QA representative process ? Btw, Liyuan thanks again for your hard work and joerg thanks for your help !! Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] The CWS python25 Will be setted ready for QA
Hi Charlie, Are your problem under windows solved ? I'll ask if some MacOsX volunteers want to test I can do this. What do I have to do? thanks :) first, have a buidable m197 (X11) then apply cws python25 run tests to see if all works thanks again Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] python scripting dialog.
Hi Alexandro The main problem is that no IDE is available for Python Btw, an eclipse integration could be done i think on the basis of the eclipse plugin. With an extension, it could be fairly easy to import a python script. The files have to be put in user|share/Scripts It is a matter of copying a file anc calling some API (well, have to find the correct ones ...) but i think all is there So yes, it would be interresting to provide some bridging functions to allow to use an external IDE and deploy a python file at OOo level. For using you python script as an UNo component, the right manifest entry would be, I guess manifest:file-entry manifest:media-type=application/vnd.sun.star.uno-component;type=Python manifest:full-path=Scripts/python/PrintToWriter.py/ HTH Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] Proposal to upload Java Uno JARs to Maven repository
Hi Mirko I would appreciate some comments, especially to understand if I have the approval to go ahead and implement this idea or not. ;-) i personanly agree on the need Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] Addon with modal dialog
Hi M.Title = args.__repr__() +' '+ str(Wavelet.cnt) +'' Dlg.setModel(M) Dlg.setVisible(True) Dlg.execute() try commenting the Dlg.execute() Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] pyUNO bridge status ?
Hi Joerg yes, I am still there and will do bugfixes in general, currently there is one serious bug and a few minor bugs, which I am going to fix sometime in future ... Thanks a lot I'm happy toera that :) However, I currently can't give you much hope for future extensions, e.g. - python 2.5 - uno components that can be implemented with multiple python files yes, these are major needs. Especially the second point . Therefor it would be good to have someone else working on pyuno ... I totally agree :) Would you be able to help future volunteers to learn the pyUNO things in order to relay at term ? Thanks a lot Joerg Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[udk-dev] pyUNO bridge status ?
Hi all What is the python bridge status ? Does someone still maintain it ? Joerg ? Do you think a call for help would be needed for keeping pyUNO usable on a long run ? Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com - http://www.nuxeo.org Livre Programmation OpenOffice.org, Eyrolles 2004-2006 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] managing a zone of text
Hi Frederic I'd like to insert in a text document a zone which is completely managed by a python script. Once inserted by the script, it can be moved as a block from OO.org's interface, but cannot be modified, and the script can periodically flush updates into this zone. I've looked at the TextSection, at MasterField.User, but so far what I read does not make sense to me. If you could just give me a short explanation on what I should be looking at, it would probably help a lot (an example would be even better :-)) a textSection, why not, but difficult as it is only an overlap of text i think you need a frame, write protected (i do not rememeber if you directly, perharps, embed it in a section) http://api.openoffice.org/docs/DevelopersGuide/Text/Text.xhtml#1_3_10_2_Text_Frames pour la protection du conten http://api.openoffice.org/docs/common/ref/com/sun/star/text/BaseFrameProperties.html#ContentProtected Thanks for you help, pointers, suggestions... if you're french, you may start also dicussing ono prog@fr.openoffice.org this french book, even speaking in OOoBasic, is suitable for python languages dealing with API (with very minor adaptation) http://www.eyrolles.com/Informatique/Livre/9782212117639/livre-programmation-openoffice-org-2.php Dealing with api in english is dev@api.openoffice.org welcome on board, and happy to see new pythonists Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] Starbasic function SaveDataToFile does not check params
Hi paolo I've just found it here: http://installation.openoffice.org/source/browse/installation/wizards/source/tools/UCB.xba :) just sent the same :) This is the file where I would change a line:-) change it, make a diff open an issue and submit it against framework project perhaps should I move the discussion on the [EMAIL PROTECTED] ML ? i think thi sis related to framework projetc but discuss this as it changes potential behaviour of a shared library the question is: do we keep a bug for compatibility (and write a new function) or do we correct it by breaking potential based applications if so (my opinion), then make this clear in the chaneglog thanks again paolo Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] Re: Getting started with UDK?
Hi I'll try and make a minimal UNO build -- and of course contribute it. As far as I see it, I need the URE components + UNO tools (IDL compiler etc.). Any help on what parts of the OOo directories/projects/etc. I actually need would be greatly appreciated. you can simply download the URE and the SDK from www.openoffice.org. i do not know if relevant, but cedric wrote an HowTo http://blogs.nuxeo.com/sections/blogs/cedric_bosdonnat/2005_12_07_creating-an-ure perharps a complementary tool Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] ooextract.py python script
Hi Michele Debian 3.1 with python 2.3/2.4 (both version has the same problem) and OOo 2.0.0 it downloaded, without any modify at OOo-python internal. michele:~$ python2.3 Python 2.3.5 (#2, May 4 2005, 08:51:39) [GCC 3.3.5 (Debian 1:3.3.5-12)] on linux2 michele:~$ python2.4 Python 2.4.2 (#2, Nov 20 2005, 17:04:48) [GCC 4.0.3 2005 (prerelease) (Debian 4.0.2-4)] on linux2 are you python built with ucs = 2 flag (default) I experienced some problem with debian built-in python as it uses ucs = 4 This directly impact the utf-8/utf-16 handling Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] Getting started with UDK?
Hi Joche is there a getting started or howto documentation for the UDK, explaining what I need to install, check out, compile etc.? I can suggest you the SDK you'll find at http://api.openoffice.org/SDK/index.html it contains various tools and the developper's guide HTH Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[udk-dev] [Reminder]OpenOffice.org Developer Article Contest
Hi all The Developer Article Contest is opened for February The deadline is for the end of the month and there remain only one week to submit your articles !!! There's even money to earn thanks to our sponsors ;-) So, feel free to submit your contributions :-) I also join here Louis first annoncement Enjoy this contest Laurent '-- From Louis Suarez-Potts http://www.openoffice.org/servlets/ReadMsg?list=devmsgNo=16007 OpenOffice.org Developer Article Contest starts on February 1, 2006 === Dear developers and technical writers, OpenOffice.org, with the support of Team OpenOffice.org e.V. and extra sponsorship from Sun Microsystems, announces its first Developer Contest starting February 1, 2006. The goal of the developer contest is to generate more developer documentation. We are also interested in promoting OpenOffice.org to developers at the same time. As part of the contest, developers are asked to write articles about developer topics, such as porting, add-on and filter development (e.g. new wizards, Calc functions, chart types, etc.), bug fixing, etc. Every month a committee will pick the best article from the pool of submitted articles. Articles that did not initially win will stay in the pool, so that they can still win later. Detailed rules can be found here: http://wiki.services.openoffice.org/ wiki/OpenOffice.org_Developer_Article_Contest The developer contest team wishes all participating developers and writers good luck! We look forward to receiving the first articles. Best regards, The OpenOffice.org Developer Contest Team -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] xxx.setName() and xxx.name
Hi stefan The component, written in C++ obviously implements the getName() and setName() for this interface. So when using it in basic both calls shoud work: That you implement an interface attribute with two functions (unfortunately called getAAA and setAAA) in C++ is an implementation detail of the C++ UNO language binding. It does not affect how interface attributes are used in other UNO language bindings (and in the Basic UNO lanuage binding, interface attributes are accessed via x = y.AAA and y.AAA = x, as you already mention below). then, what to do to have also at getAAA and setAAA in OOoBasic as shown by the regular API ? declare them at idl level ? Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[udk-dev] [pyUNO]opening with XInputStream
Hi all i'm doing some tests with pyUNO I cannot figure out using the InputStream property of LoadComponentFromURL i have an OOo file, read by the legal file reading method from python and need to pass it to an OOo instance How can i define this inputStream to pass as argument What is the best way to start ? Thanks in advance Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] [pyUNO]opening with XInputStream
Hi David it may be useful to have a version that does not load the entire file in memory, with something like (untested): yes should work btw, havin the whole file in foo can be usefull though for transport consideration. It is what i need :) thanks for your proposal Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] [pyUNO]opening with XInputStream
Hi pierre Hi, the google link is a response to one of my question to the list dev@udk.openoffice.org look in the archive for subject making a copy of the current document The code you cited is from Joerg Budischewski and it worked perfectly well with OOo1.1 but I never tested it with OOo2. thanks for this precision and thanks to Joerg too I'll test it on OOo 2 but i expect it to work Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] crash and PyUNO
Hi Christian good to know. What about deploying UNO packages (finalized products)? Do they need to be distributed with the LGPL license or can it be any other license? can be of any licence even propriatary ones Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] Checking for liveness of an oood connection from python
Hi Marco My setup is as following: I've a Zope server, with 4 threads, and the same number of oood processes running. In order to avoid problems of connections which can be closed or not, I'm using a dictionary to associate a zope thread with a connection to oood, so that each thread always reuse the same connection. The problem is when oood restarts its connection because, at that time, my connection is no longer valid. i encountered the same problem using Zope/CPS the only way i found is managing the OOo instances myself and playing with the twisted framework it works now great. i will probably release this framework under free licence before the end of the year Inside zope I will use the getOODoc() to open a (file system) document inside OOo. I would like to be able to try something on the connection, so that I check if it is still open. look at archives, these points have been discussed (june IIRC) HTH Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] How to copy part of a document.
Hi pietro I need to copy the content of a Text Section from one file to another. the easiest way is to use copy/paste dispatcher see also darragh blog http://blogs.linux.ie/darragh/2005/09/22/the-great-openoffice-api-hack/ btw, if you find a cleaner way, please let us know Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[udk-dev] pyUNO addon
Hi all it seems tha(t it is not possible to put multiple .py files in an addon It fails on registering the addon because of dependancies not found (at import level) Is there any workaround ? an IZ entry Not putting all the stuff in on only file ? Where should i look in the sources to analyze this ? (won't have time util november though) Thanks in advance Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] [pyUNO]Unexpected connection closure
HI joerg the general reason for this issue is that the server process has crashed, please check this. i will double check but all the OOo session is still active when it occurs. Can it be a race condition ? You might consider using http://udk.openoffice.org/python/oood/index.html, which at least ensures, that you can continue after a crash. well, i used it but had some troubles running it out of the box (could not re-establish connection - said it was still connected) - I posted there That's why i decided to implement the same things by myself multiple OOo session running feeding a queue these sessions consume the queue the sessions an be killed and relaunched (but does not influence the problem) What i do not understand is that the conenction seems to be lost,without any crash and not on the same action (loading the same file). this appears ramdomly. Sounds like some kind of race condition. Is it possible ? BTW, joerg thanks a lot for your response I'll investigate further and probably post the code on a svn anyway Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] PyUNO 2.0 storeToURL bug ?
Hi Joerg please check, what sourceDoc is e.g. with print sourceDoc unohelper.inspect( sourceDoc ) thanks i'll do that nevertheless, I tried with pyXRay (same way as inspect) abd the UI froze I'll try as command line and whether it supports the desired interface. I think you get this message, when sourceDoc is None. SourceDoc is not None as i retreive somme info before such as supportsService method call Thanks again for your response, i'll let you know Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] PyUNO 2.0 storeToURL bug ?
Hi Pierre I previously had this kind of problem with OOo ... until I realize that my LD_LIBRARY_PATH and PYTHONPATH where not correct and that I was using the OOo1.1.x python-uno bridge with OOo2 (and thus the wrong services.rdb). Check with ldd or gcc that you are really using the correct lib with your pyuno. Thannks for your report I'll have a close look as the inspect suggested by Joerg segfaults Thinking to it, i'm pretty sure you're right in fact I had to change me python setings and boindings on my debian and this may be the problem I let you know Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] PyUNO 2.0 storeToURL bug ?
Hi i end with this error Traceback (most recent call last): File ./testMe.py, line 23, in ? sourceDoc.storeToURL(url,args) AttributeError: storeToURL as reported by pierre, the problem was located on the paths pointing to the OOo 1.1.4 and not OOo2 correcting them and the problem has gone Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[udk-dev] PyUNO 2.0 storeToURL bug ?
Hi all i simply try to load/export a file using PyUNO in OOo2 (m118) (code at the end) i end with this error Traceback (most recent call last): File ./testMe.py, line 23, in ? sourceDoc.storeToURL(url,args) AttributeError: storeToURL while all is ok with 1.1.4 the same code (or nearly) as macro works I tried alot of source files, target format (PDF, MS, nothoing ..) same result ... same also with a storeAsURL Is it a known issue ? Am I to tired ? Thanks in advance laurent ' import uno, unohelper from com.sun.star.beans import PropertyValue theSourceFile=/home/lgodard/Chronique.sxw theTargetFile=/home/lgodard/tmp/toto.pdf localContext = uno.getComponentContext() resolver = localContext.ServiceManager.createInstanceWithContext('com.sun.star.bridge.UnoUrlResolver', localContext ) ctx = resolver.resolve('uno:socket,host=%s,port=%s;urp;StarOffice.ComponentContext' % ('localhost', '2002')) smgr = ctx.ServiceManager desktop = smgr.createInstanceWithContext('com.sun.star.frame.Desktop',ctx) args = (PropertyValue('Hidden', 0, False, 0),) url = unohelper.systemPathToFileUrl(theSourceFile) sourceDoc = desktop.loadComponentFromURL(url, '_blank', 0, args) url = unohelper.systemPathToFileUrl(theTargetFile) args = (PropertyValue('FilterName', 0, 'writer_pdf_Export', 0),) sourceDoc.storeToURL(url,args) sourceDoc.close(True) -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] [pyUNO]oood problem
Hi Joerg, first of all, sorry for the silence :( the oood gets to know, that an office is not used, when there are no object references mapped anymore. In your case, there still seem to be objects mapped, though from the source code, it shouldn't be the case. I'll played around a little bit with your example, but I need to debug it at some time in future. do you have any knews ? But even if in this the interprocess connection would correctly interrupt and free the worker office, it is quite 'fragile' solution as a single leaking object reference will break your app. hum, i control the scripts, so there should be no problem, provided i end correctly my process I do not really know, what you try to achieve, * When you need an office sequentially, simple use a single office once got from the demon. * When you need to access multiple offices concurrently, try to pool the office in your client (connect only once and always use these office instances) i thought oood was designed for that - handle a pool - monitor the survivance of every instance and in my case now, the pool is size 1 but may grow * Alternativel,yau can explicitly dispose uno bridges, but you have to create interprocess bridges somewhat more complicated (to get to know the bridge, that is used), see ... However, this solution has one drawback. In case, one of the central office objects (e.g. component context, servicemanager, etc.), you cannot use them once you coincidentally reconnect to the same worker (You will get then URP-Bridge: disposed runtime exceptions). i did that and yes i obtain this message Hope this helps a bit (but I probably brought in more confusion than explanation ? ). BTW, this issue is the reason, why I mentioned in demon's document in the very beginning, that there might be problems with server clients. but that can be solved i'm sure:) just need to investigate ... and learn more and more on UNO tricks for me, the main question, is How to explicitelly close an established connection and free all reessources and connectors i used a resolver.resolve method or a plain connection/bridgefractory/aso. method and didn't find any suitable method (the best is the bridge error, the worst an OOo crash) I'll continue to investigate Thanks Joerg for your answer Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [udk-dev] [pyUNO]oood problem
Hi again, some more precision about the problem i open only one instance in oood i loop several times and try to open a connection through 2002 port the error occurs on the second connection (third if i have a pool of size 2 in oood) - Traceback (most recent call last): File ./test.py, line 73, in ? main() File ./test.py, line 55, in main desktop = ctx.ServiceManager.createInstanceWithContext(com.sun.star.frame.Desktop,ctx) --- The oood log shows Wed Jun 1 21:03:29 2005 [INFO ]: Incoming request for a worker from localhost.localdomain:33434 Wed Jun 1 21:03:29 2005 [INFO ]: {0/1} - Worker-0(8 uses) serves localhost.localdomain:33434 Wed Jun 1 21:03:29 2005 [DETAIL ]: resolving name StarOffice.ComponentContext Wed Jun 1 21:03:33 2005 [INFO ]: Incoming request for a worker from localhost.localdomain:33441 Wed Jun 1 21:03:33 2005 [SERIOUS]: {0/1} localhost.localdomain:33441 rejected, all workers are busy Wed Jun 1 21:03:35 2005 [INFO ]: localhost.localdomain:33434 disconnects from Worker-0(8 uses) (used for 6.1s) Wed Jun 1 21:03:35 2005 [INFO ]: {1/1} - Worker-0(8 uses) reenters pool--- The problem is that on the second connection, the OOo is seen as busy it reenters the pool only when the test caller script crashes did you experience such kind of problems ? any advice/place to look at ? is there a way to explicitelly disconnect from the pyUNO bridge ? the inverse of ctx = resolver.resolve(uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext) Thanks in advance Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com Nuxeo CPS http://www.nuxeo.com - http://www.cps-project.org Livre Programmation OpenOffice.org, Eyrolles 2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]