[Sqlalchemy-tickets] [sqlalchemy] #2901: unicode backrefs broken on python 2
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2014-01-01 18:45:09
|
#2901: unicode backrefs broken on python 2
--------------------------+-----------------------------------------
Reporter: gazpachoking | Owner: zzzeek
Type: defect | Status: new
Priority: medium | Milestone: 0.9.xx
Component: orm | Severity: no triage selected yet
Keywords: | Progress State: awaiting triage
--------------------------+-----------------------------------------
It seems that backrefs can no longer be unicode strings on 0.9 in python
2. When they are, the following problem occurs, due to the type check `if
isinstance(self.backref, str):`:
{{{
File "...\sqlalchemy\orm\relationships.py", line 1566, in
_generate_backref
backref_key, kwargs = self.backref
ValueError: too many values to unpack
}}}
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/2901>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python
|