I have created a few apps that help users to generate pdf-documents.

I create some templates and let users enter some forms, the data is 
submitted, inserted and a PDF is returned. 

As this feature became popular I now have a generic function in a web2py 
model where I pass the function list with paragraphs and heades that gets 
added to the document. A lot of time saved, so far so good!

Now here is the problem: People have started asking me if they could use my 
service from their servers. I kind of need to figure out how to convert my 
PDF-creating function to service.

I now just want some advice on where to start. I feel that letting people 
submit their txt using post_vars will be messy and wont work with special 
characters.

My thought at the moment would be to set up a soap service that receives 
the data for the document and stores it in the database. The service then 
returns a url with an uniqe key. The controller uses the key to fetch the 
data from the database and creates the PDF on the fly.

What do you think? How would you solve this task?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to