This site is an archive; learn more about 8 years of OpenHatch.

[Devel] [Kaboom at OH] Error (EXTERNAL IP): /people/info/edit/do

Asheesh Laroia asheesh at openhatch.org
Tue Feb 23 16:58:16 UTC 2010


Fixed!

top-post'd

Excerpts from Raphael Krut-Landau's message of Tue Feb 23 15:04:01 +0000 2010:
> The problem comes from seeing that some tags weren't showing up on
> people's profiles. Parker and I realized that we weren't displaying
> tags with the now-deprecated TagType "seeking". So we ran this code on
> the development site:
> 
> seeking = TagType.objects.get(name='seeking')
> can_pitch_in = TagType.objects.get(name='can_pitch_in')
> seeking_tags = seeking.tag_set.all()
> for tag in seeking_tags:
>     tag.tag_type = can_pitch_in
>     tag.save()
> 
> The current problem is probably now clearer. Lmk if I should say more.
> 
> --Raffi.
> 
> On Mon, Feb 22, 2010 at 10:59 PM,  <mr_website at linode.openhatch.org> wrote:
> > Traceback (most recent call last):
> >
> >  File "/home/deploy/milestone-a.buildout/parts/production/django/core/handlers/base.py", line 92, in get_response
> >    response = callback(request, *callback_args, **callback_kwargs)
> >
> >  File "/home/deploy/milestone-a.buildout/parts/production/django/contrib/auth/decorators.py", line 78, in __call__
> >    return self.view_func(request, *args, **kwargs)
> >
> >  File "/home/deploy/milestone-a.buildout/mysite/profile/views.py", line 273, in edit_person_info
> >    defaults={'text': tag_text})
> >
> >  File "/home/deploy/milestone-a.buildout/parts/production/django/db/models/manager.py", line 123, in get_or_create
> >    return self.get_query_set().get_or_create(**kwargs)
> >
> >  File "/home/deploy/milestone-a.buildout/parts/production/django/db/models/query.py", line 328, in get_or_create
> >    return self.get(**kwargs), False
> >
> >  File "/home/deploy/milestone-a.buildout/parts/production/django/db/models/query.py", line 307, in get
> >    % (self.model._meta.object_name, num, kwargs))
> >
> > MultipleObjectsReturned: get() returned more than one Tag -- it returned 2! Lookup parameters were {'text__regex': u'^testing$', 'tag_type': <TagType: can_pitch_in>}
> >
> >
> > <WSGIRequest
> > GET:<QueryDict: {}>,
> > POST:<QueryDict: {u'edit-tags-understands': [u'c, c++, python, Qt, graphics, opengl, swig, haskell, linux, windows, mac, osx, embedded c'], u'edit-tags-understands_not': [u'tcl, reality tv'], u'edit-tags-homepage_url': [u''], u'edit-tags-studying': [u'life, the universe'], u'edit-tags-can_mentor': [u''], u'edit-tags-can_pitch_in': [u'fixes, testing, Mac, Linux, Windows '], u'edit-tags-bio': [u'I like fixing bugs and pressing wildflowers'], u'edit-tags-contact_blurb': [u'Email me at $fwd']}>,
> > COOKIES:{'openid_provider': 'google', 'sessionid': '3f36bfa5b055d9df9c7c9fe69855c6e3'},
> > META:{'CONTENT_LENGTH': '438',
> >  'CONTENT_TYPE': 'application/x-www-form-urlencoded',
> >  'DOCUMENT_ROOT': '/var/www/',
> >  'GATEWAY_INTERFACE': 'CGI/1.1',
> >  'HTTPS': '1',
> >  'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
> >  'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
> >  'HTTP_ACCEPT_ENCODING': 'gzip,deflate',
> >  'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5',
> >  'HTTP_CONNECTION': 'keep-alive',
> >  'HTTP_COOKIE': 'sessionid=3f36bfa5b055d9df9c7c9fe69855c6e3; openid_provider=google',
> >  'HTTP_HOST': 'openhatch.org',
> >  'HTTP_KEEP_ALIVE': '300',
> >  'HTTP_REFERER': 'https://openhatch.org/profile/views/edit_info',
> >  'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100214 Ubuntu/9.10 (karmic) Firefox/3.5.8',
> >  'PATH': '/usr/local/bin:/usr/bin:/bin',
> >  'PATH_INFO': u'/people/info/edit/do',
> >  'PATH_TRANSLATED': '/home/deploy/milestone-a.buildout/bin/production.wsgi/people/info/edit/do',
> >  'QUERY_STRING': '',
> >  'REMOTE_ADDR': '99.231.209.32',
> >  'REMOTE_PORT': '34361',
> >  'REQUEST_METHOD': 'POST',
> >  'REQUEST_URI': '/people/info/edit/do',
> >  'SCRIPT_FILENAME': '/home/deploy/milestone-a.buildout/bin/production.wsgi',
> >  'SCRIPT_NAME': u'',
> >  'SERVER_ADDR': '74.207.229.254',
> >  'SERVER_ADMIN': 'webmaster at localhost',
> >  'SERVER_NAME': 'openhatch.org',
> >  'SERVER_PORT': '443',
> >  'SERVER_PROTOCOL': 'HTTP/1.1',
> >  'SERVER_SIGNATURE': '<address>Apache/2.2.14 (Debian) Server at openhatch.org Port 443</address>\n',
> >  'SERVER_SOFTWARE': 'Apache/2.2.14 (Debian)',
> >  'mod_wsgi.application_group': 'openhatch.org|',
> >  'mod_wsgi.callable_object': 'application',
> >  'mod_wsgi.listener_host': '',
> >  'mod_wsgi.listener_port': '443',
> >  'mod_wsgi.process_group': 'live',
> >  'mod_wsgi.reload_mechanism': '1',
> >  'mod_wsgi.script_reloading': '1',
> >  'mod_wsgi.version': (2, 5),
> >  'wsgi.errors': <mod_wsgi.Log object at 0x9601bd8>,
> >  'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x94b97b8>,
> >  'wsgi.input': <mod_wsgi.Input object at 0x94b79f8>,
> >  'wsgi.multiprocess': True,
> >  'wsgi.multithread': False,
> >  'wsgi.run_once': False,
> >  'wsgi.url_scheme': 'https',
> >  'wsgi.version': (1, 0)}>
> > _______________________________________________
> > Devel mailing list
> > Devel at lists.openhatch.org
> > http://lists.openhatch.org/mailman/listinfo/devel
> >


More information about the Devel mailing list