[sqlalchemy] Re: relation metainfo

2008-06-09 Thread Michael Bayer
On Jun 9, 2008, at 1:09 AM, [EMAIL PROTECTED] wrote: > > okay here anopther way to represent it. "this" side is the given > prop/descriptor, and then the hops towards "other" end side: > > MtoN: >containerthis: getattr( prop.parent.class_, prop.key) > midthis: getattr( prop.secondary, pr

[sqlalchemy] Re: relation metainfo

2008-06-09 Thread az
okay here anopther way to represent it. "this" side is the given prop/descriptor, and then the hops towards "other" end side: MtoN: containerthis: getattr( prop.parent.class_, prop.key) midthis: getattr( prop.secondary, prop.remote_side[0]) -> this: getattr( prop.parent.class_, p

[sqlalchemy] Re: relation metainfo

2008-06-09 Thread az
On Monday 09 June 2008 03:56:20 Michael Bayer wrote: > On Jun 8, 2008, at 5:02 AM, [EMAIL PROTECTED] wrote: > > hi > > i'm trying to make a metainfo extractor off some relation > > attribute. by metainfo i mean the klas and attr-name of this and > > of the other side of the relation-attribute, or

[sqlalchemy] Re: relation metainfo

2008-06-08 Thread Michael Bayer
if you're trying to detect a relation which holds a collection, look at prop.uselist. don't use any isinstance() stuff. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send

[sqlalchemy] Re: relation metainfo

2008-06-08 Thread Michael Bayer
On Jun 8, 2008, at 5:02 AM, [EMAIL PROTECTED] wrote: > > hi > i'm trying to make a metainfo extractor off some relation attribute. > by metainfo i mean the klas and attr-name of this and of the other > side of the relation-attribute, or of the parent or child of the > relation regardless the sta