I've run into a minor stumbling block.

My metadata table is set up as a relationship rather than
Base.metadata.  Since I needed to expose sorttree which would attached
to the Base.metadata record, I was unsure how to modify that record
using normal methods.  I'm thinking that I might be able to use
reflection to expose sorttree and the Base.metadata with association
proxy, but, I'm still not having a lot of luck.

Content -> Page -> blockname
                         -> blockname2
                         -> blockname3

Where blockname would be something like

header -> elementa
           -> elementb
           -> elementc


What I want to do is pass the Content -> Page -> header object to a
class.

Something like:    h.CMS(content.page['header'])

so that h.CMS will see

object[ elementa, elementb, elementc ]


If that is the case, it appears I need to put the association proxy
object on Content rather than on my metadata class?  Since my tables
are all DeclarativeBase I'm having a bit of trouble getting that 'aha'
moment.  :)

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" 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/sqlalchemy?hl=en.

Reply via email to