[web2py] Re: cpython and web2py

2017-06-27 Thread Joe Barnhart
My experiments are all pretty old. Too old to be useful. Currently I have commercial websites using web2py and I don't need to do anything remarkable to make it faster. I just used good design techniques and didn't do "premature optimization." I'm now re-writing a Rails, site, a Java site,

[web2py] Re: Suddenly my task scheduler stopped working

2017-06-27 Thread Dave S
On Tuesday, June 27, 2017 at 10:11:12 AM UTC-7, Ramos wrote: > > this is the error i see in task_run table record with status failed > > Traceback (most recent call last): > File "/.../new2py/web2py/gluon/scheduler.py", line 293, in executor > _env = env(a=a, c=c, import_models=True) >

Re: [web2py] Re: web2py_component does not work with https...

2017-06-27 Thread Richard Vézina
Hmm... Google CDN is not always on the cutting edge... You should use the same version as the one ship with web2py if you want to avoid any issues... You have to conduct your on due diligence testing if you upgrade it... Richard On Mon, Jun 26, 2017 at 6:39 AM, António Ramos

[web2py] Suddenly my task scheduler stopped working

2017-06-27 Thread António Ramos
this is the error i see in task_run table record with status failed Traceback (most recent call last): File "/.../new2py/web2py/gluon/scheduler.py", line 293, in executor _env = env(a=a, c=c, import_models=True) File "/home/ramstein74/webapps/new2py/web2py/gluon/shell.py", line 166, in

Re: [web2py] Active Directory (ldap) authntication problem

2017-06-27 Thread Richard Vézina
You are welcome Richard On Tue, Jun 27, 2017 at 4:42 AM, Francisco García Claramonte < fgclaramo...@gmail.com> wrote: > Good Morning Richard, > > First thank you for your fast help. > I'd changed my configuration according your example. > > Now, It is: > > auth.settings.login_methods = [ auth,

Re: [web2py] Re: Auth.signature not updating update_on

2017-06-27 Thread Anthony
We probably need to see more code and an exact description of the workflow to make the update and check whether it was applied. Anthony On Tuesday, June 27, 2017 at 5:02:04 AM UTC-4, Ramos wrote: > > Yes anthony i meant modified_on ,not update_on > > I have this code > >

Re: [web2py] Re: Future of web2py

2017-06-27 Thread Anthony
On Tuesday, June 27, 2017 at 5:47:57 AM UTC-4, Ron Chatterjee wrote: > > What is web2py-optimized? Controller code is in a module and called directly from a model file (so there is no controller file executed), and although the DAL is used for making database connections, queries are done via

[web2py] Comunity documentation -- Not found

2017-06-27 Thread António Ramos
The links for the Apostilla em português are gone Maybe they should be kept inside the web2py online app [image: Imagem inline 1] -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] uuid field in CRUD call as record_id argument

2017-06-27 Thread 98ujko9
Hello, I have not seen mention of this anywhere. Perhaps my question is a superfluous. If a table contains uuid field type can it be used as a record_id for an argument in CRUD update call. It looks that it cannot. Thanks -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] Re: Future of web2py

2017-06-27 Thread Richard Vézina
rigth config for web2py to perform... Not the default out of the box package... On Tue, Jun 27, 2017 at 5:47 AM, Ron Chatterjee wrote: > What is web2py-optimized? > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > -

[web2py] Re: Implementing Token Based authentication JWT

2017-06-27 Thread Oasis Agano
THE SOLUTION WAS THIS I wanted to write a web2py slice but i cant seem to login at the moment maybe i will do it later. Model Entries = db.define_table("entries", Field("entry", "text")) Cities = db.define_table("cities", Field("city", "text")) Controller def call(): """ exposes

[web2py] Re: Representing field in IS_IN_DB

2017-06-27 Thread David Orme
That's great. Thanks - I simply hadn't thought that I could switch which table the IS_IN_DB 'table.value_field' argument was pointing to in order to shift which fields were available. To give the specific answer for my case: db.datasets.project_id.requires = IS_IN_DB(query,

[web2py] Re: datetime or timestamp ?

2017-06-27 Thread Leonel Câmara
Always store everything in UTC, seriously just have request.now = request.utcnow as the first line in all your applications. It's very easy to get a user's UTC offset using javascript: (new Date()).getTimezoneOffset()/60 Then you can store it in session or something like that and use it to

[web2py] Re: Representing field in IS_IN_DB

2017-06-27 Thread 黄祥
i think there are two solutions for this 1. either you set the format in every table definition and use the requires IS_IN_DB(query, db.table.id, table._format) 2. you keep your table definition and fixed the requires IS_IN_DB(query, db.table.id, '%s %s' % (id, title) ) ref:

[web2py] Re: datetime or timestamp ?

2017-06-27 Thread 黄祥
just an idea, i think should define the field as datetime and detect user timezone to represent it, e.g. pytz ref: https://groups.google.com/forum/#!topic/web2py/J5pYfUqrCZY https://github.com/niphlod/w2p_timezone_plugin best regards, stifan -- Resources: - http://web2py.com -

[web2py] Representing field in IS_IN_DB

2017-06-27 Thread David Orme
Hi, I'm trying to set up a dropdown on a form to have representation text that merges information from multiple tables. The table setup is one where I'm tracking users and datasets associated with projects. Because project details can get updated, I have a permanent project id, and the

[web2py] datetime or timestamp ?

2017-06-27 Thread António Ramos
hello i´m creating an app to be used by people in different countries... i have a table events with datetime as the event date. how will i deal with users from many countries reading events table because the same event may be read differently by different users .. Regards António --

[web2py] Re: Implementing Token Based authentication JWT

2017-06-27 Thread Oasis Agano
the message comes after i add the decorator on top of a function @myjwt.allows_jwt() On Friday, June 23, 2017 at 10:49:17 PM UTC+2, Oasis Agano wrote: > > Hello, > > How can someone implement a token based authentication in web2py; > Both token generation and authorization? > > > kr, > Oasis >

Re: [web2py] Re: Future of web2py

2017-06-27 Thread Ron Chatterjee
What is web2py-optimized? -- 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 Google Groups

Re: [web2py] Re: Auth.signature not updating update_on

2017-06-27 Thread António Ramos
Yes anthony i meant modified_on ,not update_on I have this code table[id]=dict(field1=1,field2=2) the row is updated but the *modified_on* is not. Regards 2017-06-26 19:48 GMT+01:00 Anthony : > auth.signature includes a modified_on field, not an update_on field. > >

Re: [web2py] Active Directory (ldap) authntication problem

2017-06-27 Thread Francisco García Claramonte
Good Morning Richard, First thank you for your fast help. I'd changed my configuration according your example. Now, It is: auth.settings.login_methods = [ auth, ldap_auth(mode='ad', server= server_ldap,