I wanna to make a "Search Pagination" with SQLObject and kid.
Expect result is: "| 0 | 1 | 2 | 3 |"
The question is "How to select ten entries as a set and then offset to
next set"?
I tried the "Class.select(expr.., limit=10)" but nothing happen at all.
my controller.py expose function is:
a = TableEntry.select(TableEntry.q.fieldA == True, orderBy='fieldB')
return dict(context = a)
my kid template is
| <span py:for = " i in range((context.count()/10)+1)"> <a
href="/">${i}</a> | </span>
which context.count() will return total queried entry numbers.
--
Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---