When I say put the in uploads/ I do not mean you should upload the files. You should just copy them there preserving the subfolder structure. It will not break relative cross-references. When they are in uploads you modify the download action to block some files.
On Dec 23, 12:55 am, Johann Spies <johann.sp...@gmail.com> wrote: > 2009/12/22 mdipierro <mdipie...@cs.depaul.edu>: > > > You can use routes but the rule is: > > - if it is public goes in static > > - if it requires access control goes in uploads > > Thanks for the replies. > > If you don't mind, I would like advice on the following situation: I > need restricted access to parts of the data on my website. How would > you handle for example html-documentation written using sphinx I want > access to the documentation only available from a particular page in > the wiki. > If I upload the files web2py don't preserve their relations to each > other neither present them as html-files in this. At the moment I > have the whole bunch of interrelated html-files in a subdirectory in > static. > > I have tried the following routes.py which does not work or makes no > difference: > > routes_in = ( ('/init/static/proxydoc/index.html', '/init/default/')) > routes_out= () > > I tried a more specific route rewrite but got so many errors that I gave up. > I most probably don't understand how to use routes in this case. > Please help me to think correctly regarding this problem. > > Regards > Johann -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@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.