[Sqlalchemy-users] about colum's key value

2005-12-14 Thread limodou
I found that: >>> from sqlalcemy import * >>> sqlite_engine = create_engine('sqlite://filename=d:/test.db', echo=True) >>> RssCategory = Table('rss_category', sqlite_engine, ...Column('id', Integer, primary_key = True), ...Column('title', String, nullable = False) ... ) >>> print re

[Sqlalchemy-users] Re: Bug report:TypeError: get_params() keywords must be strings

2005-12-14 Thread limodou
在 05-12-15,limodou<[EMAIL PROTECTED]> 写道: > -- Forwarded message -- > From: limodou <[EMAIL PROTECTED]> > Date: 2005-12-15 下午1:16 > Subject: Bug report:TypeError: get_params() keywords must be strings > To: [EMAIL PROTECTED] > > > First I create a table like that: > > from sqlalchem

[Sqlalchemy-users] Fwd: Bug report:TypeError: get_params() keywords must be strings

2005-12-14 Thread limodou
-- Forwarded message -- From: limodou <[EMAIL PROTECTED]> Date: 2005-12-15 下午1:16 Subject: Bug report:TypeError: get_params() keywords must be strings To: [EMAIL PROTECTED] First I create a table like that: from sqlalchemy import * sqlite_engine = create_engine('sqlite://filename

Re: [Sqlalchemy-users] Many to many problem?

2005-12-14 Thread Michael Bayer
Hey Robert - I checked in a tiny patch to alleviate the recursive problem with the particular test case you have below, and added the test to test/ manytomany.py as M2MTest2.testcircular. so now the test passes completely. changeset: http://www.sqlalchemy.org/trac/changeset/713 So while

Re: [Sqlalchemy-users] Many to many problem?

2005-12-14 Thread Michael Bayer
ah ill take a look, it is definitely sensitive to recursion issues which I thought i had fixed but I will try that one out. the remove () issue is probably just a method that I am not covering properly. I also might want to look more closely at the case where, you loaded object A, object B

[Sqlalchemy-users] two questions

2005-12-14 Thread limodou
I'm newbie to sqlalchemy, and I'v two questions want to ask: 1. Is there a easy way to detect a table has exist? 2. How to using transaction? Can anyone send me some info? Thanks very much. I'm learning this module now. -- I like python! My Blog: http://www.donews.net/limodou NewEdit Maillist:

Re: [Sqlalchemy-users] new SQLAlchemy goodies

2005-12-14 Thread Robert Leftwich
Michael Bayer wrote: I attended to the issues of "select_by" and "select_by_col_name" tonight, as more people made the same comment that it was needed. As it turns out, I implemented the method with an extra twist which makes it better than anticipated. Now heres the twist. The key

Re: [Sqlalchemy-users] Many to many problem?

2005-12-14 Thread Robert Leftwich
Michael Bayer wrote: hey folks - I just checked in the "backref" feature. There is a recursion problem when deleting items out of a m:n mapped relationship: studentTbl = Table('student', engine, Column('name', String, primary_key=True)) courseTbl = Table('course', engi