It was documented On the example page!  :) However since the book is the law
on what is considered "compatibility", its all good.

-Thadeus




On Fri, Oct 23, 2009 at 2:26 PM, mdipierro <mdipie...@cs.depaul.edu> wrote:

>
> There was a time when we called the variable pools (not pool_size) but
> it was never documented so we do not need to keep backward
> compatibility (unless there are objections).
> I will fix it.
>
> On Oct 23, 2:10 pm, Thadeus Burgess <thade...@thadeusb.com> wrote:
> > On
> >
> > http://www.web2py.com/examples/default/dal
> >
> > Line one
> >
> > db = DAL(‘postgres://user:passw...@hostname/db’, pools=10)
> >
> > there is no pools declarative it should be pool_size,
> >
> > Is this a typo in documentation? the book uses pool_size
> >
> > For the heck of it, it can be patched for backwards compatibility:
> >
> > +def DAL(uri, pool_size=0, pool=None):
> > +    if pool and not pool_size:
> > +        pool_size = pool
> >
> > -Thadeus
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to