[web2py] Re: autobuild'ing web2py models from MySQL metadata?

2017-07-17 Thread Jurgis Pralgauskis
I found, sqlalhemy has reflection/"autoload" feature per table. and sqlsoup seems even better -- it analyses all tables at once - and can generate code (for sqlalchemy). proba

[web2py] Janrain FB auth "unable to sign .. in."?

2017-07-17 Thread Jurgis Pralgauskis
Hi, I set up it today, in Janrain I require - Ask Email - Ask Verified Email in FB app I select "FB Login" product with only Yes No Web OAuth LoginEnables web based OAuth client We were temporarily unable to sign you in. We're really sorry. Here's more info if the problem co

[web2py] Re: app slow on pythonanywhere

2017-07-17 Thread Leonel Câmara
That's probably caused by sessions, file based session lock the file in the filesystem until you're done with them, you can spend some time there if you do a lot of parallel ajax requests. The first step is to call session.forget(response) as soon as you can in controllers that do not write

[web2py] Re: Sacramento-area web2py programmers?

2017-07-17 Thread Dave S
On Monday, July 17, 2017 at 3:17:18 PM UTC-7, Joe Barnhart wrote: > > Government interoperability? Isn't that an oxymoron? > In software, that's less so since the Tiger Team rebuilt the Obamacare website. There's some interesting articles about that turnaround. Not sure the current administr

[web2py] Re: Sacramento-area web2py programmers?

2017-07-17 Thread Dave S
On Monday, July 17, 2017 at 8:45:36 AM UTC-7, Alex Glaros wrote: > > who else lives around Sacramento besides Joe? > > I'm about 6-8 hours south of there, so I'm not so likely to appear at short notice. There are times when I'm visiting Roseville or the CSRM, but when I go to Grass Valley I'm li

[web2py] Re: Sacramento-area web2py programmers?

2017-07-17 Thread Joe Barnhart
Government interoperability? Isn't that an oxymoron? You mean, like use the same frequency radios and stuff? Sure, you can have me for dinner. Maybe we can scare up some others. I keep looking under rocks for more Python programmers up here. You'd think with all this 100+ weather that indo

[web2py] Re: app slow on pythonanywhere

2017-07-17 Thread Bernardo Leon
I am sorry for resurrecting this post but I am facing the same problem. Using the web2py -F profile option and then reading that dump with runsnakerun I see that fcntl.flock is where more time is spent. I have disabled migrations in the appconfig.ini and in the DAL constructor but I am still ha

[web2py] Re: how to optimize this query to get ids like [100,200,102,909] not [{'id':100,'id':200...}

2017-07-17 Thread Marcelo Huerta
El viernes, 14 de julio de 2017, 12:56:57 (UTC-3), Leonel Câmara escribió: > > The cleanest way is the little known and undocumented column: > > db(db.entities.type==5).select(db.entities.id).column() > > This needs to be added to the book... -- Resources: - http://web2py.com - http://web2py.com

[web2py] About virtual Fields

2017-07-17 Thread Anthony
Actually, self is an instance of your virtual fields class. The instance is simply updated to contain the attributes of the row object, so self.table.field refers to the same value as row.table.field (but self is not the same object as row). You should be able to add other methods to the class

Re: [web2py] Re: About virtual Fields

2017-07-17 Thread António Ramos
New style works. It was my mistake Solved Field.Virtual('total_price', lambda row: row.item.unit_price * row.item.quantity) 2017-07-17 17:57 GMT+01:00 Leonel Câmara : > What do you mean new style doesn't work? > > -- > Resources: > - http://web2py.com > - http://web2py

[web2py] Re: web2py 2.15.1 is OUT

2017-07-17 Thread Leonel Câmara
Carlos your problem was already reported: https://github.com/web2py/web2py/issues/1672 Before the next release which will have the fix the workaround is: form = SQLFORM.factory(db.tabela.campo.clone()) -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.c

[web2py] Re: web2py 2.15.1 is OUT

2017-07-17 Thread Carlos Costa
I have a problem with this version. This does not work anymore: db.define_table('tabela', Field('campo')) form = SQLFORM.factory(db.tabela.campo) I throws this: Traceback (most recent call last): File "C:\Users\carlos.costa\Downloads\web2py\gluon\restricted.py", line 219, in restrict

[web2py] Re: About virtual Fields

2017-07-17 Thread Leonel Câmara
What do you mean new style doesn't work? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Googl

[web2py] About virtual Fields

2017-07-17 Thread António Ramos
Hello i have web2py 2.14.6 using old style virtual fields (because new styles dont work) [image: Imagem inline 1] self inside total_price does not refer to the class but the row what if i need total_price to call another function from withing MyVirtualFields Class? Regards António -- Resourc

[web2py] Sacramento-area web2py programmers?

2017-07-17 Thread Alex Glaros
who else lives around Sacramento besides Joe? You're invited for dinner and talk some weekend at my house in Winters, CA (near Davis) thanks, Alex Glaros -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.g

[web2py] Re: web2py 2.15.1 is OUT

2017-07-17 Thread Leonel Câmara
Vince that seems like a bug in the way you updated web2py you seem to be using the old DAL. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received

[web2py] Re: web2py 2.15.1 is OUT

2017-07-17 Thread vince
i download from https://mdipierro.pythonanywhere.com/examples/static/web2py_src.zip on first line of changelog it's 2.15.0b1 and when i run web2py.py error as below Traceback (most recent call last): File "./web2py.py", line 21, in import gluon.widget File "/home/web2py/gluon/__init__.