[sqlalchemy] IntegrityError on Association Proxy

2014-11-26 Thread Erkan Özgür Yılmaz
Hi, I've encountered a situation where I don't know if this is a bug or it is the correct behavior. It is about association_proxy. Please see the User.__init__ and Department.__init__ methods. from sqlalchemy import * from sqlalchemy.orm import * from sqlalchemy.ext.declarative import

[sqlalchemy] Re: IntegrityError on Association Proxy

2014-11-26 Thread Erkan Özgür Yılmaz
On Thu, Nov 27, 2014 at 12:39 AM, Erkan Özgür Yılmaz eoyil...@gmail.com wrote: Hi, I've encountered a situation where I don't know if this is a bug or it is the correct behavior. It is about association_proxy. Please see the User.__init__ and Department.__init__ methods. from sqlalchemy

Re: [sqlalchemy] IntegrityError on Association Proxy

2014-11-26 Thread Erkan Özgür Yılmaz
. http://docs.sqlalchemy.org/en/rel_0_9/orm/session.html#sqlalchemy.orm.session.Session.no_autoflush On Nov 26, 2014, at 6:00 PM, Erkan Özgür Yılmaz eoyil...@gmail.com wrote: As I understand it is not related with the __init__() methods or how I initialize the attributes Erkan Ozgur Yilmaz

[sqlalchemy] Association Proxy with Events (working very nice but there is a problem)

2014-01-28 Thread Erkan Özgür Yılmaz
Hi everybody, I'm trying to use Association Proxy in one of my classes relation to itself. I've got a Task class and Tasks can be dependent to each other, and I've also wanted to store the dependency type ('start-to-start', 'start-to-end' etc.), so AssociationProxy was the way I've gone. Any way

[sqlalchemy] CircularDependencyError, why?

2011-09-07 Thread Erkan Özgür Yılmaz
The following gives CircularDependencyError where I think there isn't, but you know I don't know that much the internals of SQLAlchemy and maybe (and it is a strong possibility) I'm wrong. I've ripped of the classes causing the error (copy/paste will re-produce the error). from sqlalchemy import

Re: [sqlalchemy] CircularDependencyError, why?

2011-09-07 Thread Erkan Özgür Yılmaz
Oh, that worked very well, thank you very much... E.Ozgur Yilmaz Lead Technical Director eoyilmaz.blogspot.com On Wed, Sep 7, 2011 at 8:04 PM, Michael Bayer mike...@zzzcomputing.comwrote: On Sep 7, 2011, at 12:36 PM, Erkan Özgür Yılmaz wrote: The following gives CircularDependencyError

Re: [sqlalchemy] one-to-many with mixins in inherited classes

2011-09-07 Thread Erkan Özgür Yılmaz
this group at http://groups.google.com/group/sqlalchemy?hl=en. On Sep 4, 2011, at 3:18 PM, Erkan Özgür Yılmaz wrote: from sqlalchemy import Column, ForeignKey, Integer, String from sqlalchemy.orm import relationship, validates from sqlalchemy.ext import declarative from

[sqlalchemy] class_variable as polymorphic_identity

2011-01-18 Thread Erkan Özgür Yılmaz
Hi everybody, (fast start :) ) I have a class hierarchy and I'm using joined table inheritance, but my classes are not always going to be used with SQLAlchemy (or I plan to give the freedom to people to use these classes anywhere they want). Anyway I was using the entity_type column in my base

Re: [sqlalchemy] class_variable as polymorphic_identity

2011-01-18 Thread Erkan Özgür Yılmaz
itself but the design of the database. Thank you again... E.Ozgur Yilmaz Lead Technical Director eoyilmaz.blogspot.com www.ozgurfx.com On Tue, Jan 18, 2011 at 5:56 PM, Michael Bayer mike...@zzzcomputing.comwrote: On Jan 18, 2011, at 9:42 AM, Erkan Özgür Yılmaz wrote: Hi everybody, (fast

[sqlalchemy] ObjectDeletedError

2011-01-11 Thread Erkan Özgür Yılmaz
Hi all, This is my first question regarding to SQLAlchemy, you can count me as a newbie. Here is my problem: I've this inheritance between my Python classes, everything were working fine until last night when I've added another class to my inheritance hierarchy. I've tried to find the cause of

Re: [sqlalchemy] ObjectDeletedError

2011-01-11 Thread Erkan Özgür Yılmaz
AM, Erkan Özgür Yılmaz wrote: Hi all, This is my first question regarding to SQLAlchemy, you can count me as a newbie. Here is my problem: I've this inheritance between my Python classes, everything were working fine until last night when I've added another class to my inheritance hierarchy