[web2py] Re: OAUTH2.0 help

2018-03-07 Thread greenpoise
Hi Dave, thanks for the input. I was able to post the temporary code and get an authentication code. I will post tomorrow my updated code. I feel i am close. Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: new style of welcome app

2018-03-07 Thread Anthony
On Wednesday, March 7, 2018 at 2:40:02 PM UTC-5, Andrea Fae' wrote: > > Thanks Anthony, but LOGIN is still in the left side... > > > > It's on the right for me:

[web2py] Re: OAUTH2.0 help

2018-03-07 Thread Dave S
I probably shouldn't be answering, because my OAUTH2 expertise comes from a presentation by Jim Manicore of Manicode.com, but ... On Wednesday, March 7, 2018 at 3:05:48 PM UTC-8, greenpoise wrote: > > I feel I am almost there making a connection. So, following the steps of > the server side, I

[web2py] OAUTH2.0 help

2018-03-07 Thread greenpoise
I feel I am almost there making a connection. So, following the steps of the server side, I have to: 1. Request an Authorization and Temporary Token 2. Once I receive the temporary token, 3. I have to exchanged it for an access token which I can use to access the data I have the first 2 i

[web2py] Backwards compatibility

2018-03-07 Thread Mark Erbaugh
I appreciate Web2py's view towards backwards compatibility, but I think some of the included libraries do not share the same philosophy. I have had to make changes eliminate errors or have expected functionality. I would like to know if I'm doing this right and if I've missed something. If you

[web2py] Re: please help us test trunk web2py

2018-03-07 Thread Nbush
Pluralizaiton error. (test on python 2.7.13) 'ascii' codec can't decode byte 0xd0 in position 0: ordinal not in range(128) Function argument list (self=, message='%{!\xd0\xb2\xd1\x8b\xd0\xb1\xd1\x80\xd0\xb0\xd0\xbd\xd0\xb0[0]} 1 %{\xd0\xb7\xd0\xb0\xd0\xbf\xd0\xb8\xd1\x81\xd1\x8c[0]}',

[web2py] Re: Problem Pickling Session

2018-03-07 Thread Mark Erbaugh
I'm not sure this is the right way to answer Massimo's question as there appears to be no way to reply to his reply. Web2Py is 2.16.1-stable+timestamp.2017.11.14.05.54.25 I tried deleting all the files in the application (both my application and admin) sessions folders, but still have the same

Re: [web2py] _href to URL()

2018-03-07 Thread 黄祥
thanks for the pointer, anthony best regards, stifan -- 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

Re: [web2py] Unit testing apis

2018-03-07 Thread Richard Vézina
I do have customized web2py.test while integrating some of welcome_enhanced stuff like using splinter api for conducting testing + create a test launcher to save some boiler plate initialization... I just don't have time to exectract it form my own app and publish it... It rely on pytest... It

Re: [web2py] Re: new style of welcome app

2018-03-07 Thread Richard Vézina
Did you flush you browser cache?? On Wed, Mar 7, 2018 at 2:40 PM, Andrea Fae' wrote: > Thanks Anthony, but LOGIN is still in the left side... > > >

[web2py] Re: new style of welcome app

2018-03-07 Thread Andrea Fae'
Thanks Anthony, but LOGIN is still in the left side... Il giorno lunedì 5 marzo 2018 13:18:50 UTC+1, Anthony ha scritto: > > On Sunday, March 4, 2018 at 12:12:45

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

2018-03-07 Thread Richard Vézina
That why I think you wrongly initialize you db in the first place while onboarding the record versioning feature... Please try on your side to create new app drop the model and fixture I include in one of my last email and start web2py shell and launch the various commands of yours... You should

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

2018-03-07 Thread Richard Vézina
In [4]: query = (test2.type_marker=='object') | (test2.type_marker==None) & (test1.type_marker=='person') ...: In [5]: db().select(db.test.ALL) Out[5]: I did there... Same result... That my point... On Wed, Mar 7, 2018 at 1:47 PM, 'Awe' via web2py-users < web2py@googlegroups.com> wrote:

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

2018-03-07 Thread 'Awe' via web2py-users
Hello Richard, you are right, the use case is parent child relation. All I want to point out is if you use this query: "query = (test2.type_marker=='object') | (test2.type_marker==None) & (test1.type_marker=='person')" you do not get the same result with record versioning enabled or disabled.

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

2018-03-07 Thread Richard Vézina
I don't get it, I don't understand what is the issue... I just demonstrate that with and without record versioning DAL returns the same set of result which what it should be doing no?? So my understanding of the issue is that you don't get the same query output when record versioning is on and

Re: [web2py] Unit testing apis

2018-03-07 Thread Yoel Benítez Fonseca
idk if that is the right way... i'm using this approach in on of my projects and at the moment the only problem i have is with the memory usage or the slow access with a file base sqlite database for the tests. On Wed, Mar 7, 2018 at 1:08 PM, António Ramos wrote: Next

Re: [web2py] Unit testing apis

2018-03-07 Thread António Ramos
Next chapter in web2py book *Pytest your app the right way* 2018-03-07 18:02 GMT+00:00 Yoel Benítez Fonseca : > H! > > checkout: https://github.com/viniciusban/web2py.test > > > > On Wed, Mar 7, 2018 at 10:10 AM, Kevin Huang wrote: > >> >> Hi all, >> >>

Re: [web2py] Unit testing apis

2018-03-07 Thread Yoel Benítez Fonseca
H! checkout: https://github.com/viniciusban/web2py.test On Wed, Mar 7, 2018 at 10:10 AM, Kevin Huang wrote: Hi all, I'm relatively new to web2py, and still trying to find more resources, but i've hit a wall, and I'm not quite sure on this issue I'm working with: So

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

2018-03-07 Thread nethugolol
Thanks Anthony. -- 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 "web2py-users"

Re: [web2py] Unit testing apis

2018-03-07 Thread António Ramos
Some discussion here https://groups.google.com/forum/#!topic/web2py/4HdkjbnlhBU There should be a link in web2py docs to suggest the best way to test. Regards 2018-03-07 15:10 GMT+00:00 Kevin Huang : > > Hi all, > > > I'm relatively new to web2py, and still trying to find

[web2py] Unit testing apis

2018-03-07 Thread Kevin Huang
Hi all, I'm relatively new to web2py, and still trying to find more resources, but i've hit a wall, and I'm not quite sure on this issue I'm working with: So working with the "guide" from http://web2py.com/AlterEgo/default/show/260, I'm trying to create a few unit tests to test some

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

2018-03-07 Thread 'Awe' via web2py-users
Hello Richard, have read your post 3 times, but I can't find the right query result. Could you tell me where to find in your test the query which leads to: test1.titletest2.title PeterNone PaulLaptop Thank you. Am Mittwoch, 7. März 2018 17:33:33 UTC+1 schrieb

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

2018-03-07 Thread Richard Vézina
Here some tests : *WITH record versioning* In [1]: db(db.test.id < 0).select() Out[1]: In [2]: db(db.test.id > 0).select() Out[2]: In [3]: test1 = db.test.with_alias('test1') In [4]: test2 = db.test.with_alias('test2') In [5]: query = (test2.type_marker=='object') |

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

2018-03-07 Thread Anthony
On Wednesday, March 7, 2018 at 1:02:56 AM UTC-5, Massimo Di Pierro wrote: > > 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

Re: [web2py] _href to URL()

2018-03-07 Thread Anthony
On Wednesday, March 7, 2018 at 12:39:42 AM UTC-5, 黄祥 wrote: > > 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? > Here's the code currently used in the layout to generate the menu from response.menu:

[web2py] Re: SQLFORM.grid buttons

2018-03-07 Thread Esprit Garonne
Many Thanks, Omg! I am really enjoying to test this framework. On Tuesday, March 6, 2018 at 8:33:26 PM UTC+1, Esprit Garonne wrote: > > 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

[web2py] Off Topic:Pony

2018-03-07 Thread António Ramos
Nice ... https://ponyorm.com/ -- 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: Unexpected behaviour executing a query with DAL and record versioning enabled

2018-03-07 Thread 'Awe' via web2py-users
Great, many thanks for testing it. Andreas Am Dienstag, 6. März 2018 22:30:59 UTC+1 schrieb Richard: > > 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

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

2018-03-07 Thread Manuele Pesenti
Thanks a lot Massimo! As precious as ever. :)     M. On 07/03/2018 07:02, Massimo Di Pierro wrote: 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