Apache OpenOffice (AOO) Bugzilla – Issue 86974
more pythonic officehelper.py
Last modified: 2013-07-30 02:39:44 UTC
Current implementation (as of 2.2) of the officehelper.py module is quite un-pythonic. Enclosed please find a enhanced version. Major changes are: - removed all-surrounding try-except. If this code section fails for another reason than "NoConnectException" the normal Python exception mechanism is used. - simplified string-join - simplified loop (as requested in the code :-) - more pythonic coding style
Created attachment 52061 [details] more pythonic officehelper.py
reassign.
Hi, the problem of your (certainly nicer) code is, that it is an incompatible change (meaning that other exceptions than BootstrapException can now leave the function which may break existing code .... ). All functions once made public API can only be changed compatible. So probably the right thing is to take your code as bootstrap2() and deprecate bootstrap(). Ok for you ? (However, I don't know atm when I will setup a next pyuno CWS). Bye, Joerg
I'm adding this comment to all open issues with Issue Type == PATCH. We have 220 such issues, many of them quite old. I apologize for that. We need your help in prioritizing which patches should be integrated into our next release, Apache OpenOffice 4.0. If you have submitted a patch and think it is applicable for AOO 4.0, please respond with a comment to let us know. On the other hand, if the patch is no longer relevant, please let us know that as well. If you have any general questions or want to discuss this further, please send a note to our dev mailing list: dev@openoffice.apache.org Thanks! -Rob
Reset assignee on issues not touched by assignee in more than 1000 days.