Re: [sqlalchemy] validate collections

2016-05-21 Thread Tim-Christian Mundt
> Am 11.05.2016 um 17:38 schrieb Mike Bayer : > > On 05/11/2016 03:39 AM, Tim-Christian Mundt wrote: >> Ok, a complete MCVE looks like that: >> >> >> from sqlalchemy import Column, ForeignKey, Integer, String, create_engine, >> event >> from

Re: [sqlalchemy] validate collections

2016-05-11 Thread Mike Bayer
On 05/11/2016 03:39 AM, Tim-Christian Mundt wrote: Ok, a complete MCVE looks like that: from sqlalchemy import Column, ForeignKey, Integer, String, create_engine, event from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import backref, relationship, sessionmaker

Re: [sqlalchemy] validate collections

2016-05-11 Thread Tim-Christian Mundt
Ok, a complete MCVE looks like that: from sqlalchemy import Column, ForeignKey, Integer, String, create_engine, event from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import backref, relationship, sessionmaker Base = declarative_base() class Entity(Base):

Re: [sqlalchemy] validate collections

2016-05-05 Thread Mike Bayer
On 05/03/2016 06:28 PM, Tim-Christian Mundt wrote: I have entities which I’d like to tag with tags from a vocabulary. The associations between entities and tags are implemented with „manual M:N“, because they carry more information. class Entity(Base): id = Column(Integer,

[sqlalchemy] validate collections

2016-05-03 Thread Tim-Christian Mundt
I have entities which I’d like to tag with tags from a vocabulary. The associations between entities and tags are implemented with „manual M:N“, because they carry more information. class Entity(Base): id = Column(Integer, primary_key=True) tags = relationship('TagAssociation',