So I have this very complicated legacy TurboGears application that I'm
tasked with upgrading to 1.0.8 which has laid stagnant since the days
of early .99 series.
The original author used the following a lot in his table definitions:
class sqlmeta:
style = MixedCaseStyle(longID=True)
What this means is that instead of the id column being named 'id' it
takes on the name of the table...so if the table is called EventQueue,
the id column name is EventQueueID.
So far so good....but here's where it gets weird.
It appears that under the really old versions of TurboGears one could
refer to this EventQueueID as just .id and everything would work the
way you want it to. (This appears to only be done in the app under
kid templates).
But now, under 1.0.8 that doesn't work. Either I have to rename the
column to id or I have to refer to it as EventQueueID.
How can I make sqlObject seemlessly let me refer to columns named in
the long style just using id?
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---