Hello,

I am creating an SQLFORM which asks user to upload their files.

this is the table defination:
db.define_table('scripts',
 Field('script', 'upload',requires=IS_NOT_EMPTY(error_message='Upload some 
file'),
 Field('category',requires=IS_IN_SET(['Ruby', 'Python', 'Linux'])),
 format='%(name)s')

and this is the controller function:
def upload_script():
    form = SQLFORM(db.scripts)
    if form.process().accepted:
        redirect(URL('upload_script'))
    return locals()

Now i want users to give an option that they should be able to open 
uploaded files in some editor and should be able to make changes in the 
content of file and those changes should be reflected on original file 
after saving the file.

How can we do that??

Let me make it clear again that i am not talking about editing the form, i 
want to edit the file data and that also in some webpage.

Thanks.

-- 
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/d/optout.

Reply via email to