[web2py] Re: Using single instance of LibreOffice to convert documents - is this safe?

2012-03-28 Thread DenesL
Hi Cliff, could you post more details on your interface to LibreOffice? Last time I looked at this it did not work properly (UNO bridge with OpenOffice) but from your initial post it sounds like a viable alternative now. Thanks, Denes On Tuesday, March 27, 2012 7:47:15 AM UTC-4, Cliff wrote:

[web2py] Re: Using single instance of LibreOffice to convert documents - is this safe?

2012-03-28 Thread Cliff
Most of what I know comes from this: http://lucasmanual.com/mywiki/OpenOffice Other points 1. You can start LibreOffice from a script, but you can't connect to it in that same script. That one cost me half a day. 2. LibreOffice is gonna crash. You'll need a cron job to check if LibreOffice

[web2py] Re: Using single instance of LibreOffice to convert documents - is this safe?

2012-03-28 Thread Cliff
Oh yeah, I almost forgot. I've seen a lot of posts about how headless LibreOffice needs X server running. I'm just setting up an Ubuntu server now for test purposes. I'll report back here. On Wednesday, March 28, 2012 12:53:07 PM UTC-4, Cliff wrote: Most of what I know comes from this:

[web2py] Re: Using single instance of LibreOffice to convert documents - is this safe?

2012-03-27 Thread Wikus van de Merwe
If this processing is done after the form submission you can delegate that to a background task. Having a queue of tasks end executing them one by one should solve the concurrent access problem. Check out the book section on scheduler:

[web2py] Re: Using single instance of LibreOffice to convert documents - is this safe?

2012-03-27 Thread Cliff
Thanks Wilkus. Further research this AM says Libre/Open Office does not multi-thread well. The scheduler is just what I need. On Mar 27, 6:33 am, Wikus van de Merwe dupakrop...@googlemail.com wrote: If this processing is done after the form submission you can delegate that to a background