dnouri/Kotti — Issue #10: Error logging out from the Preferences page
Author: mikeorr
Created: 2011-11-14 03:34:00+00:00
State: open

When you're on the Preferences page and choose Logout, the following exception appears:

AttributeError

AttributeError: 'NoneType' object has no attribute '__dict__'

Traceback (most recent call last)

File "/home/sluggo/.virtualenvs/kotti/lib/python2.7/site-packages/pyramid_debugtoolbar/panels/performance.py",
line 55, in resource_timer_handler

result = handler(request)

File "/home/sluggo/exp/pyramid/Pyramid-dev/pyramid/tweens.py",
line 17, in excview_tween

response = handler(request)

File "/home/sluggo/.virtualenvs/kotti/lib/python2.7/site-packages/pyramid_tm/__init__.py",
line 61, in tm_tween

response = handler(request)

File "/home/sluggo/exp/pyramid/Pyramid-dev/pyramid/router.py",
line 153, in handle_request

response = view_callable(context, request)

File "/home/sluggo/exp/pyramid/Pyramid-dev/pyramid/config/views.py",
line 271, in attr_view

return view(context, request)

File "/home/sluggo/exp/pyramid/Pyramid-dev/pyramid/config/views.py",
line 244, in predicate_wrapper

return view(context, request)

File "/home/sluggo/exp/pyramid/Pyramid-dev/pyramid/config/views.py",
line 297, in rendered_view

result = view(context, request)

File "/home/sluggo/exp/Kotti-fork/kotti/views/users.py", line 401,
in preferences

form = user_fc(user, request)

File "/home/sluggo/exp/Kotti-fork/kotti/views/util.py", line 376,
in __call__

appstruct = self.appstruct(context)

File "/home/sluggo/exp/Kotti-fork/kotti/views/util.py", line 382,
in appstruct

return item.__dict__.copy()