Very cool! I'll give it a try. I was jsut worried about having to do
a couple of .select() calls every time.

Thank you.
Nicky

On 3/23/06, Max Ischenko <[EMAIL PROTECTED]> wrote:

You can trick datagrid into thinking that your list is actually a
SelectResults instance:

class _SearchResultAdapter(list):
    def count(self):
        return len(self)

def SearchResultAdapter(results):
    try:
        results.count()
    except TypeError:
        results = _SearchResultAdapter(results)
    return results

data = "" # if you're unsure what data is
or
data = "" # if you're sure data is a list
G-Mail Account
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to