[web2py] Re: Custom form errors?

2017-03-07 Thread Dave S
On Monday, March 6, 2017 at 10:34:31 PM UTC-8, LoveWeb2py wrote: > > If I'm reading this correctly: > http://web2py.com/books/default/chapter/29/07/forms-and-validators#Hide-errors > > It looks like everything is now handled in the view and NOT the > controller, so I'd need to do all of my chec

[web2py] Re: pythonanywhere configuration domain web2py application

2017-03-07 Thread Alessio Varalta
Yes, I make this operation now on pythonanywhere I go to Web tab and rename to www.asdbluestars-bz.it

[web2py] Re: user-created documentation

2017-03-07 Thread Marlysson Silva
As a google docs collaborative? Em terça-feira, 7 de março de 2017 04:33:45 UTC-3, Alex Glaros escreveu: > > I built a quick and dirty user-created documentation system where for each > topic, there is 1:M stakeholder-perspective content. > > Am asking the group if there might be a little less-di

[web2py] Re: pythonanywhere configuration domain web2py application

2017-03-07 Thread Jim S
Host should be www.asdbluestars-bz.it. -Jim On Tuesday, March 7, 2017 at 4:23:10 AM UTC-6, Alessio Varalta wrote: > > Thanks, for the reply. Yes, I make this operation now on pythonanywhere I > go to Web tab and rename to www.asdbluestars-bz.it >

[web2py] Re: Custom form errors?

2017-03-07 Thread Anthony
On Tuesday, March 7, 2017 at 1:34:31 AM UTC-5, LoveWeb2py wrote: > > If I'm reading this correctly: > http://web2py.com/books/default/chapter/29/07/forms-and-validators#Hide-errors > I was just pointing that out to show how to access the errors -- you can certainly do so in the controller. Anth

[web2py] Re: Custom form errors?

2017-03-07 Thread Anthony
> I tried putting the functions you mentioned in the process and validate > method in the "user" function, but still no luck. > If you're talking about the default user() function, then you should have something like form=auth(), in which case, you cannot use the .process() or .validate() met

Re: [web2py] Re: limitby question

2017-03-07 Thread Richard Vézina
Yes sorry it was more of a complaint than a question :) I was disturbed by the fact that I can't leave the limit constant, like 10 rows, and only manipulate the offset as I would do in sql... Then I reread the book and understand min, max, but I am not sure I see the advantage... And I found conf

[web2py] Re: pythonanywhere configuration domain web2py application

2017-03-07 Thread Alessio Varalta
Thanks work On Tuesday, 7 March 2017 13:24:18 UTC+1, Jim S wrote: > > Host should be www.asdbluestars-bz.it. > > -Jim > > On Tuesday, March 7, 2017 at 4:23:10 AM UTC-6, Alessio Varalta wrote: >> >> Thanks, for the reply. Yes, I make this operation now on pythonanywhere I >> go to Web tab and rena

{Disarmed} Re: [web2py] Re: ajax_trap=False behavior on ajax loaded component

2017-03-07 Thread Carlos Cesar Caballero Díaz
Many thanks Anthony, it just works. Greetings. El 06/03/17 a las 20:55, Anthony escribió: | f="function")}}"method="get"> | Then load it as an Ajax component and the form will not be trapped. Anthony On Friday, March 3, 2017 at 3:38:55 PM UTC-5, Carlos Cesar Caballero wrote: Hi, I am

Re: [web2py] Re: limitby question

2017-03-07 Thread Anthony
On Tuesday, March 7, 2017 at 9:20:53 AM UTC-5, Richard wrote: > > Yes sorry it was more of a complaint than a question > > :) > > I was disturbed by the fact that I can't leave the limit constant, like 10 > rows, and only manipulate the offset as I would do in sql... > It sounds like you want som

Re: [web2py] Re: limitby question

2017-03-07 Thread Anthony
For what it's worth, the Django ORM uses Python array slicing syntax (i.e., [start:stop]) to implement limit/offset, and SQLAlchemy uses .slice(start, stop) (though it also offers separate .limit() and .offset() methods). I don't think it is common to have a single argument of the form (limit,

[web2py] problem with ldap authentication

2017-03-07 Thread Carlos Cesar Caballero Díaz
Hi, I am trying to include ldap authentication to my app, and for this, i am using this code: auth.settings.login_methods.append(ldap_auth( mode='uid', server='10.6.xx.xx', base_dn='dc=comp', filterstr='&(objectClass=inetOrgPerson)', logging_level='debug')) (note: The Origin

Re: [web2py] Re: Python web2py console

2017-03-07 Thread Paul Ellis
Thank you. That works. I used the binary in the beginning, simply because I was so new and it seemed the simplest way forwards. Maybe it's time to switch to the source version. On Mon, Mar 6, 2017 at 4:51 PM, Anthony wrote: > If using the Windows binary, the .exe file includes the Python > int

Re: [web2py] Re: Python web2py console

2017-03-07 Thread Paul Ellis
Hey Marlysson, This command doesn't work. But thanks for your time to try to help. Anthony has told me the correct command is: web2py.exe -S your_application -M Cheers On Mon, Mar 6, 2017 at 3:46 PM, Marlysson Silva wrote: > python web2py.exe -S your_application -M > > Em segunda-feira,

Re: [web2py] Re: limitby question

2017-03-07 Thread Richard Vézina
Thanks for exploring this Anthony, Yes, I guess having .limit() and .offset() would make it easier to use constant limit value like 10 records and just manipulate the offset... I was just at first thinking that limitby=(limit, offset) or limitby=(offset, limit), I mean I intuitivelly want it to b

Re: [web2py] problem with ldap authentication

2017-03-07 Thread Richard Vézina
Is your ldap server protected by ssl? If so you have to think to change port... Richard On Tue, Mar 7, 2017 at 10:32 AM, Carlos Cesar Caballero Díaz < carlos.caball...@cfg.jovenclub.cu> wrote: > Hi, I am trying to include ldap authentication to my app, and for this, i > am using this code: > > a

{Disarmed} Re: Re: [web2py] problem with ldap authentication

2017-03-07 Thread Carlos Cesar Caballero Díaz
No, the ldap server is not protected by ssl. Greetings. El 07/03/17 a las 11:42, Richard Vézina escribió: Is your ldap server protected by ssl? If so you have to think to change port... Richard On Tue, Mar 7, 2017 at 10:32 AM, Carlos Cesar Caballero Díaz

[web2py] Re: user-created documentation

2017-03-07 Thread Alex Glaros
thanks Marlysson, other than someone having already done something like this, this is about as good as answer I can expect, considering such a vague question :-) Alex -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - h

Re: {Disarmed} Re: Re: [web2py] problem with ldap authentication

2017-03-07 Thread Richard Vézina
Hello Carlos, You can try to make simple bind with python ldap lib first, make sure user, base_dn is good, you will get more feedback then with ldap_auth Depending of the ldap server implementation that you try to reach you may fall on ldap_auth issue as not all part of the ldap_auth is well test

[web2py] run-time test if DAL field allows None, null, or empty

2017-03-07 Thread lucas
ok everyone, what is the method to test if a field under a table allows for None, or requires a real value. like isinstance(table name[fieldname].requires, IS_EMPTY_OR) returns True if allows None but it doesn't always return True when it should. like when the field is only: Field('name', l

[web2py] eclipse+pydev breakpoint not work with the latest cloned web2py

2017-03-07 Thread Yibing Liu
My computer is win7 x64. I am using eclipse(4.6.2) ,pydev(5.5.0), python(2.7.13) and the web2py latest cloned from the github. Compared with the 2.14.6 stable version web2py, the latest cloned web2py has many additonal files which I guess may be used for compiling and debugging. However when I

[web2py] KeyError ticket when I request a CSV/TSV in a grid with a Virtual Field

2017-03-07 Thread Marcelo Huerta
Running 2.14.6-stable+timestamp.2016.05.10.00.21.47 on Ubuntu and Windows 7, python 2.7 When I try to generate a CSV or TSV from a grid with a Virtual Field, I get a ticket with a KeyError. Traceback (most recent call last): File "F:\Prog\web2py\gluon\restricted.py", line 227, in restricted

[web2py] Re: run-time test if DAL field allows None, null, or empty

2017-03-07 Thread Anthony
Maybe something like this: def allows_none(field): from pydal._globals import DEFAULT requires = field.requires if field.requires and field.requires != DEFAULT else [] requires = requires if isinstance(requires, list) else [requires] return not any(validator(None)[1] != None for v

[web2py] Query auth_user over first and last names in one query

2017-03-07 Thread Jim S
Hi I have a search form where the user types in generic search text. I want to be able to return to them a list of matching users. Sample Data First Last - -- -- 1 Jim Sanders 2 BillVan Der Wall 3 JohnSt James 4 Peter Williams 5 Jim

[web2py] Re: run-time test if DAL field allows None, null, or empty

2017-03-07 Thread lucas
maybe this can be added to the Fields object as a property in the future. thanx Anthony. Lucas -- 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 rec