[web2py] response.view html file from static

2012-04-26 Thread CtrlSoft
i have a file located under static folder that i want to return as view i tried this: def myfunction(): response.view = 'static/tinymce/jscripts/tiny_mce/plugins/files.html' return dict() but doesnt workt any ideas?

Re: [web2py] response.view html file from static

2012-04-26 Thread Bruno Rocha
if you are on linux, try: def myfunction(): response.view = *'../* static/tinymce/jscripts/tiny_mce/plugins/files.html' return dict() response.render uses /view as root folder, so you can navigate from there. On Thu, Apr 26, 2012 at 4:53 PM, CtrlSoft zerooo...@gmail.com wrote: def

Re: [web2py] response.view html file from static

2012-04-26 Thread Anthony
Good point. I think that should work on Windows as well. Anthony On Thursday, April 26, 2012 4:32:45 PM UTC-4, rochacbruno wrote: if you are on linux, try: def myfunction(): response.view = *'../* static/tinymce/jscripts/tiny_mce/plugins/files.html' return dict()

Re: [web2py] response.view html file from static

2012-04-26 Thread CtrlSoft
thanks. works also on windows, http://agsystem.md/ On Thursday, April 26, 2012 11:32:45 PM UTC+3, rochacbruno wrote: if you are on linux, try: def myfunction(): response.view = *'../* static/tinymce/jscripts/tiny_mce/plugins/files.html' return dict()