[sqlalchemy] Re: many to many in base

2008-12-14 Thread grat
base(metadata=meta) > > On Dec 14, 2008, at 2:33 PM, grat wrote: > > > > > Base = declarative_base() --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this grou

[sqlalchemy] many to many in base

2008-12-14 Thread grat
hi, next construct make this error: sqlalchemy.exc.NoReferencedTableError: Could not find table 'skupiny' with which to generate a foreign key and i dont find any idea, where is my bug. --- engine = create_engine ("sqlite:///:memory:",echo=True,convert_unicode=F

[sqlalchemy] Re: date in sqlite

2008-12-14 Thread grat
thanks, this is my mistake, premiera x termin On 11 Pro, 16:52, Michael Bayer wrote: > the name of your Date column is "premiera", I dont see a "termin"   > column specified in the example ? > > On Dec 11, 2008, at 7:35 AM, grat wrote: > > > > &g

[sqlalchemy] date in sqlite

2008-12-11 Thread grat
Hi, i have this table: class ZmenaDH(Base): __tablename__="zmenahost" id = Column(Integer,primary_key=True) duvod=Column(String(120)) premiera=Column(Date) id_solo = Column(Integer, ForeignKey('sola.id')) solo = relation("Solo", backref=backref('zmenahost', order_by=id,