Hi,

I'm trying to port my 0.96 pylons program to 0.97, and I'm having
trouble getting a sign in page to render through mako.

I'm basically following the steps given in this page:

http://jonasfietz.de/blog/comments/7

I get this error: TypeError: No object (name: C) has been registered
for this thread.

I don't really understand how globals really work in pylons. Any help
would be much appreciated!



Here is the error traceback:


File '/usr/local/lib/python2.5/site-packages/WebError-0.9-py2.5.egg/
weberror/evalexception.py', line 428 in respond
  app_iter = self.application(environ, detect_start_response)
File '/usr/local/lib/python2.5/site-packages/AuthKit-0.4.0-py2.5.egg/
authkit/authenticate/__init__.py', line 290 in __call__
  return self.app(environ, start_response)
File '/usr/local/lib/python2.5/site-packages/AuthKit-0.4.0-py2.5.egg/
authkit/authenticate/cookie.py', line 352 in __call__
  return self.app(environ, cookie_setting_start_response)
File '/usr/local/lib/python2.5/site-packages/AuthKit-0.4.0-py2.5.egg/
authkit/authenticate/multi.py', line 67 in __call__
  result = check()
File '/usr/local/lib/python2.5/site-packages/AuthKit-0.4.0-py2.5.egg/
authkit/authenticate/multi.py', line 59 in check
  return binding(environ, logging_start_response)
File '/usr/local/lib/python2.5/site-packages/AuthKit-0.4.0-py2.5.egg/
authkit/authenticate/form.py', line 81 in __call__
  content = self.template() % action
File '/usr/local/test/test/lib/auth.py', line 5 in make_template
  return render("/precursor/signin.html"
File '/usr/local/lib/python2.5/site-packages/Pylons-0.9.7rc1-py2.5.egg/
pylons/templating.py', line 317 in render_mako
  cache_type=cache_type, cache_expire=cache_expire)
File '/usr/local/lib/python2.5/site-packages/Pylons-0.9.7rc1-py2.5.egg/
pylons/templating.py', line 292 in cached_template
  return render_func()
File '/usr/local/lib/python2.5/site-packages/Pylons-0.9.7rc1-py2.5.egg/
pylons/templating.py', line 309 in render_template
  globs.update(pylons_globals())
File '/usr/local/lib/python2.5/site-packages/Pylons-0.9.7rc1-py2.5.egg/
pylons/templating.py', line 208 in pylons_globals
  c = pylons.tmpl_context._current_obj()
File '/usr/local/lib/python2.5/site-packages/Paste-1.7.1-py2.5.egg/
paste/registry.py', line 194 in _current_obj
  'thread' % self.____name__)
TypeError: No object (name: C) has been registered for this thread

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to