[sqlalchemy] ORM: dictionary with strings as keys and strings as values

2018-04-04 Thread Olaf
could use a PickleType but I need to be able to requete it with SQL... Thank you ! Olaf -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://s

[sqlalchemy] Generic Association, MutableList and Postgresql Array

2017-12-04 Thread Olaf
Hello, This mail is the continuation of this question: https://groups.google.com/forum/#!topic/sqlalchemy/Ba7urbeZBqQ The problem being different, I prefer to open a new topic. I am currently meeting a problem regarding generic associations and the use of MutableList associated to

[sqlalchemy] Re: Two classes linked to the same backref attribute in a third classe

2017-11-26 Thread Olaf
Thank you. Yes, it could be interesting to use SQLAlchemy functionalities to reduce all these metaclass conflicts. But, is it possible, in the "on_new_class" method, to access to the 'name', 'bases' and 'attrs' attributes habitually gived by the _init_ method of a metaclass ? I tried to search

[sqlalchemy] Re: Two classes linked to the same backref attribute in a third classe

2017-11-21 Thread Olaf
generated. I was more interested by the discriminator_on_association. But after some tests, I find that the table_per_related solution works fine and the database is cleaner as I expected. Thank you guys ! Olaf -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http

[sqlalchemy] Two classes linked to the same backref attribute in a third classe

2017-11-14 Thread Olaf
ot;, line 1661, in do_init self._generate_backref() File "C:\Python34\lib\site-packages\sqlalchemy\orm\relationships.py", line 1851, in _generate_backref (backref_key, self, m)) sqlalchemy.exc.ArgumentError: Error creating backref 'parent' on relationship 'Animal.description': property of