Re: [sqlalchemy] Not loading a kind of elements

2011-02-02 Thread slothy Rulez a lot
It's working!!!, thanks! 2011/2/1 Michael Bayer > The query itself has to not load the row in the first place. There's a > recipe for that here: > > http://www.sqlalchemy.org/trac/wiki/UsageRecipes/PreFilteredQuery > > > On Feb 1, 2011, at 11:46 AM, slothy

[sqlalchemy] Not loading a kind of elements

2011-02-01 Thread slothy Rulez a lot
onstructor like this: @orm.reconstructor def init_onload(self): if not self.active: Session.expunge(self) Session.commit() But, objects still appear. Any idea? Thanks, and as always, sorry by my poor English. -- Alex. Slothy, the Angry Wombat http://angrywombat.comuv.com

[sqlalchemy] Sqlite3 auto

2011-01-28 Thread slothy Rulez a lot
HAR(127) NOT NULL, nombre TEXT, eliminado INTEGER, padre INTEGER, PRIMARY KEY (id, eid), FOREIGN KEY(padre) REFERENCES elementos_multinacionales (id) ) id = Column(Integer,primary_key=True,nullable=True) eid = Column(String(132),primary_key=True) What i'm doing wrong? Thank you.

[sqlalchemy] dynamic modification of foreign keys sqlalchemy

2010-12-01 Thread slothy
Hi! I'm creating a structure of "elements" dynamically with declarative, and I'm not sure if I can modify the mapper to get the new elements related with a FK. Sorry about my english, is very poor. This is my function class factory: def nuevaEtiqueta(self, nombre_etiqueta): etiqueta = nombre