Am 16.04.2010 10:31 schrieb jose soares:
I found the difference between my model and your and it is the
column_prefix:
Ok, that explains at lot. I foudn that the paginate decorator actually
considered column prefixes when getting the columns, but since SA 0.4.1
it seems these must *not* be considered any more since it is done
internally now.
I have fixed this in the TG 1.x branches now, the fix will be available
with TG 1.1.2.
To patch your TG 1.1.1 installation, search for the line
colname = propnames.pop()[len(mapper.column_prefix or ''):]
in turbogears/paginate.py and remove everything in square brackets, so
you have only colname = propnames.pop()
Let me know how it works.
-- Christoph
--
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.