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:


Error - <type 'exceptions.AttributeError'>: 'unicode' object has no attribute 'name'
File '/path/to/mediagoblin/lib/python2.7/site-packages/Paste-', line 144 in __call__
  app_iter = self.application(environ, sr_checker)
File '/path/to/mediagoblin/lib/python2.7/site-packages/Paste-', line 203 in __call__
  return app(environ, start_response)
File '/path/to/mediagoblin/mediagoblin/', 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/', line 588 in __call__
  return, start_response)
File '/path/to/mediagoblin/mediagoblin/', line 245 in call_backend
  response = controller(request)
File '/path/to/mediagoblin/mediagoblin/', line 46 in wrapper
  return controller(request, *args, **kwargs)
File '/path/to/mediagoblin/mediagoblin/', line 73 in new_controller_func
  return controller(request, *args, **kwargs)
File '/path/to/mediagoblin/mediagoblin/', line 118 in wrapper
  return controller(request, *args, url_user=user, **kwargs)
File '/path/to/mediagoblin/mediagoblin/edit/', line 225 in edit_profile = unicode(
AttributeError: 'unicode' object has no attribute 'name'

Change History (2)

comment:1 by ayleph, 10 years ago

I'm getting the above error when users attempt to register on my site and edit their profiles.

comment:2 by Jessica Tallon, 10 years ago

Resolution: fixed
Status: newclosed

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.

Note: See TracTickets for help on using tickets.