Re: [web2py] Re: LDAP Authentication never work

2018-06-15 Thread 黄祥
it should work (ignore configuration on previous message), pls follow this thread discussion for detail or read the book: ref: https://groups.google.com/forum/#!topic/web2py/tWa5BPDMglk http://web2py.com/books/default/chapter/29/09/access-control#Other-login-methods-and-login-forms best regards,

[web2py] Re: Other login methods

2018-06-15 Thread 黄祥
ldap_auth() issue done at : https://github.com/web2py/web2py/issues/1955 for email_auth(), think should work because what i've seen in cpanel they provide the configuraiton for email client: # Outgoing Server: mail.stifix.com, SMTP Port: 25 # Outgoing Server: mail.stifix.com, SMTP Port: 465 will

[web2py] why the slow sqlform

2018-06-15 Thread Maurice Waka
My code shown below: Controller: def views(): row= db(db.post.author== auth.user.id).select(db.post.id, db.post. message, orderby=~db.post.id, limitby=(0,1)).first() messages = row.message if row else None morecode... View.html: {{for reply in replies:}}

[web2py] Re: Geolocation: how to execute js script (navigator.geolocation, ecc) before controller code?

2018-06-15 Thread Dave S
On Friday, June 15, 2018 at 6:35:48 AM UTC-7, Fabio Ceccarani wrote: > > Ih all, > > my site do do these operation: > > > 1. geolocalize user in view using html5 navigator.geolocation (classic js > code) > > > 2. past latitude and longitude to controller with: > ajax('{{=URL("default","myc

[web2py] Re: Other login methods

2018-06-15 Thread Anthony
> > test ping from another terminal return normal > $ ping mail.stifix.com > PING mail.stifix.com (104.24.99.40): 56 data bytes > 64 bytes from 104.24.99.40: icmp_seq=0 ttl=56 time=32.708 ms > 64 bytes from 104.24.99.40: icmp_seq=1 ttl=56 time=25.990 ms > ^C > --- mail.stifix.com ping statistics -

[web2py] SQLFORM.grid Add multiple items in links

2018-06-15 Thread watr
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: A('Invoices',_class='button btn btn-default',_href=URL('invoice', 'list', args=['commitmen

[web2py] Re: Other login methods

2018-06-15 Thread 黄祥
yes, you are right previous message i rename my domain (stifix) with 'domain', now the real test tested with gmail (without 2 verification) can work, but when setting it to my email domain, can not with traceback error: ERROR:root:email_auth() failed Traceback (most recent call last): File "/Us

[web2py] Geolocation: how to execute js script (navigator.geolocation, ecc) before controller code?

2018-06-15 Thread Fabio Ceccarani
Ih all, my site do do these operation: 1. geolocalize user in view using html5 navigator.geolocation (classic js code) 2. past latitude and longitude to controller with: ajax('{{=URL("default","mycoords")}}'+'?lat='+position.coords.latitude+'&lon='+position.coords.longitude,[],':eval');

Re: [web2py] Is it possible to translate data in SQLFORM.grid?

2018-06-15 Thread Anthony
On Thursday, June 14, 2018 at 10:37:55 AM UTC-4, Bruno Duarte Ramos wrote: > > Hello, > > Is is possible translate a data in a SQLFORM? > > Where my controller is: > > form=SQLFORM(db.cake) > > And my view: > > {{=form}} > Are you saying you want the stored values of an existing record to be tran

[web2py] Re: return binary

2018-06-15 Thread Anthony
On Thursday, June 14, 2018 at 11:17:56 PM UTC-4, 黄祥 wrote: > > submit on this : > https://github.com/web2py/web2py/issues > Actually, this would be a pydal issue: https://github.com/web2py/pydal/issues Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://

[web2py] Re: Other login methods

2018-06-15 Thread Anthony
On Thursday, June 14, 2018 at 11:11:05 PM UTC-4, 黄祥 wrote: > > yes, actually for email_auth or ldap_auth. ATM, email_auth is tested using > from domain hosting (add it from cpanel). > email_auth, ldap_auth and pam_auth tested above is using the real data and > also tested for the fake data (just