[web2py:19541] Question about the book..

2009-04-10 Thread Jason Brower
Does the edition of the book at lulu talk about authentication? What what version of web2py does the book end at? Regards, Jason Brower --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group.

[web2py:19542] Auth bug or "my bug"?

2009-04-10 Thread Álvaro Justen [Turicas]
Hello web2pyers and Massimo, I'm testing Auth and all work fine when I use a function called "user" to return auth(). Well, I speak Portuguese and want to call it "usuario". My controllers' code is like to: def usuario(): return dict(meio=auth()) In my app I want to only permit CRUD if user

[web2py:19543] routes.py improvement

2009-04-10 Thread Álvaro Justen [Turicas]
Hi, I want a manner to get full GET URL from client, but using a rewrite in routes_in I can get only a half of. An example: routes_in = ( ('/(?P.+)', '/myapp/default/padrao?\g'), ) In this case I can get 'full' URL (I say 'full' because I don't get "http://127.0.0.1:800";) with request.env.q

[web2py:19544] Re: Question about the book..

2009-04-10 Thread Álvaro Justen [Turicas]
On Fri, Apr 10, 2009 at 4:12 AM, Jason Brower wrote: > > Does the edition of the book at lulu talk about authentication?  What > what version of web2py does the book end at? > Regards, > Jason Brower The free version of the book referer to web2py version 1.37. I think the full version uses 1.37

[web2py:19545] Flow of execution

2009-04-10 Thread annet
I have two function both of which don't execute the way I expect/want them to execute. The first one: def byplace(): form=form_factory(SQLField('plaats',requires=IS_NOT_EMPTY(),\ widget=lambda self, value:TAG[''](INPUT (_id='byplace',_name='plaats',_class='ac_input',_type='text'

[web2py:19546] Re: Flow of execution

2009-04-10 Thread Álvaro Justen [Turicas]
On Fri, Apr 10, 2009 at 5:53 AM, annet wrote: > The second one: > > def byzipcode(): >    form=form_factory(SQLField('postcoderegio',requires=[IS_LENGTH > (2),IS_NOT_EMPTY()],\ >    widget=lambda self, value:TAG[''](INPUT > (_id='byzipcode',_name='postcoderegio',_class='ac_input',_type='text'

[web2py:19547] Re: Question about the book..

2009-04-10 Thread Jason Brower
I have my Auth working properly for now. I just feel it would be nice to have a reference of all the information in a book. Weird as it is, being a techy, I love having a book and supporting the creators/maintainers of open projects. And yeah, I have used both of those links. Thanks. Regards, Ja

[web2py:19548] Re: Auth bug or "my bug"?

2009-04-10 Thread mdipierro
You need to customize. auth.settings.login_url = URL(r=request,f='usuraio', args='login') The name of this function sounds bad in italian. LOL Massimo On Apr 10, 3:06 am, Álvaro Justen [Turicas] wrote: > Hello web2pyers and Massimo, > I'm testing Auth and all work fine when I use a function c

[web2py:19549] Re: routes.py improvement

2009-04-10 Thread mdipierro
Good point! I can add this. Massimo On Apr 10, 3:13 am, Álvaro Justen [Turicas] wrote: > Hi, > I want a manner to get full GET URL from client, but using a rewrite > in routes_in I can get only a half of. An example: > > routes_in = ( >     ('/(?P.+)', '/myapp/default/padrao?\g'), > ) > > In th

[web2py:19550] Re: Question about the book..

2009-04-10 Thread mdipierro
By the summer... On Apr 10, 6:58 am, Jason Brower wrote: > I have my Auth working properly for now. > I just feel it would be nice to have a reference of all the information > in a book.  Weird as it is, being a techy, I love having a book and > supporting the creators/maintainers of open projec

[web2py:19551] Re: BETWEEN functionality

2009-04-10 Thread DenesL
Hi Annet, On Apr 10, 1:51 am, jmverm...@xs4all.nl wrote: > Denes, > > > OK but you should check if minmax is not empty first. > > I thought this wouldn't be necessary since the input comes from an > auto-complete or drop-box, and these contain values that are in the > zipcoderegions table for sur

[web2py:19552] Re: BETWEEN functionality

2009-04-10 Thread DenesL
On Apr 10, 8:38 am, DenesL wrote: > The auto-complete part was not mentioned in this thread ... Not explictly but I see the _class='ac_input' now. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Frame

[web2py:19553] Re: Question about INPUT()

2009-04-10 Thread DenesL
You can set the field's requires using IS_EMAIL and IS_IN_DB validators and on form.accepts (if using FORM or SQLFORM) check if it is different from the initial setting. On Apr 10, 1:34 am, waTR wrote: > I have a field whose value I set to a user's email, from the DB. I > need to have the field

[web2py:19554] Re: Return 10000 values to SQLFORM

2009-04-10 Thread DenesL
1 !? what are you trying to do?. The CGI specification places no limits on the length of the message- body presented to the script but I am pretty sure that the some of the components involved in the processing here do set limits. Besides 7453 seems like an arbitrary limit, so this is probab

[web2py:19555] Re: Auth bug or "my bug"?

2009-04-10 Thread Álvaro Justen [Turicas]
On Fri, Apr 10, 2009 at 10:27 AM, mdipierro wrote: > You need to customize. > > auth.settings.login_url = URL(r=request,f='usuraio', args='login') > > The name of this function sounds bad in italian. LOL I don't know italian and Google didn't called me what it means in Portuguese. :-( -- Álva

[web2py:19556] http://mdp.cti.depaul.edu/ down?

2009-04-10 Thread Hans
For me it looks like http://mdp.cti.depaul.edu/ and http://www.web2py.com are down. http://depaul.edu/ is working. Can someone confirm or is the problem on our network side ? Hans --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

[web2py:19557] Re: http://mdp.cti.depaul.edu/ down?

2009-04-10 Thread Kuba Kucharski
Works for me. -- Kuba On Fri, Apr 10, 2009 at 6:41 PM, Hans wrote: > > For me it looks like http://mdp.cti.depaul.edu/ and http://www.web2py.com > are down. http://depaul.edu/ is working. > > Can someone confirm or is the problem on our network side ? > > Hans > > > --~--~-~--~~

[web2py:19558] Re: http://mdp.cti.depaul.edu/ down?

2009-04-10 Thread Álvaro Justen [Turicas]
On Fri, Apr 10, 2009 at 1:41 PM, Hans wrote: > For me it looks like http://mdp.cti.depaul.edu/ and http://www.web2py.com > are down. http://depaul.edu/ is working. > > Can someone confirm or is the problem on our network side ? Yesterday I can't access these sites (they are the same IP, same mac

[web2py:19559] Re: http://mdp.cti.depaul.edu/ down?

2009-04-10 Thread Boris Manojlovic
it really didn't worked today so it was not just you :) On Fri, Apr 10, 2009 at 7:16 PM, Álvaro Justen [Turicas] < alvarojus...@gmail.com> wrote: > > On Fri, Apr 10, 2009 at 1:41 PM, Hans > wrote: > > For me it looks like http://mdp.cti.depaul.edu/ and > http://www.web2py.com > > are down. http

[web2py:19560] Re: Auth bug or "my bug"?

2009-04-10 Thread mdipierro
In italian a "usuraio" is sombody to lends money at a very high and illegal rate. It is a criminal. Most credit card companies would qualify. On Apr 10, 11:17 am, Álvaro Justen [Turicas] wrote: > On Fri, Apr 10, 2009 at 10:27 AM, mdipierro wrote: > > You need to customize. > > > auth.settings.l

[web2py:19561] Re: http://mdp.cti.depaul.edu/ down?

2009-04-10 Thread Hans
now for me its working again. hans On Apr 10, 7:17 pm, Boris Manojlovic wrote: > it really didn't worked today so it was not just you :) > > On Fri, Apr 10, 2009 at 7:16 PM, Álvaro Justen [Turicas] < > > > > alvarojus...@gmail.com> wrote: > > > On Fri, Apr 10, 2009 at 1:41 PM, Hans > > wrote:

[web2py:19562] Re: Flow of execution

2009-04-10 Thread DenesL
Annet, you are using custom widgets but you are not setting their requires (which is not easy to see, I will give you that). On Apr 10, 3:53 am, annet wrote: > I have two function both of which don't execute the way I expect/want > them to execute. > > The first one: > > def byplace(): >     fo

[web2py:19563] Re: The official Web2py Book by Massimo....for free?

2009-04-10 Thread mikech
I would also like to add my recommendation for this book. I just purchased it and its a very well written Mike On Apr 7, 8:08 pm, mdipierro wrote: > When I called one year ago they would not publish thebookat all. Now > we have 10 times more users so it may me worth calling them again. I > wil

[web2py:19564] Re: Auth bug or "my bug"?

2009-04-10 Thread A. C. Censi
Portuguese for user is "usuário". or "usuario" without the accent. Massimo, you transliterate as "usuraio". The correponding for the Italian "usuraio" in Portuguese is "usurário". Latin languages have similar words with the same meaning! A. C. Censi On Fri, Apr 10, 2009 at 2:23 PM, mdipierro

[web2py:19565] '%LIKE%' syntax.

2009-04-10 Thread web2py <<>> technicalbloke.com
I can't seem to find a clear example of using 'like' in database selects. I'd like to do something like... SELECT * FROM `customers` WHERE customer.name LIKE "%alex%" LIMIT 10; ...but without resorting to executing the query directly via db.executesql(). The manual says... "You can build a que

[web2py:19566] New App - hope you like it

2009-04-10 Thread Speedbird
Here's the last of my "pets", I present you with pyForum, the FIRST message board written exclusively in web2py, basically a forum system containing many of the goodies of other (php?) message boards out there. http://www.pyforum.org/ The "official" release is at: http://www.pyforum.org/pyforum/

[web2py:19567] Re: New App - hope you like it

2009-04-10 Thread Álvaro Justen [Turicas]
On Fri, Apr 10, 2009 at 6:25 PM, Speedbird wrote: > Here's the last of my "pets", I present you with pyForum, the FIRST > message board written exclusively in web2py, basically a forum system > containing many of the goodies of other (php?) message boards out > there. > > http://www.pyforum.org/

[web2py:19568] Re: New App - hope you like it

2009-04-10 Thread Speedbird
This is a very interesting topic that I'll eventually try to address, no doubt. Having web2py behind apache was a daunting task to say the least, since I am now running more than one web2py app under apache in the same web2py instance, I want to make sure all configuration settings are correct. F

[web2py:19569] Re: Auth bug or "my bug"?

2009-04-10 Thread mdipierro
Auch. This is all my fault. I misread your original email and propagated the error. It makes more sense now. On Apr 10, 2:29 pm, "A. C. Censi" wrote: > Portuguese for user is "usuário". or "usuario" without the accent. > > Massimo, you transliterate as "usuraio". > > The correponding for the Ita

[web2py:19570] Re: '%LIKE%' syntax.

2009-04-10 Thread mdipierro
db(db.name.like('%alex%)).select() On Apr 10, 4:04 pm, "web2py <<>> technicalbloke.com" wrote: > I can't seem to find a clear example of using 'like' in database > selects. > > I'd like to do something like... > > SELECT * FROM `customers` WHERE customer.name LIKE "%alex%" LIMIT 10; > > ...but w

[web2py:19571] Re: New App - hope you like it

2009-04-10 Thread mdipierro
Beautiful. I will use this. Massimo On Apr 10, 4:25 pm, Speedbird wrote: > Here's the last of my "pets", I present you with pyForum, the FIRST > message board written exclusively in web2py, basically a forum system > containing many of the goodies of other (php?) message boards out > there. > >

[web2py:19572] SQL Bug

2009-04-10 Thread ceej
For some reason using SQLFORM with a field upload doesn't work, it submits and adds to the db fine all the other fields but not the image. When i check the logs I'm getting this error. /gluon/sql.py:653: Warning: Field 'viewed' doesn't have a default value self._execute = lambda *a, **b: self._

[web2py:19573] Re: New App - hope you like it

2009-04-10 Thread Álvaro Justen [Turicas]
It's pretty easy to implement URLs like I talked about. In your controller: def show_forum(): forum_name = request.get_vars['f'] # ... do something ... return dict(f=forum_name, ...) def show_thread(): forum_name = request.get_vars['f'] thread_name = request.get_vars['t']

[web2py:19574] Re: New App - hope you like it

2009-04-10 Thread Álvaro Justen [Turicas]
Ah, you can use hostname matching in routes.py if you're using web2py >= 1.60. So you can rewrite only pyforum.org requests. On 4/10/09, Álvaro Justen [Turicas] wrote: > It's pretty easy to implement URLs like I talked about. In your controller: > > def show_forum(): > forum_name = request.g

[web2py:19575] Re: routes.py improvement

2009-04-10 Thread Álvaro Justen [Turicas]
On Fri, Apr 10, 2009 at 10:28 AM, mdipierro wrote: > Good point! I can add this. Thanks. :-) Another improvement: if routes_out is not defined, I think web2py can create it directly based on routes_in, like: routes_out = map(lambda x:(x[1], x[0]), routes_in) If you do not want this to be defa

[web2py:19576] request for a central CHANGES file

2009-04-10 Thread Jarod Liu
I think a central file to record changes for every releases is really a good idea. For example, maybe I using version 1.4. Now I want to upgrade to the current version and I want to find out what's change after 1.4 release. For now, to find out what's changed, there is no convenient way but search

[web2py:19577] Re: request for a central CHANGES file

2009-04-10 Thread Jarod Liu
Never mind, I found it in the readme file. My apology to the list. On Apr 11, 9:12 am, Jarod Liu wrote: > I think a central file to record changes for every releases is really > a good idea. For example, maybe I using version 1.4. Now I want to > upgrade to the current version and I want to find

[web2py:19578] Re: routes.py improvement

2009-04-10 Thread mdipierro
You can put this routes_out = map(lambda x:(x[1], x[0]), routes_in) yourself in routes. It should not be the default because if people use regex in routes, this way of doing reversed mapping would not work. On Apr 10, 6:57 pm, Álvaro Justen [Turicas] wrote: > On Fri, Apr 10, 2009 at 10:28 AM,

[web2py:19579] Re: routes.py improvement

2009-04-10 Thread Álvaro Justen [Turicas]
On Sat, Apr 11, 2009 at 12:14 AM, mdipierro wrote: > You can put this > routes_out = map(lambda x:(x[1], x[0]), routes_in) > > yourself in routes. It should not be the default because if people use > regex in routes, this way of doing reversed mapping would not work. Yes, I have this code in app

[web2py:19580] Re: The official Web2py Book by Massimo....for free?

2009-04-10 Thread Yarko Tymciurak
I have said this enough times, and am still amazed at these questions. I will try this one more time: you have no business trying to direct Massimo's decisions ("give me free xxx..."). If you do then you are no software engineer for you are committing the same boundry violation as if you were tr

[web2py:19581] Idea

2009-04-10 Thread TheDude
Allow sub-queries to be performed within the DAL. How? This would be a good example. db(db.table.field1==db.tbl2.field2).select(db.tbl2.ALL, db (db.hola.id==db.massimo.the_id)._select(db.hola.ALL)) The db() within a .select() should perform a subquery when selecting like that. The system current

[web2py:19582] Re: Auth bug or "my bug"?

2009-04-10 Thread AchipA
> The correponding for the Italian "usuraio" in Portuguese is "usurário". > Latin languages have similar words with the same meaning! And many latin words propagated into other languages, hungarian has almost the same word 'uzsorás' (closer when pronounced than written) which refers to 'loan shar

[web2py:19583] Re: BETWEEN functionality

2009-04-10 Thread jmvermeer
Denes, > The auto-complete part was not mentioned in this thread but it should > be OK as per your logic, except for the extreme case where the > selected postcoderegio is deleted while the form is being shown. I guess it is best to take this extreme case into account, the code now reads: if f