Hi i would like to download the CSV file store in the table but i have
problem with download
the code below is in the control, it gets the id from the URL and use
SQLFORM.Grid to display. in the performance file column, there is a file
link to download performance file but when i click on the file link, it
navigate me to the next page with the hashed name file in the url and say
404 not found.
def view_performance():
files = db.Pass_Configuration(request.args(0, cast=int)) or
redirect(URL('index'))
list_performance = SQLFORM.grid(db.Pass_Configuration.id == files.id,
maxtextlengths={'Pass_Configuration.%s' %ASSET_CONFIGURATION_ID : 256},
user_signature=False,
create=False,
editable=False,
links_placement = 'right',
details=False)
return locals()
this is the table definition in model
db.define_table( 'Pass_Configuration', Field('PassID',
'reference Pass', label=T('Pass'),
requires=IS_NOT_EMPTY()),
Field('TargetID',
'reference Target', label=T('Target')),
Field(ASSET_CONFIGURATION_ID,
'reference %s' %ASSET_CONFIGURATION, label=T('%s'
%ASSET_CONFIGURATION)),
Field('PerformanceFile',
type = 'upload', label=T('Performance File')),
Field('PerformanceJSON',
type = 'text', writable=False,readable=False, label=T('Performance
JSON')), redefine=True)
could you please help me to point out why i could not download the file
sinc ei am new to Web2py ?
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/web2py/4a8133d4-433d-4304-b4a8-40cef690f544%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.