gnowgi/django-gstudio — Issue #20: "error" is not defined error
Author: gnowgi
Created: 2011-12-20 06:32:13+00:00
State: open

The error is possibly due to the function gbobject.ref function. Johnson may look at it.

Environment:

Request Method: GET
Request URL: http://sbox.gnowledge.org/gstudio/

Django Version: 1.3.1
Python Version: 2.7.2
Installed Applications:
['django.contrib.auth',
'django.contrib.sitemaps',
'django.contrib.comments',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.sites',
'mptt',
'reversion',
'tagging',
'django_xmlrpc',
'grappelli.dashboard',
'grappelli',
'gstudio',
'objectapp',
'django.contrib.admin',
'django.contrib.admindocs',
'django.contrib.staticfiles',
'djangoratings',
'registration',
'graphviz',
'demo',
'south']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.doc.XViewMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')

Traceback:
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/core/handlers/base.py" in get_response
111. response = callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django_gstudio-0.3.dev-py2.7.egg/gstudio/views/decorators.py" in wrapper
26. return view(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/views/generic/list_detail.py" in object_list
108. return HttpResponse(t.render(c), mimetype=mimetype)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in render
123. return self._render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in _render
117. return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in render_node
757. return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/loader_tags.py" in render
127. return compiled_parent._render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in _render
117. return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in render_node
757. return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/loader_tags.py" in render
127. return compiled_parent._render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in _render
117. return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in render_node
757. return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/loader_tags.py" in render
127. return compiled_parent._render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in _render
117. return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in render_node
757. return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/loader_tags.py" in render
64. result = block.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in render_node
757. return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in render
792. output = self.filter_expression.resolve(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in resolve
510. obj = self.var.resolve(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in resolve
653. value = self._resolve_lookup(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in _resolve_lookup
698. current = current()
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/loader_tags.py" in super
74. return mark_safe(self.render(self.context))
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/loader_tags.py" in render
64. result = block.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in render_node
757. return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/defaulttags.py" in render
227. nodelist.append(node.render(context))
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/defaulttags.py" in render
500. output = self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in render_node
757. return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/loader_tags.py" in render
159. return self.render_template(self.template, context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/loader_tags.py" in render_template
141. output = template.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in render
123. return self._render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in _render
117. return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in render
744. bits.append(self.render_node(node, context))
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in render_node
757. return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in render
792. output = self.filter_expression.resolve(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in resolve
510. obj = self.var.resolve(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in resolve
653. value = self._resolve_lookup(context)
File "/usr/local/lib/python2.7/dist-packages/Django-1.3.1-py2.7.egg/django/template/base.py" in _resolve_lookup
683. current = getattr(current, bit)
File "/usr/local/lib/python2.7/dist-packages/django_gstudio-0.3.dev-py2.7.egg/gstudio/models.py" in ref
146. except Error:

Exception Type: NameError at /gstudio/
Exception Value: global name 'Error' is not defined