hi,
i used to do something like this, i.e. adding information about urls,
views, etc. to sqlalchemy models, but found this to be inflexibel. Now
I keep URL-related information in the web app's routing component, and
to solve problems like the one you pose, I use zca adapters [1] (which
is easier when using pyramid, because you already have a component
registry available). So with this technology you'd register the same
FeedItem class as adapter for the various sqlalchemy models, which
means that at adaption time, the object to adapt will be passed to
you.
regards
robert
[1]
http://www.muthukadan.net/docs/zca.html
> --
> You received this message because you are subscribed to the Google Groups
> "sqlalchemy" group.
> To post to this group, send email to
sqlal...@googlegroups.com.
> To unsubscribe from this group, send email to
>
sqlalchemy+...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/sqlalchemy?hl=en.