--On 12. Mai 2007 11:22:51 -0400 Michael Bayer <[EMAIL PROTECTED]> wrote:
ok, you mean a "mapped" class, right ? i.e.the History class. i dont exactly understand why you cant just say "History", so heres the most generic way possible to go from 'self' to the class used on a relation:
Basically this is a limitation (or call it a feature) of z3c.sqlalchemy where the complete mapper handling is handled through a wrapper which isn't available in the context of a mapper instance (unless you pass the wrapper around).
class_mapper(self.__class__).props['history'].mapper.class_
Thanks this works! Andreas
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
-- ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany Web: www.zopyx.com - Email: [EMAIL PROTECTED] - Phone +49 - 7071 - 793376 Registergericht: Amtsgericht Stuttgart, Handelsregister A 381535 Geschäftsführer/Gesellschafter: ZOPYX Limited, Birmingham, UK ------------------------------------------------------------------------ E-Publishing, Python, Zope & Plone development, Consulting
pgpKRN9gr0FGi.pgp
Description: PGP signature
