[web2py] Re: Question with saving the thumbnail name on linux disk

2019-08-29 Thread Dave S
On Thursday, August 29, 2019 at 12:21:41 PM UTC-7, Rahul wrote: > > Hi Val and Dave, > > Have a look at the code below - the line foto_path=... below works but it > uploads the photos to"web2py\applications\artpicstatic\user_uploads" > folder instead of web2py\applications\artpic\static\use

[web2py] Re: Question with saving the thumbnail name on linux disk

2019-08-29 Thread Rahul
And apparently this is what is causing the issue on Linux the wrong path and the folder that does not have the permission. If the above path problem is corrected and if the file is properly saved and thumbnail created then I guess the Linux disk issue might be resolved too. Please suggest Re

[web2py] Re: Question with saving the thumbnail name on linux disk

2019-08-29 Thread Rahul
Hi Val and Dave, Have a look at the code below - the line foto_path=... below works but it uploads the photos to"web2py\applications\artpicstatic\user_uploads" folder instead of web2py\applications\artpic\static\user_uploads folder. It also generates the thumbnail file. Now if I use *fot

[web2py] Interaction between two selects

2019-08-29 Thread Константин Комков
Is there way create interaction between two selects in SQLFORM. I have these tables in *tables.py*: db.define_table( 'categories', Field('PRIORITY','integer'), migrate=False) db.define_table( 't_categories_names', Field('ID_CATEGORY','reference categories',writable=False,reada

[web2py] Reequiring login for a static file

2019-08-29 Thread Dave S
I have a file that I want authorized users to be able to download, but I'm not sure I want it in the uploads directory (so that user/download can find it). I'm thinking about putting it in static, but I realize that doesn't default to secure (well, many static files are needed by the login page