didn't work - went back to 25 items per page

On Tue, Nov 18, 2008 at 11:20 AM, Yarko Tymciurak <[EMAIL PROTECTED]> wrote:
> Is this an error in documentation?
> limitby is a db.select() parameter;
> Looking at the t2.itemize code, it looks to be computed, and setup by
> sending the parameter 'nitems'  (which defaults to 25).
> Try calling with:
> t2.itemize(db.mytable, query=db.mytable.id>0,nitems=my_page_size)
>
> On Tue, Nov 18, 2008 at 11:00 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> wrote:
>>
>> I just went in to t2.py and changed 25 to 10, took limitby out of the
>> controller code and it works now 10 items at a time.  Why does limitby=
>> (0,10) not work??
>>
>> thx,
>>
>> -wj
>>
>> On Nov 18, 9:33 am, "Wes James" <[EMAIL PROTECTED]> wrote:
>> > ok i'm using the limitby wrong.  I took out my limitby=(0,10) thinking
>> > that meant give me 10 pages at a time.  It now is using the 25 at a
>> > time and is working fine.  how do i do 10 pages at a time?
>> >
>> > On Tue, Nov 18, 2008 at 8:56 AM, Wes James <[EMAIL PROTECTED]> wrote:
>> > > I defined a lambda, but clicking on [ next page ] still only gives me
>> > > page 1.
>> >
>> > > On Mon, Nov 17, 2008 at 4:32 PM, mdipierro <[EMAIL PROTECTED]>
>> > > wrote:
>> >
>> > >> I have answered tihis just now in another thread
>> >
>> > >> On Nov 17, 4:49 pm, "Wes James" <[EMAIL PROTECTED]> wrote:
>> > >>> I put this in a view:
>> >
>> > >>> {{extend '../../plugin_t2/views/layout.html'}}
>> > >>> {{=schols}}
>> >
>> > >>> And it displays like I said before (plus i added [next page] here)
>> >
>> > >>> [next page]
>> > >>> [#1] field1
>> > >>> ...
>> > >>> [#10] field1
>> >
>> > >>> When I click on  [ next page ] it shows #1 - #10 again.  The url
>> > >>> changes to ..../schols?_page=1 - it should show items #11 - #20
>> >
>> > >>> -wj
>>
>
>

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

Reply via email to