ive also noticed that easy_install plays some games recently that  
make PYTHONPATH not function correctly.  you might want to look in  
your site-packages/easy-install.pth file and comment out SQLAlchemy  
if youre trying to get a local non-installed version to work...not  
sure what the real fix for this is just yet.

you can check which sqlalchemy is running by just doing:

 >>> import sqlalchemy
 >>> sqlalchemy.__file__
/path/to/sqlalchemy

On Jun 28, 2006, at 3:24 AM, Raul Garcia wrote:

>> Michael Bayer [mailto:[EMAIL PROTECTED]
>>
>> heres a diff.  the test framework has the "threadlocal" thing turned
>> off by default and also plays some games with it.
>>
>> you should be able to remove all the "save()" statements from the
>> tests and everything should keep working; with threadlocal running,
>> new objects automatically get added to the session.
>
> All right, I've done that and the tests keep failing. I've run the  
> patched
> test module against sqlite and postgres (on my windows setup) but  
> to no
> avail.
>
>> also, when you say Item.select(), it looks like youre looking for
>> "assign_mapper()" functionality, which tacks on a bunch of
>> methods to
>> each class that automatically talk to its mapper; this is something
>> of a SQLObject-compatibility hack.  in that case, use assign_mapper
>> (class, table) instead of mapper(class, table).
>
> Yes, thanks a lot. The real code is full of selects like this (from  
> the
> SQLObject model) and it seems that the threadlocal is the fastest way
> to convert. Also, the model has to be used into a threaded CherryPy
> application, so the threadlocal strategy seems the best one for this
> case (one thread per request, one default connection/session per  
> thread).
>
> Regards,
>
> Raúl García.
>
>
>
> Using Tomcat but need to do more? Need to support web services,  
> security?
> Get stuff done quickly with pre-integrated technology to make your  
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache  
> Geronimo
> http://sel.as-us.falkag.net/sel? 
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Sqlalchemy-users mailing list
> Sqlalchemy-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to