Thank you!,
I think i'm understanding one part of what happened, thanks to you,
and the final example from Graham, was exactly what i needed,
the thing is that the metadata i used to set the association table was
not "linked" to the one used in the declarative objects.

i just replaced,
# The declarative Base
Base = declarative_base()
metadata = MetaData()

by
# The declarative Base
Base = declarative_base()
metadata = base.metadata

in __init__.py and the problem is gone.

On 12 déc, 12:38, Graham Higgins <[email protected]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 11 Dec 2010, at 14:16, Yohann REBATTU wrote:
>
> > Hello, i'm trying to use the declarative way (recomanded for
> > sqlalchemy 0.5+) to set up a pylons model, and i'm stuck with a pretty
> > simple many to many relationship.
>
> This other example might help:
>
> http://bitbucket.org/gjhiggins/shabti/src/97941e68880c/shabti/templat...
>
> - --
> Cheers,
>
> Graham
>
> http://bel-epa.com/gjh/
>
> -----BEGIN PGP SIGNATURE-----
>
> iEYEARECAAYFAk0EtFEACgkQOsmLt1NhivxRXwCfSbO1w8VyUlrYEGuJm/JLx4ph
> w1MAoMnGMJpJxG6klb0XWaWTHxhHLI92iQCVAgUBTQS0UVnrWVZ7aXD1AQLmvwP/
> Yw7i1K/xFMsJ/C+LC/WOtpeXnXNKaPP31OCAGs01y2KeVD9DnbO87qKUTgXKTg+3
> vZO86k7oK+fzkGzw6LjjIIqtG86Kupnhu1TnWB02ftqoIoicEw4N8LHKZFh3Kle6
> 7VIDgLkbIj+zOl0324bP6fG4FAGdzHqzepWSqrGk4vg=
> =zU6u
> -----END PGP SIGNATURE-----

-- 
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