Opened 10 years ago
Closed 10 years ago
#1007 closed defect (fixed)
Location error in edit_profile
Reported by: | ayleph | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | programming | Keywords: | location, unicode |
Cc: | Parent Tickets: |
Description
Error - <type 'exceptions.AttributeError'>: 'unicode' object has no attribute 'name' URL: https://goblinrefuge.com/mediagoblin/u/umrohleder/edit/ File '/path/to/mediagoblin/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/exceptions/errormiddleware.py', line 144 in __call__ app_iter = self.application(environ, sr_checker) File '/path/to/mediagoblin/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/urlmap.py', line 203 in __call__ return app(environ, start_response) File '/path/to/mediagoblin/mediagoblin/app.py', line 268 in __call__ return self.call_backend(environ, start_response) File '/path/to/mediagoblin/lib/python2.7/site-packages/Werkzeug-0.9.6-py2.7.egg/werkzeug/wsgi.py', line 588 in __call__ return self.app(environ, start_response) File '/path/to/mediagoblin/mediagoblin/app.py', line 245 in call_backend response = controller(request) File '/path/to/mediagoblin/mediagoblin/decorators.py', line 46 in wrapper return controller(request, *args, **kwargs) File '/path/to/mediagoblin/mediagoblin/decorators.py', line 73 in new_controller_func return controller(request, *args, **kwargs) File '/path/to/mediagoblin/mediagoblin/decorators.py', line 118 in wrapper return controller(request, *args, url_user=user, **kwargs) File '/path/to/mediagoblin/mediagoblin/edit/views.py', line 225 in edit_profile location.name = unicode(form.location.data) AttributeError: 'unicode' object has no attribute 'name'
Change History (2)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This has been fixed as of c5f258f. The issue was the location variable was being set to the string representation of the location rather then the database object, upon trying to edit and save that caused issues as the rest of the code assumed the it was the location object.
I'm getting the above error when users attempt to register on my site and edit their profiles.