Re: [sqlalchemy] SQLAlchemy-Future

2010-12-30 Thread Ron DuPlain
” packaging tools – in such cases the __init__.py files will not be installed, let alone executed. -Ron -- You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send

[sqlalchemy] Re: post_processors error during 0.3.10 to 0.4 migration (returning different object type based on db data)

2007-10-30 Thread Ron
this got me most of the way towards fixing my code. I still like the idea of the polymorphic_on callable, but I didn't try the patch. Thanks, -Ron --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sqlalchemy group. To post

[sqlalchemy] post_processors error during 0.3.10 to 0.4 migration

2007-10-28 Thread Ron
of that was clear, but it's a start. Any ideas? -Ron return Thing.query.filter(Thing.c.name == name).one() File /usr/local/lib/python2.4/site-packages/SQLAlchemy-0.4.0- py2.4.egg/sqlalchemy/orm/query.py, line 605, in one ret = list(self[0:2]) File /usr/local/lib/python2.4/site-packages

[sqlalchemy] Re: post_processors error during 0.3.10 to 0.4 migration (returning different object type based on db data)

2007-10-28 Thread Ron
to contain? -Ron #!/usr/bin/env python from sqlalchemy import * from sqlalchemy.ext.sessioncontext import SessionContext from sqlalchemy.ext.assignmapper import assign_mapper from sqlalchemy.orm import * #Mapper, MapperExtension from sqlalchemy.orm.mapper import Mapper #from

[sqlalchemy] Re: post_processors error during 0.3.10 to 0.4 migration (returning different object type based on db data)

2007-10-28 Thread Ron
and some of the more advanced topics are not quite documented enough for me to fully understand how to use them. Thanks for the help, -Ron --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sqlalchemy group. To post

[sqlalchemy] best practices for catching sqlerrors

2007-09-24 Thread Ron
the __init__ method of the class do a check during instantiation, but I'm wondering if there is some better way to do it. Perhaps a way to map SqlerrorA to throw ExceptionA and SqlerrorB to throw ExceptionB. Thanks, Ron --~--~-~--~~~---~--~~ You received this message

[sqlalchemy] Re: dictionaries collection_class

2007-06-18 Thread Ron
? Or is the problem deeper in the code? It seems to go along with what you said earlier about how the iteration was made to work like an instrumentedlist. -Ron On Jun 16, 3:07 pm, jason kirtland [EMAIL PROTECTED] wrote: Ron wrote: Now I'm having trouble with updating values in AttributeDict: so

[sqlalchemy] Re: dictionaries collection_class

2007-06-16 Thread Ron
, in init raise e TypeError: lambda() takes exactly 2 arguments (3 given) Any more ideas? -Ron On Jun 12, 2:52 pm, jason kirtland [EMAIL PROTECTED] wrote: Ron wrote: Nevermind. I see what I was doing. In much of my code it worked fine, just like a dictionary. But in another part

[sqlalchemy] Re: dictionaries collection_class

2007-06-16 Thread Ron
, in init raise e TypeError: lambda() takes exactly 2 arguments (3 given) Any more ideas? -Ron On Jun 12, 2:52 pm, jason kirtland [EMAIL PROTECTED] wrote: Ron wrote: Nevermind. I see what I was doing. In much of my code it worked fine, just like a dictionary. But in another part

[sqlalchemy] Re: dictionaries collection_class

2007-06-12 Thread Ron
) The test__ functions are named such to get out of the way of the parent class's functions while testing. I may be misunderstanding how an association_proxy works. -Ron --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[sqlalchemy] Re: dictionaries collection_class

2007-06-12 Thread Ron
a str that doesn't have a 'name' member variable. So I'm totally confused. -Ron --~--~-~--~~~---~--~~ 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