Re: [sqlalchemy] session.expire{,_all}_unmodified for dropping objects that are unchanged?!

2018-01-18 Thread Torsten Landschoff
of releases to become the default) would make this an instance of a pit of success <https://blog.codinghorror.com/falling-into-the-pit-of-success/>. Of course this would need quite some effort. Thanks to your help, I think, we are good now: I added a safe_expire helper to our code base using

[sqlalchemy] session.expire{,_all}_unmodified for dropping objects that are unchanged?!

2018-01-17 Thread Torsten Landschoff
about this when writing that code (because I knew the objects in question are clean anyway). Greetings and thanks for any insights, Torsten -- $---+1+2+3+4+5+6+ SCALE GmbH Niederlassung Dresden Torsten Landschoff Pohlandstraße 19 01309 Dresden Tel:

[sqlalchemy] ClassManager.new_instance() still undocumented, fails for polymorphic mappers

2017-11-17 Thread Torsten Landschoff
our hard work in creating SQLAlchemy! Greetings, Torsten -- $---+1+2+3+4+5+6+ SCALE GmbH Niederlassung Dresden Torsten Landschoff Pohlandstraße 19 01309 Dresden Tel: +49-351-312002-10 Fax: +49-351-312002-29 SCALE GmbH Registergericht und Sitz: Ingolstad

Re: [sqlalchemy] Re: Abusing a string column as list of foreign keys (own relationship class, based on DependencyProcessor?)

2016-09-23 Thread Torsten Landschoff
Hi Mike, thanks for the reply. On Thursday, August 25, 2016 at 3:57:30 PM UTC+2, Mike Bayer wrote: > > > > well dependencyprocessor is about doing the objects in the right order, > clear. > and about invoking a command to "sync" important attributes from one > side to the other, which

Re: [sqlalchemy] Re: Abusing a string column as list of foreign keys (own relationship class, based on DependencyProcessor?)

2016-08-25 Thread Torsten Landschoff
Hi Mike, On Wednesday, August 24, 2016 at 1:27:42 PM UTC+2, Mike Bayer wrote: > if you've already solved the problem I'd rather not get into it :) > > I am still curious about the inner workins of the DependencyProcessors of sqlalchemy and how it would be possible to implement a custom

[sqlalchemy] Re: Abusing a string column as list of foreign keys (own relationship class, based on DependencyProcessor?)

2016-08-24 Thread Torsten Landschoff
Hi all, On Wednesday, August 24, 2016 at 3:17:55 AM UTC+2, Torsten Landschoff wrote: > > I am currently pulling my hair out because I have a solution that I think > should work on the database side (albeit I don't like it), but I can't > figure out how to do this with sqlalchemy.

[sqlalchemy] Custom Relationship property for Column with csv of integer keys

2016-08-23 Thread Torsten Landschoff
Hi *, this post is a bit short on data because I just wrote a long posting and it seems to have vanished when I hit the "POST" button. *sigh* I am trying to do something (admittedly crazy) like this, but without the after_flush hook - I'd rather like to tell the ORM that member_ids is

[sqlalchemy] Abusing a string column as list of foreign keys (own relationship class, based on DependencyProcessor?)

2016-08-23 Thread Torsten Landschoff
Hello everybody, I am currently pulling my hair out because I have a solution that I think should work on the database side (albeit I don't like it), but I can't figure out how to do this with sqlalchemy. My current goal is to manage (long-lived) locks on copy-on-write hierarchical data that

Re: [sqlalchemy] Getting the identity key of a mapped instance w/o SQL query

2013-08-31 Thread Torsten Landschoff
/2816 for that. just to verify, state.key does what you want, right? Correct. I was just wondering if the right name for it is key or InstanceState.identity_key, the latter is documented. Thanks and greetings, Torsten - -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten

[sqlalchemy] Getting the identity key of a mapped instance w/o SQL query

2013-08-30 Thread Torsten Landschoff
test for the ObjectDeletedError). Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-312002-10 Fax: +49-(0)351-312002-29 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de DYNAmore Gesellschaft für FEM

Re: [sqlalchemy] SQLAlchemy generates multiple connections

2012-11-28 Thread Torsten Landschoff
an earlier message from you on this list: On 11/09/2012 11:36 PM, Michael Bayer wrote: On Nov 8, 2012, at 5:01 PM, Torsten Landschoff wrote: My first tests with the SQLAlchemy core where promising, but when using the ORM I get a bunch of deadlocks where it seems like the session opens two

Re: [sqlalchemy] SQLAlchemy generates multiple connections

2012-11-28 Thread Torsten Landschoff
Hi Michael, first, thank you for the extensive explanation, it is much appreciated. On 11/28/2012 04:59 PM, Michael Bayer wrote: On Nov 28, 2012, at 6:34 AM, Torsten Landschoff wrote: Let me get that straight: You are saying that a single Session can have *multiple concurrent* connections

Re: [sqlalchemy] SQLAlchemy generates multiple connections

2012-11-28 Thread Torsten Landschoff
, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659, based in Karlsruhe, Managing director: Prof

Re: [sqlalchemy] (SQLite) Outside auto-locking based on SQLAlchemy Events

2012-11-12 Thread Torsten Landschoff
Hi Michael, On 11/09/2012 11:36 PM, Michael Bayer wrote: On Nov 8, 2012, at 5:01 PM, Torsten Landschoff wrote: My first tests with the SQLAlchemy core where promising, but when using the ORM I get a bunch of deadlocks where it seems like the session opens two connections A and B where A locks

[sqlalchemy] (SQLite) Outside auto-locking based on SQLAlchemy Events

2012-11-08 Thread Torsten Landschoff
and commit/rollback session events, but this still created locking errors due to read requests going unchecked. Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch

Re: [sqlalchemy] Automatically merge a specific model/object

2012-04-25 Thread Torsten Landschoff
Hi all, sorry for pulling out this old thread again. I continuously run into this. Am 08/09/2010 11:20 PM, schrieb Michael Bayer: If I'm understanding correctly, that's not as much about merging as it is for the unique object recipe, which is this:

Re: [sqlalchemy] ClassManager.new_instance does not longer initialize polymorphic column

2012-02-01 Thread Torsten Landschoff
deserialization can not go via __init__. Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Stuttgart, HRB 733694

[sqlalchemy] ClassManager.new_instance does not longer initialize polymorphic column

2012-01-31 Thread Torsten Landschoff
fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Stuttgart, HRB 733694 Managing director: Prof. Dr. Karl Schweizerhof, Dipl.-Math. Ulrich Franz

Re: [sqlalchemy] ClassManager.new_instance does not longer initialize polymorphic column

2012-01-31 Thread Torsten Landschoff
On Tue, 2012-01-31 at 12:52 +0100, Torsten Landschoff wrote: However, with SQLAlchemy 0.7.5 I get $ python new_instance.py Traceback (most recent call last): File new_instance.py, line 27, in module session.commit() [...] File /usr/local/lib/python2.6/dist-packages

[sqlalchemy] Fun fact about logging in SA 0.6 (tl;dr: echo=False calls logging.getLogger(sqlalchemy.engine).setLevel(logging.WARN))

2011-09-15 Thread Torsten Landschoff
Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659, based in Karlsruhe, Managing director: Prof. Dr. K. Schweizerhof, Dipl.-Math. U

Re: [sqlalchemy] Make a copy of a select

2011-09-09 Thread Torsten Landschoff
really just calls append_from on the copied select. Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court

[sqlalchemy] Make a copy of a select

2011-09-06 Thread Torsten Landschoff
is an instance of Select? Are there any plans to add a generative way to extend the froms of a Select? ;-) Thanks and Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561

Re: [sqlalchemy] Updating user interface after rollback (using after_rollback SessionExtension?)

2011-08-02 Thread Torsten Landschoff
Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659, based in Karlsruhe, Managing director: Prof. Dr. K. Schweizerhof, Dipl.-Math. U. Franz

[sqlalchemy] Updating user interface after rollback (using after_rollback SessionExtension?)

2011-08-01 Thread Torsten Landschoff
at the MapperExtension in the hope that there is a callback whenever an instance is expired, but does not seem to be such a thing. Hints welcome, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561

[sqlalchemy] with_polymorphic mapper option for future classes

2011-07-20 Thread Torsten Landschoff
mapping the derived class? Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659

[sqlalchemy] correlate between ORM and non-ORM expression

2011-07-12 Thread Torsten Landschoff
Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659, based in Karlsruhe, Managing director: Prof. Dr. K. Schweizerhof, Dipl.-Math. U

Re: [sqlalchemy] correlate between ORM and non-ORM expression

2011-07-12 Thread Torsten Landschoff
On Tue, 2011-07-12 at 17:47 +0200, Torsten Landschoff wrote: How can I correlate the subquery in this context? There is a bunch of correlate methods (Query.correlate, Select.correlate) but I do not really understand how to make use of it here. Okay, I found it: correlate does

Re: [sqlalchemy] SQLAlchemy mapped classes and __new__ (ClassManager.new_instance undocumented)

2011-06-29 Thread Torsten Landschoff
is still supported when using ORM mapped classes and __new__ is not. Is there any reason why the latter is harder to support? Or is it a matter of too little gain (who is using __new__ anyway?) for too much work? Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten

[sqlalchemy] UniqueConstraint breaks combination of ordering_list and association_proxy

2011-06-29 Thread Torsten Landschoff
the unique constraint. Is there a way to do what I want without bigger changes to the code? For now, I will disable the unique constraint again and add some checks to the Python code. Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel

Re: [sqlalchemy] SQLAlchemy mapped classes and __new__ (ClassManager.new_instance undocumented)

2011-06-29 Thread Torsten Landschoff
tacked on.Particularly with pickling this is problematic. Good point, I missed that __new__ might be needed for unpickling. Thanks! Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351

[sqlalchemy] SQLAlchemy mapped classes and __new__ (ClassManager.new_instance undocumented)

2011-06-28 Thread Torsten Landschoff
instance = manager_of_class(MyClass).new_instance() but I am wondering if this should be needed, especially since the ClassManager class is not documented. What should I be using instead? Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office

[sqlalchemy] Using identity_key in after_commit session event (SQLAlchemy 0.6.7)

2011-05-26 Thread Torsten Landschoff
. -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659, based in Karlsruhe, Managing director: Prof. Dr. K

Re: [sqlalchemy] Using identity_key in after_commit session event (SQLAlchemy 0.6.7)

2011-05-26 Thread Torsten Landschoff
On Thu, 2011-05-26 at 08:34 +0200, Torsten Landschoff wrote: basic question: Can I call identity_key in after_commit? If not, are there any alternatives? A bit of extra information: My usage of identity_key stems from this thread on this list: http://groups.google.com/group/sqlalchemy

Re: [sqlalchemy] AttributeError: 'Preprocess' object has no attribute 'detach' during Session.close

2011-05-16 Thread Torsten Landschoff
documented usage which could cause that. If you were to somehow get your mapped object injected into the identity map incorrectly, though you'd have to try fairly hard to pull that off since it guards against incorrect incoming state. On May 3, 2011, at 4:12 AM, Torsten Landschoff wrote

Re: [sqlalchemy] Relationship wrt. inheritance problem (and suggested patch)

2011-05-16 Thread Torsten Landschoff
with. Thank you very much! Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659

[sqlalchemy] AttributeError: 'Preprocess' object has no attribute 'detach' during Session.close

2011-05-03 Thread Torsten Landschoff
/outPYZ1.pyz/sqlalchemy.orm.session, line 766, in expunge_all AttributeError: 'Preprocess' object has no attribute 'detach' This is for SQLAlchemy 0.6.5 as I just noticed - I have to update the deploy machine. Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten

Re: [sqlalchemy] Relationship wrt. inheritance problem (and suggested patch)

2011-04-29 Thread Torsten Landschoff
? Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659, based in Karlsruhe, Managing director

Re: [sqlalchemy] Re: sqlite transaction isolation, select for update, race condition

2011-04-29 Thread Torsten Landschoff
foreign_keys=on since it has to be used outside a transaction. I welcome comments and suggestions about that patch. Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561

[sqlalchemy] Relationship wrt. inheritance problem (and suggested patch)

2011-04-28 Thread Torsten Landschoff
prefer to do it in small steps. -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659, based in Karlsruhe

Re: [sqlalchemy] Running an ORM query during Session after_attach event

2010-12-21 Thread Torsten Landschoff
On Mon, 2010-12-20 at 10:16 -0500, Michael Bayer wrote: On Dec 20, 2010, at 3:42 AM, Torsten Landschoff wrote: INSERT INTO group_items (group_id, item_id, item_order) VALUES (?, ?, ?) (None, None, None) Both the group and the item where created correctly so I ended up with a database

[sqlalchemy] Running an ORM query during Session after_attach event

2010-12-20 Thread Torsten Landschoff
? (I know that session.{dirty, new, deleted} works fine). Thanks and happy holidays, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de

[sqlalchemy] Adding business logic to Session by inheritance?

2010-11-22 Thread Torsten Landschoff
fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659, based in Karlsruhe, Managing director: Prof. Dr. K. Schweizerhof, Dipl

Re: [sqlalchemy] Adding business logic to Session by inheritance?

2010-11-22 Thread Torsten Landschoff
to get the best of both worlds? ;-) Thanks, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659

[sqlalchemy] Avoiding mutable column types

2010-11-22 Thread Torsten Landschoff
dirty instances. Just pondering... Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659

[sqlalchemy] Something like orderinglist for secondary tables?

2010-11-18 Thread Torsten Landschoff
. Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659, based in Karlsruhe, Managing director

Re: [sqlalchemy] Something like orderinglist for secondary tables?

2010-11-18 Thread Torsten Landschoff
. Okay, I updated my example code and it actually works now. However, it feels like a lot of additional complexity just for adding order. Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351

[sqlalchemy] Insert from select?!

2010-11-03 Thread Torsten Landschoff
from users Basically I would like to tell SQLAlchemy to use a query to provide the values for insert. StackOverflow says this can't be done, but I can't believe that. :-) Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0

Re: [sqlalchemy] Insert from select?!

2010-11-03 Thread Torsten Landschoff
-- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659, based in Karlsruhe, Managing director: Prof. Dr. K

Re: [sqlalchemy] Re: SQLite: Rolling back DDL requests

2010-11-02 Thread Torsten Landschoff
Hi Michael, I only noticed the activity on this thread today. On Sat, 2010-08-14 at 11:07 -0400, Michael Bayer wrote: reproduce the problem and it suggests the problem stems from some behaviour of transactions or of the engine.base.Connection class. I don't quite know what to make of it

Re: [sqlalchemy] Storing lists of simple strings

2010-10-28 Thread Torsten Landschoff
Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659, based in Karlsruhe, Managing director: Prof. Dr. K. Schweizerhof, Dipl.-Math. U. Franz

Re: [sqlalchemy] Storing lists of simple strings

2010-10-28 Thread Torsten Landschoff
Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659, based in Karlsruhe, Managing director: Prof. Dr. K. Schweizerhof

Re: [sqlalchemy] Re: alchemy-migrate with DeclarativeBase

2010-07-22 Thread Torsten Landschoff
.__table__ or something like that. In fact I just ran the attached python code which works just fine. Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de

[sqlalchemy] SQLite: Rolling back DDL requests

2010-06-24 Thread Torsten Landschoff
fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659, based in Karlsruhe, Managing director: Prof. Dr. K. Schweizerhof, Dipl.-Math

Re: [sqlalchemy] SQLite: Rolling back DDL requests

2010-06-24 Thread Torsten Landschoff
for anyone who want to do any serious work with sqlite. I tend to agree. Hope this stops somebody from running into the same problem. Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561

Re: [sqlalchemy] Retrieving new instance by identity key?

2010-06-19 Thread Torsten Landschoff
that way. Thanks for your fast reply. I guess I'll go that route than for now. :) Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http

[sqlalchemy] Retrieving new instance by identity key?

2010-06-18 Thread Torsten Landschoff
session.get_instance_by_key(key) to be in the API, but I am unable to find it. Any hints? Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de

Re: [sqlalchemy] Retrieving new instance by identity key?

2010-06-18 Thread Torsten Landschoff
On Fri, 2010-06-18 at 17:05 +0200, Torsten Landschoff wrote: Using that key, I can retrieve the instance again in the new process. But where is the method that can do that? I was expecting something like session.get_instance_by_key(key) to be in the API, but I am unable to find

Re: [sqlalchemy] Re: alchemy-migrate with DeclarativeBase

2010-06-18 Thread Torsten Landschoff
... conn.rollback() I did not create an ORM session before updating the tables as the schema might not match the mapped classes before updating. Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561

[sqlalchemy] Protection against changes outside of (explicit) transactions

2010-05-25 Thread Torsten Landschoff
), expire all persistent objects and refresh the GUI Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Büro Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registergericht: Mannheim

Re: [sqlalchemy] Protection against changes outside of (explicit) transactions

2010-05-25 Thread Torsten Landschoff
Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659, based in Karlsruhe, Managing director: Prof. Dr. K. Schweizerhof, Dipl.-Math. U. Franz -- You

Re: [sqlalchemy] Mapping dictionaries with string keys and record values

2010-04-26 Thread Torsten Landschoff
fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659, based in Karlsruhe, Managing director: Prof. Dr. K. Schweizerhof, Dipl.-Math

Re: [sqlalchemy] Mapping dictionaries with string keys and record values

2010-04-26 Thread Torsten Landschoff
Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659, based in Karlsruhe, Managing director: Prof. Dr. K. Schweizerhof, Dipl.-Math. U

Re: [sqlalchemy] Mapping dictionaries with string keys and record values

2010-04-26 Thread Torsten Landschoff
Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659, based in Karlsruhe, Managing director: Prof. Dr. K. Schweizerhof, Dipl.-Math. U. Franz -- You

[sqlalchemy] Mapping dictionaries with string keys and record values

2010-04-25 Thread Torsten Landschoff
). Shouldn't something like this be included with SQLAlchemy? Or is this a bad idea? Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http

[sqlalchemy] Unifying large objects on commit/flush

2010-03-26 Thread Torsten Landschoff
Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registergericht: Mannheim, HRB: 109659, Sitz: Karlsruhe, Geschäftsführer: Prof. Dr. K. Schweizerhof, Dipl.-Math. U. Franz -- You

Re: [sqlalchemy] Unifying large objects on commit/flush

2010-03-26 Thread Torsten Landschoff
when the second SA book will be published? I bought the Essential SA book but it is a bit outdated covering 0.4.x. Thanks, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden mailto:torsten.landsch...@dynamore.de http://www.dynamore.de