On Dec 28, 2011, at 2:19 AM, Ahmed wrote:

> I guess being able to refer to the bases from third party libraries is
> important.
> 
> 
> user_groups = Table('user_groups', base.metadata,
>                        Column('user_id', Integer,
> ForeignKey('User.id')),
>                        Column('group_id', Integer,
> ForeignKey('Group.id'))
>                        )
> 
> class UserMixin(object)
>    @declared_attr
>    def groups(self):
>        return relationship("Group", secondary=user_groups)
> 
> 
> So you see, without the ability to refer to my application base, I
> cannot add this part of to the boilerplate code in the separate

That's fine, I'm talking more about class hierarchies that need to share the 
same base.   Your system is based on mixins, which means they have less of an 
assumption about schema.




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

Reply via email to