On Jul 31, 8:09 am, max <dulip.withan...@gmail.com> wrote:
> for me the difficult part is to how i intgrate my xml parsing program
> to the files which i have uploaded throgh web2py.
> I want it  this way.
> 1. Upload the xml file and a zip file
>    implemented with web2py
> 2. parse the content from the xml file and insert the data into a
> mysql databse
> i can generate the sql insert statesments with my xml parser.
> interesting in knowing how i can insert this commands on the fly.
> 3. copy the content of the zip file to a specific folder other than
> upload folder
> have  written a simple file copy mechanism,  how can i execute this
> script using web2py

Can this be done via an onvalidation callback?
onvalidation = lambda form: myParser(form)
form = crud.create(db.table_with_uploadfield,
onvalidation=onvalidation)

I'm interested in ensuring this works as I'll need it to be able to
handle KMZ files & KML with Network Links inside...so pls feedback on
whether onvalidation works as-is or whether upload fields need special
handling...

F
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to