Понеділок, 4 листопада 2013 р. 01:28:21 UTC+2 користувач Jon Rosebaugh
написав:
>
> I'm trying to implement support for Postgres's composite types, which
> essentially let you make a type which is a struct of other types. This
> involves several kinds of functionality:
>
Hey Jon,
I've tried to use your code and it fails with following stack trace (that's
just the end of it, the most interesting part):
File "/Users/piranha/dev/work/howapi/howapi/models/composite.py", line
105, in _set_parent
value._set_parent_with_dispatch(self)
File
"/Users/piranha/dev/work/howapi/.venv/lib/python3.3/site-packages/SQLAlchemy-0.9.4-py3.3-macosx-10.8-x86_64.egg/sqlalchemy/sql/base.py",
line 421, in _set_parent_with_dispatch
self._set_parent(parent)
File
"/Users/piranha/dev/work/howapi/.venv/lib/python3.3/site-packages/SQLAlchemy-0.9.4-py3.3-macosx-10.8-x86_64.egg/sqlalchemy/sql/sqltypes.py",
line 933, in _set_parent
column._on_table_attach(util.portable_instancemethod(self._set_table))
AttributeError: 'PGCompositeType' object has no attribute '_on_table_attach'
So I'm wondering if you know how to fix that or have you ever got to
updating your code for the current SQLA? My current knowledge about SQLA
internals is very rusty, so while I'm going to dive in to see if I can fix
that myself, I would be very glad for any pointers.
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.