Hi All,
This recipe:
http://www.sqlalchemy.org/trac/wiki/UsageRecipes/GlobalFilter
...blows up as follows in SA 0.6.1 on Python 2.6 around here:
parents = session.query(Parent).\
options(
TemporalOption(
datetime.datetime(2009, 10, 16, 12, 00, 00),
datetime.datetime(2009, 10, 18, 12, 00, 00))
).all()
...with this:
Traceback (most recent call last):
File "globalfilter.py", line 101, in <module>
datetime.datetime(2009, 10, 18, 12, 00, 00))
File "SQLAlchemy-0.6.1-py2.6.egg/sqlalchemy/orm/query.py", line 742,
in options
return self._options(False, *args)
File "<string>", line 1, in <lambda>
File "SQLAlchemy-0.6.1-py2.6.egg/sqlalchemy/orm/query.py", line 52,
in generate
fn(self, *args[1:], **kw)
File "SQLAlchemy-0.6.1-py2.6.egg/sqlalchemy/orm/query.py", line 759,
in _options
opt.process_query(self)
File "globalfilter.py", line 55, in process_query
self.process_query_conditionally(query)
File "globalfilter.py", line 44, in process_query_conditionally
query._params.update(
File "SQLAlchemy-0.6.1-py2.6.egg/sqlalchemy/util.py", line 145, in
_blocked_attribute
raise AttributeError, "A frozendict cannot be modified."
AttributeError: A frozendict cannot be modified.
What needs to change?
Chris
--
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 email to
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en.