[Sqlalchemy-users] small threadlocal change

2006-05-24 Thread Sean Cazzell
Got rid of (apparently) unnecessary _mapper_extension() function. -Sean Index: lib/sqlalchemy/mods/threadlocal.py === --- lib/sqlalchemy/mods/threadlocal.py (revision 1502) +++ lib/sqlalchemy/mods/threadlocal.py (working copy) @@ -2

Re: [Sqlalchemy-users] 0.2 merge ?

2006-05-24 Thread Jonathan Ellis
On 5/24/06, Michael Bayer <[EMAIL PROTECTED]> wrote:     - SqlSoup needs to be converted (and maybe get some unit tests)I should have time to do the conversion soon.  (Sounds like it will be pretty simple.)(It does have unit tests, using doctest.) -- Jonathan Ellishttp://spyced.blogspot.com

Re: [Sqlalchemy-users] 0.2 merge ?

2006-05-24 Thread Todd Grimason
* Jonathan LaCour [2006-05-24 20:19]: > > >The current status of the 0.2 branch is: > >Good: > >- ActiveMapper has been migrated and all of its unit tests pass > > Wow! This is great news. Who did this work? > Some slacker named 'zzzeek': http://sqlalchemy.org/trac/changeset/1482 Actually, I

Re: [Sqlalchemy-users] 0.2 merge ?

2006-05-24 Thread Jonathan LaCour
Michael Bayer wrote: Id like to take the current SQLAlchemy trunk and move it to a 0.1 branch: http://svn.sqlalchemy.org/sqlalchemy/branches/rel_0_1 and then merge the 0.2 branch into the trunk. then, depending on if people find a bunch more bugs or not in the next few days, maybe a 0.2.0 rele

[Sqlalchemy-users] flush assignmapper monkeypatch fix

2006-05-24 Thread Sean Cazzell
The monkeypatch of flush() in assignmapper was broken because Session.flush expects a list/tuple of objects. Attached patch makes the monkey function pass in a single item list for flush instead. -Sean Cazzell Index: lib/sqlalchemy/ext/assignmapper.py

[Sqlalchemy-users] 0.2 merge ?

2006-05-24 Thread Michael Bayer
Hi list - Id like to take the current SQLAlchemy trunk and move it to a 0.1 branch: http://svn.sqlalchemy.org/sqlalchemy/branches/rel_0_1 and then merge the 0.2 branch into the trunk. then, depending on if people find a bunch more bugs or not in the next few days, maybe a 0.2.0

Re: [Sqlalchemy-users] schema migration made the cut

2006-05-24 Thread Jonathan LaCour
Kevin Dangoor wrote: It looks like the schema migration project made the cut! W00t! W00t indeed :) I have contacted Evan about the project, and I am hoping that we can have a SVN repository and Trac instance up and running soon, along with a project roadmap. I will be blogging about the proj

[Sqlalchemy-users] schema migration made the cut

2006-05-24 Thread Kevin Dangoor
It looks like the schema migration project made the cut! http://wiki.python.org/moin/SummerOfCode W00t! Kevin -- Kevin Dangoor TurboGears / Zesty News email: [EMAIL PROTECTED] company: http://www.BlazingThings.com blog: http://www.BlueSkyOnMars.com --

Re: [Sqlalchemy-users] Postgres injection attack

2006-05-24 Thread Jonathan Vanasco
On May 23, 2006, at 11:02 PM, Michael Bayer wrote: just saw this today and thought it was interestinga postgres injection attack that *only* bind parameters protects against: http://www.newsforge.com/article.pl?sid=06/05/23/2141246 it looks as if only bind parameters currently

[Sqlalchemy-users] Reloading the Table metadata from database

2006-05-24 Thread Yuan HOng
Once a table is loaded automatically by reflection from the database, how can I reload it if the table structure is changed in the database? SA seems to cache the table definition and always returns the same Table object after the Table is first loaded. -- Hong Yuan 大管家网上建材超市 装修装潢建材一站式购物 http:/

RE: [Sqlalchemy-users] Postgres injection attack

2006-05-24 Thread jose
Just reread the article (actually if i had read Michael's post better) and it states the the use of bind parameters protects against the attach. Still going to ask the psycoph group so see if a new beta is on the way or not. Jose > Original Message > Subject: RE: [Sqlalchemy-

RE: [Sqlalchemy-users] Postgres injection attack

2006-05-24 Thread jose
I just read the article, very interesting. Since current postgres drivers are affected I wonder how vulnerable psycopg or better yet psycopg2 would be. I am going to post the question to the the psycopg group to see what turns up. Micheal, does sqlalchemy use psycopg 1 or 2 (I have both installe

Re: [Sqlalchemy-users] MapperExtension: after_delete

2006-05-24 Thread Michael Bayer
great... committed in 1495 to 0.2 On May 24, 2006, at 4:58 AM, Sean Cazzell wrote: I am using a MapperExtension to implement trigger-like functions in my app and needed an after_delete event. Attached is a patch which implements the needed changes to Mapper.py (also updates adv_datamapping.myt

Re: [Sqlalchemy-users] Postgres injection attack

2006-05-24 Thread David Geller
H. Wondering if there is a similar problem for MySQL. Also, is this a problem only for unicode, or does it affect things like utf-8? Thanks, David Michael Bayer wrote: just saw this today and thought it was interestinga postgres injection attack that *only* bind parameters protects ag

Re: [Sqlalchemy-users] Postgres injection attack

2006-05-24 Thread Rick Morrison
I noticed that too, Mike. It's a great selling feature of SA, and it's one of the reasons (among many) that originally caught my eye about the project. Rick On 5/23/06, Michael Bayer <[EMAIL PROTECTED]> wrote: just saw this today and thought it was interestinga postgresinjection attack that *o

[Sqlalchemy-users] MapperExtension: after_delete

2006-05-24 Thread Sean Cazzell
I am using a MapperExtension to implement trigger-like functions in my app and needed an after_delete event. Attached is a patch which implements the needed changes to Mapper.py (also updates adv_datamapping.myt docs). Sean Cazzell Index: doc/build/content/adv_datamapping.txt ===