[web2py] Re: SQLFORM.grid and custom forms behavior

2017-09-26 Thread Tiago Barrionuevo
I'll take a look... I think it should work. Thanks for the reply. Em terça-feira, 26 de setembro de 2017 22:30:22 UTC-3, Dave S escreveu: > Wouldn't you use the onvalidation() method? Look at > http://web2py.com/books/default/chapter/29/07/forms-and-validators#SQLFORM-grid-signature > > >

[web2py] Re: SQLFORM.grid and custom forms behavior

2017-09-26 Thread Dave S
On Tuesday, September 26, 2017 at 6:00:27 PM UTC-7, Tiago Barrionuevo wrote: > > Hi! > I'm trying to use custom forms for the actions used internally by the > SQLFORM.grid and that are called by the grid links. > I got all that working but now I need to do my own data manipulation after > the

Re: [web2py] form replacing elements

2017-09-26 Thread Dave S
On Tuesday, September 26, 2017 at 2:58:02 PM UTC-7, Pierre wrote: > > I tried to tame a raccoon and it didn't work. :( > > What's the python signature of a raccoon? I think you need to provide some of the optional parameters. /dps > > Le lundi 25 septembre 2017 20:37:10 UTC+2, Dave S a

[web2py] SQLFORM.grid and custom forms behavior

2017-09-26 Thread Tiago Barrionuevo
Hi! I'm trying to use custom forms for the actions used internally by the SQLFORM.grid and that are called by the grid links. I got all that working but now I need to do my own data manipulation after the grid processes and accepts the form. However if I call "mygrid.update_form.accepted"

[web2py] Re: ajax call from Select sends ["345","346"] instead of ["346"]

2017-09-26 Thread Dave S
On Tuesday, September 26, 2017 at 9:07:28 AM UTC-7, Ramos wrote: > > Hello i found a strange thing. > The first select calls the endpoint correctly with "2800" or "EMP1" in > postvars > Silly question: are these selects enclosed in a form? Is it the same form for both, separate instances of

Re: [web2py] Re: move database to mongodb

2017-09-26 Thread Dave S
On Tuesday, September 26, 2017 at 7:15:08 AM UTC-7, 黄祥 wrote: > > thank you all for the input, this topic is open just to put what i tested > when using mongodb (just started to learn nosql trying first with mongodb > that is supported by web2py), perhaps there are some issue is not resolved

Re: [web2py] JWT with ldap_auth and auth methods

2017-09-26 Thread Dave S
On Tuesday, September 26, 2017 at 9:01:44 AM UTC-7, Francisco García wrote: > Anyway, I need the user authentication order: ldap_auth, auth > In both cases, web application authentication and JWT (Android app). > It is very important, if I can't do it, I'll have to find other solution. >

[web2py] Re: ajax call from Select sends ["345","346"] instead of ["346"]

2017-09-26 Thread António Ramos
i meant "2800" or "2795" in the first select 2017-09-26 17:06 GMT+01:00 António Ramos : > Hello i found a strange thing. > The first select calls the endpoint correctly with "2800" or "EMP1" in > postvars > > onchange="ajax('/fileit/entities/insert_or_update_ >

[web2py] ajax call from Select sends ["345","346"] instead of ["346"]

2017-09-26 Thread António Ramos
Hello i found a strange thing. The first select calls the endpoint correctly with "2800" or "EMP1" in postvars None Zé Jaquelino however this select calls the same endpoint with ["345","346"] 10 0

Re: [web2py] JWT with ldap_auth and auth methods

2017-09-26 Thread Francisco García
Hello Richard, Thanks for your fast answer. Even using ldap_auth as only method, 'login_bare' always check user in local database. I remove auth login method. I overwrite 'login_bare' method to: def login_bare(self, username, password): for login_method in

Re: [web2py] Re: move database to mongodb

2017-09-26 Thread Richard Vézina
I think the issue you talk about is related or is the same one to the one report here : https://groups.google.com/forum/#!topic/web2py/oPcn_TFEJvQ Richard On Tue, Sep 26, 2017 at 10:15 AM, 黄祥 wrote: > thank you all for the input, this topic is open just to put

Re: [web2py] Re: "object_type" reserved word in web2py?

2017-09-26 Thread Anthony
You don't have to worry about database table names conflicting with either Python keywords or web2py API objects, as the table names are only used as attributes or keys of a DAL object -- never in the global namespace. You only need to worry about conflicts with SQL reserved words. In any case,

Re: [web2py] Re: "object_type" reserved word in web2py?

2017-09-26 Thread Alex Glaros
it is a key table in my app and would be difficult to rename in the future if there were naming issues thanks Anthony Alex On Tue, Sep 26, 2017 at 7:07 AM, Anthony wrote: > No, why do you ask? > > > On Tuesday, September 26, 2017 at 1:30:43 AM UTC-4, Alex Glaros wrote:

Re: [web2py] Re: move database to mongodb

2017-09-26 Thread 黄祥
thank you all for the input, this topic is open just to put what i tested when using mongodb (just started to learn nosql trying first with mongodb that is supported by web2py), perhaps there are some issue is not resolved like auth permission another error testing found : 1. Didn't support

[web2py] Re: "object_type" reserved word in web2py?

2017-09-26 Thread Anthony
No, why do you ask? On Tuesday, September 26, 2017 at 1:30:43 AM UTC-4, Alex Glaros wrote: > > "object_type" reserved word in web2py? > > thanks > > Alex Glaros > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: directory structure of uploaded file

2017-09-26 Thread Anthony
On Tuesday, September 26, 2017 at 5:53:30 AM UTC-4, Dave S wrote: > > > > On Monday, September 25, 2017 at 11:03:59 PM UTC-7, Rudy wrote: >> >> Hi i am working to build a multi-tenant application which has a company >> table which stores logo and other data. I defined a company table, added >>

[web2py] Re: pyDAL - query records newer than a certain date

2017-09-26 Thread Anthony
Answered: https://stackoverflow.com/a/46428432/440323 On Tuesday, September 26, 2017 at 7:25:25 AM UTC-4, Terrence Brannon wrote: > > Since there has been no response here, I have posted my question at Stack > Overflow: > >

Re: [web2py] Re: move database to mongodb

2017-09-26 Thread Richard Vézina
I listen a few vid tutorial about data modeling it mongoDB and basically you should think to put in a single document (mongo is a document database important to remember) all (or most of them) the piece of data into a single document base on the use case of these data (application view for

[web2py] Re: pyDAL - query records newer than a certain date

2017-09-26 Thread Terrence Brannon
Since there has been no response here, I have posted my question at Stack Overflow: https://stackoverflow.com/questions/46425184/pydal-query-records-newer-than-a-certain-date On Monday, September 25, 2017 at 3:40:10 AM UTC-4, Terrence Brannon wrote: > > Hello, I have the following query working

[web2py] Re: directory structure of uploaded file

2017-09-26 Thread Dave S
On Monday, September 25, 2017 at 11:03:59 PM UTC-7, Rudy wrote: > > Hi i am working to build a multi-tenant application which has a company > table which stores logo and other data. I defined a company table, added > extra fields in auth_user and created an action (simplified version) like >

[web2py] directory structure of uploaded file

2017-09-26 Thread Rudy
Hi i am working to build a multi-tenant application which has a company table which stores logo and other data. I defined a company table, added extra fields in auth_user and created an action (simplified version) like below. web2py uploaded the logo image file under