Re: [web2py] Re: why the slow sqlform

2018-06-16 Thread Maurice Waka
Thanks. I'll review On Sat, 16 Jun 2018, 22:28 Leonel Câmara wrote: > I don't see anything there that would make things terribly slow. It's > probably related to some other code we aren't seeing (maybe even in the > models). > > -- > Resources: > - http://web2py.com > - http://web2py.com/book

[web2py] Re: why the slow sqlform

2018-06-16 Thread Leonel Câmara
I don't see anything there that would make things terribly slow. It's probably related to some other code we aren't seeing (maybe even in the models). -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: SQLFORM.grid Add multiple items in links

2018-06-16 Thread Jim Steil
Anthony, as always, thanks for correcting me Jim On Sat, Jun 16, 2018, 9:35 AM Anthony wrote: > On Friday, June 15, 2018 at 12:57:54 PM UTC-4, watr wrote: >> >> Here is my links code: >> >> links = [ >> dict(header='Balance', body=lambda row: row.po.amount - >>

[web2py] Re: SQLFORM.grid Add multiple items in links

2018-06-16 Thread Anthony
On Friday, June 15, 2018 at 12:57:54 PM UTC-4, watr wrote: > > Here is my links code: > > links = [ > dict(header='Balance', body=lambda row: row.po.amount - > row.invoice_items.amount_pretax), > dict(header='Controls', body=[ > lambda row:

[web2py] Re: SQLFORM.grid Add multiple items in links

2018-06-16 Thread Anthony
On Saturday, June 16, 2018 at 10:03:37 AM UTC-4, Jim S wrote: > > Here is a sample we have where we add 'links'. > > links = [lambda row: A(XML(' Edit'), >_href=URL('sample', 'sample', vars={'sample_id': > row.sample.id}, user_signature=True), >

[web2py] Re: Other login methods

2018-06-16 Thread Anthony
Seems like a problem with the provider. On Saturday, June 16, 2018 at 8:09:15 AM UTC-4, 黄祥 wrote: > > $ python > Python 2.7.15 |Anaconda, Inc.| > >>> import smtplib > >>> smtplib.SMTP('mail.stifix.com', 25) > Traceback (most recent call last): > File "", line 1, in > File >

[web2py] Re: SQLFORM.grid Add multiple items in links

2018-06-16 Thread Jim S
Here is a sample we have where we add 'links'. links = [lambda row: A(XML(' Edit'), _href=URL('sample', 'sample', vars={'sample_id': row.sample.id}, user_signature=True), _class='btn btn-default'), lambda row: A(XML(' Reports'),

[web2py] Re: Other login methods

2018-06-16 Thread 黄祥
$ python Python 2.7.15 |Anaconda, Inc.| >>> import smtplib >>> smtplib.SMTP('mail.stifix.com', 25) Traceback (most recent call last): File "", line 1, in File "/Users/sugizo/miniconda3/envs/python2_prod/lib/python2.7/smtplib.py" , line 256, in __init__ (code, msg) = self.connect(host,

[web2py] Re: Other login methods

2018-06-16 Thread Anthony
It's failing at smtplib.SMTP(host, port), so maybe try that directly in a Python shell to confirm you get the same error there. Anthony On Friday, June 15, 2018 at 9:39:56 PM UTC-4, 黄祥 wrote: > > ldap_auth() issue done at : https://github.com/web2py/web2py/issues/1955 > for email_auth(), think