[sqlalchemy] Re: Code working on SQLA 0.4.6 is breaking on SQLA 0.5beta3

2008-08-21 Thread Harish K Vishwanath
Hello Michael, Thanks for your input! I got the latest trunk from SVN. However, if my app specific baseclass is an old style class, it still breaks., this time in orm\attributes.py Traceback (most recent call last): File SqlDB_Test.py, line 9, in ? dbo =

[sqlalchemy] Re: Code working on SQLA 0.4.6 is breaking on SQLA 0.5beta3

2008-08-21 Thread jason kirtland
Thanks for the traceback. Give r5050 a try. Cheers, Jason Harish K Vishwanath wrote: Hello Michael, Thanks for your input! I got the latest trunk from SVN. However, if my app specific baseclass is an old style class, it still breaks., this time in orm\attributes.py Traceback (most

[sqlalchemy] Re: Code working on SQLA 0.4.6 is breaking on SQLA 0.5beta3

2008-08-21 Thread Harish K Vishwanath
Thanks Jason. Downloaded R5051, it works fine! Cheers, Harish On Thu, Aug 21, 2008 at 7:58 PM, jason kirtland [EMAIL PROTECTED] wrote: Thanks for the traceback. Give r5050 a try. Cheers, Jason Harish K Vishwanath wrote: Hello Michael, Thanks for your input! I got the latest trunk

[sqlalchemy] Re: Code working on SQLA 0.4.6 is breaking on SQLA 0.5beta3

2008-08-20 Thread az
seems your baseclass is oldstyle class, not inheriting 'object'. python 2.5 newstyle classes (off object) has that __subclasses__() classmethod (see dir(type)), not sure if 2.4 has that at all. i've no idea where these are explained (as well as mro() and other type' stuff.) i looked a bit at

[sqlalchemy] Re: Code working on SQLA 0.4.6 is breaking on SQLA 0.5beta3

2008-08-20 Thread Harish K Vishwanath
Hello, I changed my baseclass to Inherit from object and made it as a new class. Now it dies in trying to find hierarchy for built-in class exception.Exception. AttributeError: class Exception has no attribute '__subclasses__' In Py 2.5, Exceptions have been changed to new style classes, but

[sqlalchemy] Re: Code working on SQLA 0.4.6 is breaking on SQLA 0.5beta3

2008-08-20 Thread Michael Bayer
On Aug 20, 2008, at 5:39 AM, Harish K Vishwanath wrote: Hello, I was using elixir 0.5.2 (SQL Alchemy 0.4.6) on Py 2.4. All my model objects inherits from Entity as well as another baseobject specific to our application. class User(elixir.Entity, application.baseobject): ... ... It

[sqlalchemy] Re: Code working on SQLA 0.4.6 is breaking on SQLA 0.5beta3

2008-08-20 Thread Michael Bayer
On Aug 20, 2008, at 6:32 AM, [EMAIL PROTECTED] wrote: seems your baseclass is oldstyle class, not inheriting 'object'. python 2.5 newstyle classes (off object) has that __subclasses__() classmethod (see dir(type)), not sure if 2.4 has that at all. i've no idea where these are explained (as

[sqlalchemy] Re: Code working on SQLA 0.4.6 is breaking on SQLA 0.5beta3

2008-08-20 Thread Harish K Vishwanath
Hello, Sorry if I am being stupid. I saw the ticket and r0535 and 537 changeset. Which version of SQLA incorporates these changesets? On Wed, Aug 20, 2008 at 7:15 PM, Michael Bayer [EMAIL PROTECTED]wrote: On Aug 20, 2008, at 5:39 AM, Harish K Vishwanath wrote: Hello, I was using elixir

[sqlalchemy] Re: Code working on SQLA 0.4.6 is breaking on SQLA 0.5beta3

2008-08-20 Thread Michael Bayer
On Aug 20, 2008, at 11:52 AM, Harish K Vishwanath wrote: Hello, Sorry if I am being stupid. I saw the ticket and r0535 and 537 changeset. Which version of SQLA incorporates these changesets? no worries...use the latest trunk, which will ultimately be released either as 0.5beta4 or