” 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
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
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
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
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
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
? 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
, 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
, 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
)
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
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
11 matches
Mail list logo