[web2py] Re: Problem Pickling Session

2018-03-06 Thread Massimo Di Pierro
Hello Mark, which web2py version? usually this error happens when you have a session created with a different version of web2py. Try clear everything in your apps sessions folder. Does it solve the problem? On Tuesday, 6 March 2018 17:40:28 UTC-6, Mark Erbaugh wrote: > > I installed Web2py and

[web2py] Re: prevent multiple session at the same time

2018-03-06 Thread Massimo Di Pierro
it is possible. when a user first logs in, store a uuid in the session and write it in the database (in a new custom field in the auth_user table). When a request arrives if the uuid in the session does not match the uuid in the database call auth.logout() On Tuesday, 6 March 2018 14:59:31

[web2py] Re: Correct mySQL warning about NO_AUTO_CREATE_USER

2018-03-06 Thread Massimo Di Pierro
Are you saying it should be self.execute("SET sql_mode='NO_BACKSLASH_ESCAPES,NO_AUTO_CREATE_USER';") or should be self.execute("SET sql_mode='NO_BACKSLASH_ESCAPES';") because I believe this was fixed some time ago. On Monday, 5 March 2018 14:35:58 UTC-6, Yan Wong wrote: > > A while ago I

Re: [web2py] Re: book help

2018-03-06 Thread Massimo Di Pierro
Will do tomorrow. On Monday, 5 March 2018 09:23:29 UTC-6, Richard wrote: > > Massimo has to push the merge stuff online once it get merge... If not > update is apply to the web site of the book even if change are merge they > still are not available... > > Richard > > On Sat, Mar 3, 2018 at

Re: [web2py] _href to URL()

2018-03-06 Thread 黄祥
agree, so what is the best way to make a menu in web2py that can contain a href with it's attribute like accesskey and title? best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Where is Auth table on Database Administration?

2018-03-06 Thread Massimo Di Pierro
that happens when you redefined db=DAL(...) maybe have shadow models/db.py On Thursday, 1 March 2018 17:40:39 UTC-6, Anthony wrote: > > Don't think so. > > On Thursday, March 1, 2018 at 6:20:07 PM UTC-5, greenpoise wrote: >> >> Did anything changed that now the AUth table is not displayed on the

[web2py] Re: self.error ProgrammingError(u'ERROR', u'42P07', u'relation ..., u'1066', u'heap_create_with_catalog'

2018-03-06 Thread Massimo Di Pierro
never see that error. use postgres all the time. Can you try with a fresh db and nothing in databases... adding one table at the time? My help narrow it down. On Thursday, 1 March 2018 16:37:04 UTC-6, greenpoise wrote: > > Hello there. > > Been trying to revive an app I had and somewhere in

[web2py] Re: Table doesn't exist - in mySQL migrate

2018-03-06 Thread Massimo Di Pierro
if you use myconf.get('db.migrate') it will convert "true" and "false" to True and False. On Thursday, 1 March 2018 06:19:48 UTC-6, Dmitri Ermolaev wrote: > > !!! in appconfig I use not boolean - it need in DB! > now all work )) > > if myconf.take('db.migrate'): > migrate = *True* ## ONLY

Re: [web2py] _href to URL()

2018-03-06 Thread Massimo Di Pierro
The menu helper is staying but it is use is no longer recommended. People have not found it useful and seems to confuse users when doing custom layouts. On Monday, 26 February 2018 20:50:24 UTC-6, 黄祥 wrote: > > no worries, since massimo plan to release new web2py version, is MENU() > helper

[web2py] Re: depy2018 ?

2018-03-06 Thread Massimo Di Pierro
Good point... I should work on that. :-) On Monday, 26 February 2018 14:14:10 UTC-6, LC LC wrote: > > hi > depy2018 ? > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list

[web2py] Problem Pickling Session

2018-03-06 Thread Mark Erbaugh
I installed Web2py and Apache on a Raspberry Pi using the Ubuntu installation script. That script generated a self-signed SSL certificate. If I access the app using HTTP on port 80 and HTTPS on port 443, all is fine. This app is replacing a legacy app that needs to run HTTP on port 8080. I

[web2py] Re: I need little help about SQLForm.smartgrid and Models

2018-03-06 Thread Dave S
On Monday, March 5, 2018 at 4:19:49 AM UTC-8, Esprit Garonne wrote: > > Hi > I have last version of web2py, I dont understand why all buttons don't > showing.I have only text link. > > In my school project for city of Tours, I try to build this form with > web2py, >

[web2py] Re: SQLFORM.grid buttons

2018-03-06 Thread 黄祥
in latest version web2py use bootstrap 4 that is by default doesn't include any icon for that, think you can try some of this option: 1. try trunk or github version, it included font awesome as an icon 2. put the icon by yourself in static/css side (font awesome or glyphicons.css) and put it on

Re: [web2py] Re: Unexpected behaviour executing a query with DAL and record versioning enabled

2018-03-06 Thread Richard Vézina
Can you make a model definition with a fixture for loading the table, I will make some test with trunk and various version to determine if it a regression... Nevermind I just thought you provide that in the first email... Let me have a look at that... Richard On Mon, Mar 5, 2018 at 2:02 PM,

[web2py] prevent multiple session at the same time

2018-03-06 Thread Manuele Pesenti
Hi! Is there a way not to let users to be connected to the application with diffrerent session at the same time? We are thinking of way how to prevent and limit the account sharing so even suggestion on how to take care of devices used for connections would be appreciated. Best regards    

[web2py] SQLFORM.grid buttons

2018-03-06 Thread Esprit Garonne
Hello, Does it a bug All buttons in SQLFORM have only text link. And I am working on school project for carpool, Could someone help me to build "etapes" like this https://www.blablacar.fr/offer-seats/1 I need only how to add city or remove it for a "one trajet" Could I do it with

[web2py] Re: LOAD an routes_onerror

2018-03-06 Thread Anthony
Have you tried redirect(..., client_side=True) in your error handler? On Tuesday, March 6, 2018 at 3:38:35 AM UTC-5, Annet wrote: > > In my application I have a view containing a header, main and footer > component. > In the index function of a controller I have the following code: > >

[web2py] Re: How many concurrent requests can a web2py instance handle?

2018-03-06 Thread Anthony
On Monday, March 5, 2018 at 7:02:33 PM UTC-5, nethugo...@gmail.com wrote: > > Then one web2py instance can only handle one request, that's right? > I believe that is how Pythonanywhere works, but you might want to confirm with them. Anthony -- Resources: - http://web2py.com -

[web2py] LOAD an routes_onerror

2018-03-06 Thread 'Annet' via web2py-users
In my application I have a view containing a header, main and footer component. In the index function of a controller I have the following code: maincomponent = LOAD('home', 'base', args=[vertexID, viewtypeID, groupID, plural], ajax=True, target='main-component',

Re: [web2py] Re: How many concurrent requests can a web2py instance handle?

2018-03-06 Thread Al Ex
On Mar 6, 2018 09:02, wrote: > Then one web2py instance can only handle one request, that's right? > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > -