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
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
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.
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