On 11/7/06, juanvalino <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I've detected that when a class has __slots__ attribute, a mapper
> cannot be build because the sqlalchemy tries to create a magic
> attribute and fails:
>
> File "build/bdist.linux-x86_64/egg/sqlalchemy/orm/attributes.py", line
> 672, in init_attr
> AttributeError: 'MyClass' object has no attribute
> '_MyClass__sa_attr_state'

I think you'll have better luck making a class w/o __slots__ than
changing something this deep in the core of SA.

(If you must have __slots__ for some reason, you can always subclass
it to get a slots-less version.)

-- 
Jonathan Ellis
http://spyced.blogspot.com

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to