[sqlalchemy] Re: how to unit test with SQ

2007-12-18 Thread Paulino
Hello! I have a similar error with SA 4.1.0 and turbogears. session.query(Extrato).filter_by(bank='IF5', data=datetime.datetime.strptime('2007/07/27','%Y/%m/%d')) File "/usr/lib/python2.5/site-packages/SQLAlchemy-0.4.1-py2.5.egg/ sqlalchemy/orm/session.py", line 654, in query q = self._que

[sqlalchemy] Re: how to unit test with SQ

2007-12-18 Thread Paulino
Hello! I have a similar error with SA 4.1.0 and turbogears. session.query(Extrato).filter_by(bank='IF5', data=datetime.datetime.strptime('2007/07/27','%Y/%m/%d')) File "/usr/lib/python2.5/site-packages/SQLAlchemy-0.4.1-py2.5.egg/ sqlalchemy/orm/session.py", line 654, in query q = self._que

[sqlalchemy] Re: how to unit test with SQ

2007-02-11 Thread Michael Bayer
On Feb 10, 8:36 pm, "sqad" <[EMAIL PROTECTED]> wrote: > InvalidRequestError: Class 'str' entity name 'None' has no mapper > associated with it its probably something to do with this: > user.addresses.appent('One Washington','California') which possibly adds a string to a collection that is ex

[sqlalchemy] Re: how to unit test with SQ

2007-02-10 Thread sqad
Ok, i have the basic thing working. But in one test case when I try to update the user with addresses, like so: user=model.User() user.addresses.appent('One Washington','California') session.save(user) session.flush() I get the following message. Can anyone tell me, what does that mean? Finding