[web2py] Update database (multiple tables) with CSV in sequence

2017-10-21 Thread 'Matthew J Watts' via web2py-users
Hi all I'm pretty new to web2py and web development in general. I'm really stuck with something and haven't been able to find a tutorial which can help me out etc. I was wondering if some one could point me in the right direction. I have three tables. I want to upload a csv, and update each ta

[web2py] websocket_messaging incompatible in web2py 2.15.4?

2017-10-21 Thread Martin Weissenboeck
Some months ago I have written a test application for gluon/contrib/websocket_messaging.py and it worked very well. Now (after an update to 2.15.4) I tried it again and I got some errors. I started with python /home/www-data/web2py/gluon/contrib/websocket_messaging.py -k mykey -p -s /etc/ngi

[web2py] Re: Increment the value of a field + 1 or how to auto-increment a field value ?

2017-10-21 Thread Rudy
Hi Massimo, I have a multi tenant invoicing system serving multiple companies, all invoices from different companies are stored in a single table flagged with company_id. I would like each company being able to have their own invoice_number starting from 1 and increment up. db.define_table('in

[web2py] Re: Can i share a file with others and dont compromise my app security?

2017-10-21 Thread Bernhard Radermacher
I subscribe to "obscurity is no security". That means that the security of your app should not depend in ANY way on 'cryptic' URLs (exception might be a one-time generated URL, and even that is questionable). If you set up you app to check for authorization, permission, membership, then there

[web2py] Re: Custom maintenance message

2017-10-21 Thread 黄祥
learn from anthony respond in stackoverflow it is in routes.py in web2py root folder not in app root folder (tested using routes.py in app root folder is not work, no error occured but the result is not expected) *e.g. *(replace web2pyapp with your web2py application name) cd ~/web2py/ cp example