incubator-allura-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cory Johns" <masterbunn...@users.sf.net>
Subject [allura:tickets] #7225 UndefinedError: 'allura.model.repo.Commit object' has no attribute 'app_config' on some tickets [ss6873]
Date Thu, 27 Feb 2014 20:07:28 GMT
New tests fail when run from outside the `Allura` sub-directory:

~~~~
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/local/env-allura/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/case.py",
line 381, in setUp
    try_run(self.inst, ('setup', 'setUp'))
  File "/var/local/env-allura/lib/python2.7/site-packages/nose-1.3.0-py2.7.egg/nose/util.py",
line 469, in try_run
    return func()
  File "/home/cjohns/cjohns-4229/forge/Allura/allura/tests/templates/jinja_master/test_lib.py",
line 32, in setUp
    forge_config.setup_jinja_renderer()
  File "/home/cjohns/cjohns-4229/forge/Allura/allura/config/app_cfg.py", line 98, in setup_jinja_renderer
    auto_reload=config.auto_reload_templates,
  File "/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/configuration.py",
line 79, in __getattr__
    return get_partial_dict(key, self.config_proxy.current_conf())
  File "/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/util.py",
line 78, in get_partial_dict
    raise AttributeError
AttributeError
~~~~

Merged anyway, but would be nice to fix.


---

** [tickets:#7225] UndefinedError: 'allura.model.repo.Commit object' has no attribute 'app_config'
on some tickets [ss6873]**

**Status:** closed
**Labels:** support p3 
**Created:** Wed Feb 26, 2014 08:40 PM UTC by Chris Tsai
**Last Updated:** Thu Feb 27, 2014 08:06 PM UTC
**Owner:** Dave Brondsema

[forge:site-support:#6873]

eg.
https://sourceforge.net/p/neembuuuploader/tickets/269/ 
https://sourceforge.net/p/opensaf/tickets/530/

~~~~
mod_wsgi (pid=17470): Exception occurred processing WSGI script '/etc/httpd/conf.d/allura.wsgi'.
IOError: failed to write data
Error - <class 'jinja2.exceptions.UndefinedError'>: 'allura.model.repo.Commit object'
has no attribute 'app_config'
URL: https://sourceforge.net/p/neembuuuploader/tickets/269/
File '/var/local/env-allura/lib/python2.7/site-packages/WebError-0.10.3_20130423-py2.7.egg/weberror/errormiddleware.py',
line 242 in next
  return self.app_iterator.next()
File '/var/local/env-allura/lib/python2.7/site-packages/Paste-1.7.5.1-py2.7.egg/paste/registry.py',
line 409 in streaming_iter
  for item in self.application(environ, start_response):
File '/var/local/env-allura/lib/python2.7/site-packages/Ming-0.4.2-py2.7.egg/ming/odm/middleware.py',
line 20 in __call__
  result = self.app(environ, start_response)
File '/var/local/allura/Allura/allura/lib/custom_middleware.py', line 60 in __call__
  return self.app(environ, start_response)
File '/var/local/env-allura/lib/python2.7/site-packages/EasyWidgets-0.2dev_20130716-py2.7.egg/ew/middleware.py',
line 65 in __call__
  result = self.app(environ, start_response)
File '/var/local/allura/Allura/allura/lib/custom_middleware.py', line 191 in __call__
  return resp(environ, start_response)
File '/var/local/allura/Allura/allura/config/middleware.py', line 204 in AlluraGlobalsMiddleware
  return app(environ, start_response)
File '/var/local/allura/Allura/allura/lib/custom_middleware.py', line 147 in __call__
  return self._app(environ, session_start_response)
File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.4-py2.7.egg/timermiddleware/__init__.py',
line 202 in __call__
  resp = req.get_response(self.app)
File '/var/local/env-allura/lib/python2.7/site-packages/WebOb-1.0.8-py2.7.egg/webob/request.py',
line 1053 in get_response
  application, catch_exc_info=False)
File '/var/local/env-allura/lib/python2.7/site-packages/WebOb-1.0.8-py2.7.egg/webob/request.py',
line 1022 in call_application
  app_iter = application(self.environ, start_response)
File '/var/local/allura/Allura/allura/lib/custom_middleware.py', line 99 in __call__
  self.app, environ, catch_exc_info=True)
File '/var/local/env-allura/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/util.py',
line 48 in call_wsgi_application
  app_iter = application(environ, start_response)
File '/var/local/env-allura/lib/python2.7/site-packages/Beaker-1.5.4-py2.7.egg/beaker/middleware.py',
line 152 in __call__
  return self.wrap_app(environ, session_start_response)
File '/var/local/env-allura/lib/python2.7/site-packages/Routes-1.12.3-py2.7.egg/routes/middleware.py',
line 131 in __call__
  response = self.app(environ, start_response)
File '/var/local/forge-classic/sfx/middleware.py', line 49 in __call__
  resp = request.get_response(self.app)
File '/var/local/env-allura/lib/python2.7/site-packages/WebOb-1.0.8-py2.7.egg/webob/request.py',
line 1053 in get_response
  application, catch_exc_info=False)
File '/var/local/env-allura/lib/python2.7/site-packages/WebOb-1.0.8-py2.7.egg/webob/request.py',
line 1022 in call_application
  app_iter = application(self.environ, start_response)
File '/var/local/env-allura/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/wsgiapp.py',
line 107 in __call__
  response = self.dispatch(controller, environ, start_response)
File '/var/local/env-allura/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/wsgiapp.py',
line 312 in dispatch
  return controller(environ, start_response)
File '/var/local/allura/Allura/allura/lib/base.py', line 49 in __call__
  environ, start_response)
File '/var/local/env-allura/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/controllers/core.py',
line 211 in __call__
  response = self._dispatch_call()
File '/var/local/env-allura/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/controllers/core.py',
line 162 in _dispatch_call
  response = self._inspect_call(func)
File '/var/local/env-allura/lib/python2.7/site-packages/Pylons-1.0-py2.7.egg/pylons/controllers/core.py',
line 105 in _inspect_call
  result = self._perform_call(func, args)
File '/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/controllers/dispatcher.py',
line 258 in _perform_call
  r = self._call(func, params, remainder=remainder)
File '/var/local/allura/Allura/allura/lib/patches.py', line 118 in _call
  return old_controller_call(self, controller, *args, **kwargs)
File '/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/controllers/decoratedcontroller.py',
line 142 in _call
  response = self._render_response(controller, output)
File '/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/controllers/decoratedcontroller.py',
line 331 in _render_response
  **render_params)
File '/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/render.py',
line 188 in render
  kwargs['result'] = render_function(template_name, tg_vars, **kwargs)
File '/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/render.py',
line 470 in render_jinja
  cache_key=cache_key, cache_type=cache_type, cache_expire=cache_expire)
File '/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/render.py',
line 253 in cached_template
  return render_func()
File '/var/local/env-allura/lib/python2.7/site-packages/TurboGears2-2.1.5-py2.7.egg/tg/render.py',
line 467 in render_template
  return literal(template.render(**globs))
File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.4-py2.7.egg/timermiddleware/__init__.py',
line 117 in wrapper
  return self.run_and_log(func, inst, *args, **kwargs)
File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.4-py2.7.egg/timermiddleware/__init__.py',
line 126 in run_and_log
  return func(*args, **kwargs)
File '/var/local/env-allura/lib/python2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py',
line 894 in render
  return self.environment.handle_exception(exc_info, True)
File '/var/local/allura/ForgeTracker/forgetracker/templates/tracker/ticket.html', line 34
in top-level template code
  {% set editable = h.has_access(ticket, 'update') and not ticket.deleted %}
File '/var/local/allura/Allura/allura/templates/jinja_master/master.html', line 102 in top-level
template code
  {% block content_base %}
File '/var/local/allura/Allura/allura/templates/jinja_master/master.html', line 134 in block
"content_base"
  {% block after_content %}{% endblock %}
File '/var/local/allura/ForgeTracker/forgetracker/templates/tracker/ticket.html', line 174
in block "after_content"
  {{c.thread.display(value=thread,new_post_text="New Comment",page=page,limit=limit,count=count)}}
File '/var/local/env-allura/lib/python2.7/site-packages/EasyWidgets-0.2dev_20130716-py2.7.egg/ew/widget.py',
line 45 in display
  return self.template(context)
File '/var/local/env-allura/lib/python2.7/site-packages/EasyWidgets-0.2dev_20130716-py2.7.egg/ew/render.py',
line 32 in __call__
  return self.engine.render(self.template, context)
File '/var/local/allura/Allura/allura/config/app_cfg.py', line 133 in render
  text = template.render(**context)
File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.4-py2.7.egg/timermiddleware/__init__.py',
line 117 in wrapper
  return self.run_and_log(func, inst, *args, **kwargs)
File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.4-py2.7.egg/timermiddleware/__init__.py',
line 126 in run_and_log
  return func(*args, **kwargs)
File '/var/local/env-allura/lib/python2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py',
line 894 in render
  return self.environment.handle_exception(exc_info, True)
File '/var/local/allura/Allura/allura/templates/widgets/thread_widget.html', line 32 in top-level
template code
  {{widgets.post_thread.display(value=t['post'], children=t['children'],
File '/var/local/env-allura/lib/python2.7/site-packages/EasyWidgets-0.2dev_20130716-py2.7.egg/ew/widget.py',
line 45 in display
  return self.template(context)
File '/var/local/env-allura/lib/python2.7/site-packages/EasyWidgets-0.2dev_20130716-py2.7.egg/ew/render.py',
line 32 in __call__
  return self.engine.render(self.template, context)
File '/var/local/allura/Allura/allura/config/app_cfg.py', line 133 in render
  text = template.render(**context)
File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.4-py2.7.egg/timermiddleware/__init__.py',
line 117 in wrapper
  return self.run_and_log(func, inst, *args, **kwargs)
File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.4-py2.7.egg/timermiddleware/__init__.py',
line 126 in run_and_log
  return func(*args, **kwargs)
File '/var/local/env-allura/lib/python2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py',
line 894 in render
  return self.environment.handle_exception(exc_info, True)
File '/var/local/allura/Allura/allura/templates/widgets/post_thread.html', line 21 in top-level
template code
  {{widget.parent_widget.widgets.post.display(
File '/var/local/env-allura/lib/python2.7/site-packages/EasyWidgets-0.2dev_20130716-py2.7.egg/ew/widget.py',
line 45 in display
  return self.template(context)
File '/var/local/env-allura/lib/python2.7/site-packages/EasyWidgets-0.2dev_20130716-py2.7.egg/ew/render.py',
line 32 in __call__
  return self.engine.render(self.template, context)
File '/var/local/allura/Allura/allura/config/app_cfg.py', line 133 in render
  text = template.render(**context)
File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.4-py2.7.egg/timermiddleware/__init__.py',
line 117 in wrapper
  return self.run_and_log(func, inst, *args, **kwargs)
File '/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.4-py2.7.egg/timermiddleware/__init__.py',
line 126 in run_and_log
  return func(*args, **kwargs)
File '/var/local/env-allura/lib/python2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py',
line 894 in render
  return self.environment.handle_exception(exc_info, True)
File '/var/local/allura/Allura/allura/templates/widgets/post_widget.html', line 53 in top-level
template code
  {{lib.related_artifacts(value)}}
File '/var/local/allura/Allura/allura/templates/jinja_master/lib.html', line 38 in template
  {% set tool = related.app_config.options.mount_label %}
File '/var/local/env-allura/lib/python2.7/site-packages/Jinja2-2.6-py2.7.egg/jinja2/environment.py',
line 372 in getattr
  return getattr(obj, attribute)
UndefinedError: 'allura.model.repo.Commit object' has no attribute 'app_config'
~~~~



---

Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options.
 Or, if this is a mailing list, you can unsubscribe from the mailing list.
Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message