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: http://web2py.com/books/default/chapter/29/4#Scheduler-%28experimental%29
- [web2py] Using single instance of LibreOffice to conver... Cliff
- [web2py] Re: Using single instance of LibreOffice ... Wikus van de Merwe