this change is just below the nitems line in t2.py... On Tue, Nov 18, 2008 at 11:59 AM, Wes James <[EMAIL PROTECTED]> wrote: > How about also changing: > > return TABLE(_class='t2-itemize', > *nav+[TR(represent(tables[0],row)) for row in rows]) > > to > > return TABLE(_class='t2-itemize', > *nav+[TR(represent(tables[0],row)) for row in > rows]+nav) > > so there is a nav at the bottom of the output too. > > (I tried "*nav" at the end and that did not work but "nav" did. Why, > when there is a *nav at the beginning? > > -wj > > On Tue, Nov 18, 2008 at 11:48 AM, Yarko Tymciurak <[EMAIL PROTECTED]> wrote: >> good - that makes sense; I'll send a doc patch to Massimo for T2 (it >> doesn't affect code, so don't worry). >> >> On Tue, Nov 18, 2008 at 12:36 PM, Wes James <[EMAIL PROTECTED]> wrote: >>> >>> oops, it is working. I had nitem=10 instead of nitems=10. >>> >>> So this does work: >>> >>> default.py controller >>> >>> def function() >>> return dict(var=t2.itemize(db.dbname,nitems=10)) >>> >>> -wj >>> >>> On Tue, Nov 18, 2008 at 11:30 AM, Wes James <[EMAIL PROTECTED]> wrote: >>> > the odd thing is, I change the 25 to 10 in the t2.py file on the >>> > nitems line and it works right - 10 items per page >>> > >>> > On Tue, Nov 18, 2008 at 11:29 AM, Wes James <[EMAIL PROTECTED]> wrote: >>> >> i should add, it shows 25 items per page with nitems=10 >>> >> >
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---