This seems to be a problem going back to tgext.crud, seems like the
special paginator that tgext.crud uses does not follow the __len__
protocol strictly and python raises this error.

Normally the length of the list or collection is given as an int, but
I imagine psycopg2 returns a long somewhere and the class
SmartPaginationCollection does not check this and just uses it as is.

I will fill a bug later on github, I already have a working patch but
perhaps this needs some fixing deeper on.

Regards,
Carlos Daniel Ruvalcaba Valenzuela

On Mon, Nov 5, 2012 at 11:48 AM, Carlos Daniel Ruvalcaba Valenzuela
<[email protected]> wrote:
> Perhaps you can share your shema/models?, I have a related problem
> that is triggered by a specific model, not sure what it is, seems like
> datetime fields, but I will try to go deep into this afternoon and
> would be helpful to check your problems at once (as they seem
> related).
>
> Regards,
> Carlos Daniel Ruvalcaba Valenzuela
>
> On Mon, Nov 5, 2012 at 9:09 AM, Fernando González
> <[email protected]> wrote:
>>> Hi, same problem here.
>>>
>>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "TurboGears" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/turbogears/-/nQumyCfd7r4J.
>>
>> 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?hl=en.

-- 
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?hl=en.

Reply via email to