[sqlalchemy] Generating a _BinaryExpression

2009-04-01 Thread Hinrich Winther
in sqlalchemy. Where is it defined? Sincerely, Hinrich Winther. smime.p7s Description: S/MIME cryptographic signature

[sqlalchemy] Re: Generating a _BinaryExpression

2009-04-01 Thread Hinrich Winther
Maybe there is a better way of doing it. To be exact: I want to disassemble a given _BinaryExpression into basic elements (a list of strings, arrays, integers ...) and reassemble it somewhere else out of this basic elements. On 01.04.2009, at 18:14, Michael Bayer wrote: Hinrich

[sqlalchemy] Test if values of a mapped object are valid for commiting / Get information about mapped values

2008-12-14 Thread Hinrich Winther
Hi, I am using SQLAlchemy 0.5rc4. Is there a way to test if the values of an object are valid for commiting? I tried something like: try: session.commit() except: notify the user But the problem is, that if the commit fails and I change the non valid value to a valid one the

[sqlalchemy] Re: Test if values of a mapped object are valid for commiting / Get information about mapped values

2008-12-14 Thread Hinrich Winther
I am using SQLAlchemy 0.5rc4. Is there a way to test if the values of an object are valid for commiting? I tried something like: try: session.commit() except: notify the user But the problem is, that if the commit fails and I change the non valid value to a valid one the

[sqlalchemy] Transfer an object from one session to another

2008-11-22 Thread Hinrich Winther
Hi, How do I something like myObject = session1.query(something).one() session2.add(myObject) without the need to expunge myObject from session1? and another one: How can I compare objects from different sessions to see if they origin from the same row in the db? Regards, Hinrich.

[sqlalchemy] Re: Advanced? mapping question

2008-10-25 Thread Hinrich Winther
Hi Michael, Thank you so much! It works like a charm. Damn, it is so wicked cool :) On 23.10.2008, at 21:02, Michael Bayer wrote: On Oct 23, 2008, at 1:32 PM, Hinrich Winther wrote: Hi, I have tried to implement all day now. The problem is, that the values of the parent chartItem

[sqlalchemy] Re: Advanced? mapping question

2008-10-23 Thread Hinrich Winther
in child items. I really hate option 2. So would it be possible to somehow implement option 1? Regards, Hinrich Winther. On 22.10.2008, at 19:43, Michael Bayer wrote: oh, ok. Here's a simplified case: from sqlalchemy import * from sqlalchemy.orm import * engine = create_engine('sqlite

[sqlalchemy] Re: Advanced? mapping question

2008-10-22 Thread Hinrich Winther
On 21.10.2008, at 20:22, Michael Bayer wrote: There's a couple of odd practices here, and removing each one individually may narrow down where things are going wrong. 1. What happens if you use the correct class, patient.op_ci_implant(), instead of chartitem which does not match the given

[sqlalchemy] Advanced? mapping question

2008-10-21 Thread Hinrich Winther
you very much, Hinrich Winther. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL