-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Michael Bayer ha scritto: > Manlio Perillo wrote: > Here is the code I have: > http://paste.pocoo.org/show/178959/ > > What each plugin do is: > - add additional columns in the select list > - add additional where clauses or order_by clauses > >> I don't see how you are getting column conflicts with that recipe: >
Because each plugin added the additional tables used in the query select list: def get_content_article_by_slug(environ, content_type, query): tables = [schema.content_article, schema.categories] query = query.column(schema.content_article) query = query.column(schema.categories) return query, tables I have refactored the code and now it works without problems. I use both the select method on the Join instance (when the plugins does not need to modify the query object), and the util.folded_equivalents function by hand. I have read the ticket 1131, and it seems that the folded_equivalents function was used, in the ORM, for exactly the same reason as I'm doing now. So, it seems that nobody is doing this without using the ORM. Is it a problem to revoke the deprecation on the folded_equivalents? I don't think I can go without it. Thanks Manlio -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkt7Gc8ACgkQscQJ24LbaUTztQCcC//niqKT21umxaKCXEy4kcPl mWYAoIP4k2kh4awv7EuJgppKwS1jXu/1 =45t9 -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.