sandro dentella wrote:
> Hi,
> 
>   is there a way I can get the mapper from a class?
>   suppose I made:
> 
>   m = mapper(User, user_table)
> 
>   m holds my mapper. Is there a way o get the same mapper from The
> User class?

Yep:

   m = sqlalchemy.orm.class_mapper(User)

-j

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
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