[Sqlalchemy-tickets] [sqlalchemy] #1301: mapper backref fails with AttributeError: 'unicode' object
Brought to you by:
zzzeek
|
From: sqlalchemy <mi...@zz...> - 2009-01-30 22:38:32
|
#1301: mapper backref fails with AttributeError: 'unicode' object has no attribute
'get_extension' if argument is unicode.
--------------------+-------------------------------------------------------
Reporter: guest | Owner: zzzeek
Type: defect | Status: new
Priority: low | Milestone:
Component: orm | Severity: no triage selected yet
Keywords: | Status_field: awaiting triage
--------------------+-------------------------------------------------------
I was playing around with 2.6 and from __future__ import unicode_literals
and discovered that if the value of the backref argument to mapper
is a unicode string, mapper fails with:
AttributeError: 'unicode' object has no attribute 'get_extension'
A test case is attached. The failure can be replicated either as
is (passing u'Author' as the backref) or by uncommenting the
future import.
--
Ticket URL: <http://www.sqlalchemy.org/trac/ticket/1301>
sqlalchemy <http://www.sqlalchemy.org/>
The Database Toolkit for Python |