[sqlalchemy] Re: Cascade Deletes

2011-08-08 Thread Stefano Fontanelli
Il 08/08/11 22.53, Aviv Giladi ha scritto: Dear Stefano, I have been able to create a reproducing project. I am sending it to you directly because I was unable to figure out how to attach the test file to the message board. I will post our findings there once we are done. The included scrip

[sqlalchemy] Re: Cascade Deletes

2011-08-08 Thread Aviv Giladi
Stefano, Thank you again for your time. I am sorry for not posting my actual code - it is sensitive, therefore I am trying to reproduce the same issue with different code. In my __init__ function of my Rating I am setting 3 members that are objects like so: self.member = member These members

[sqlalchemy] Re: keyword-only arguments in entity constructor confuse mapper

2011-08-08 Thread Phazorx
this is from the entity constructor: def __init__(self, *, login, password): this is the test for initialization with positional arguments: def test_incorrect_instantiation_positional(self): with self.assertRaises(TypeError): User("login", "password") It passes like