Writing · Archive

AttributeError: 'thread._local' object has no attribute 'mapper'

Schön wenn Dokumentation out of date sind, und die Entwickler nach dem "verbrannte Erde"-Prinzip vorgehen.

Ende Februar 2011

From the older archive — written at the time and left as it stood. The opinions, the tooling and the typos are all period-accurate.

Schön wenn Dokumentation out of date sind, und die Entwickler nach dem “verbrannte Erde”-Prinzip vorgehen.

Die Ursache für ein “AttributeError: ‘thread._local’ object has no attribute ‘mapper’” ist ganz einfach, das

routes.url_for

seit der 1.0er Version von Pylons leider deprecated ist, und im Gegensatz zur 0.9.7er Version auch nichtmehr im routing-Modul vorhanden.

Stattdessen gibt es:

form pylons import url

url(…)

Quelle: [The Pylons[“Development”] = Blog](http://pylonsdevelopment.blogspot.com/2010/07/attributeerror-threadlocal-object-has.html “The Pylons[“Development”] = Blog”)

From Ende Februar 2011
Home Reading Photos Projects About