<type 'exceptions.NameError'>
Python 2.6.5: /usr/bin/python
Sun May 26 00:17:43 2013

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /usr/lib/pymodules/python2.6/flup/server/fcgi_base.py in run(self=<flup.server.fcgi_base.Request object>)
  556         """Runs the handler, flushes the streams, and ends the request."""
  557         try:
  558             protocolStatus, appStatus = self.server.handler(self)
  559         except:
  560             traceback.print_exc(file=self.stderr)
protocolStatus undefined, appStatus undefined, self = <flup.server.fcgi_base.Request object>, self.server = <flup.server.fcgi.WSGIServer object>, self.server.handler = <bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object>>
 /usr/lib/pymodules/python2.6/flup/server/fcgi_base.py in handler(self=<flup.server.fcgi.WSGIServer object>, req=<flup.server.fcgi_base.Request object>)
 1116         try:
 1117             try:
 1118                 result = self.application(environ, start_response)
 1119                 try:
 1120                     for data in result:
result = None, self = <flup.server.fcgi.WSGIServer object>, self.application = <paste.cascade.Cascade object>, environ = {'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en-gb,en;q=0.7,*;q=0.3', 'HTTP_HOST': 'serveyourcountryfood.net', 'HTTP_USER_AGENT': 'CCBot/2.0', 'PATH_INFO': '/"target=_blank', 'QUERY_STRING': '', ...}, start_response = <function start_response>
 /usr/lib/pymodules/python2.6/paste/cascade.py in __call__(self=<paste.cascade.Cascade object>, environ={'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en-gb,en;q=0.7,*;q=0.3', 'HTTP_HOST': 'serveyourcountryfood.net', 'HTTP_USER_AGENT': 'CCBot/2.0', 'PATH_INFO': '/"target=_blank', 'QUERY_STRING': '', ...}, start_response=<function start_response>)
  128         if copy_wsgi_input:
  129             environ['wsgi.input'].seek(0)
  130         return self.apps[-1](environ, start_response)
  131 
  132 def _consuming_writer(s):
self = <paste.cascade.Cascade object>, self.apps = [<StaticURLParser '/var/www/sycf/src/churn/www'>, <pychurn.apps.sycf.SycfApp instance>], environ = {'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en-gb,en;q=0.7,*;q=0.3', 'HTTP_HOST': 'serveyourcountryfood.net', 'HTTP_USER_AGENT': 'CCBot/2.0', 'PATH_INFO': '/"target=_blank', 'QUERY_STRING': '', ...}, start_response = <function start_response>
 /var/www/sycf/src/churn/pychurn/__init__.py in __call__(self=<pychurn.apps.sycf.SycfApp instance>, env={'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en-gb,en;q=0.7,*;q=0.3', 'HTTP_HOST': 'serveyourcountryfood.net', 'HTTP_USER_AGENT': 'CCBot/2.0', 'PATH_INFO': '/"target=_blank', 'QUERY_STRING': '', ...}, start_resp=<function start_response>)
   30 
   31     def __call__(self, env, start_resp):
   32         s, h, b = self.dispatch(env, start_resp)
   33         start_resp(s, h)
   34         return [b]
s undefined, h undefined, b undefined, self = <pychurn.apps.sycf.SycfApp instance>, self.dispatch = <bound method SycfApp.dispatch of <pychurn.apps.sycf.SycfApp instance>>, env = {'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en-gb,en;q=0.7,*;q=0.3', 'HTTP_HOST': 'serveyourcountryfood.net', 'HTTP_USER_AGENT': 'CCBot/2.0', 'PATH_INFO': '/"target=_blank', 'QUERY_STRING': '', ...}, start_resp = <function start_response>
 /var/www/sycf/src/churn/pychurn/apps/sycf/__init__.py in dispatch(self=<pychurn.apps.sycf.SycfApp instance>, environ={'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'HTTP_ACCEPT_ENCODING': 'x-gzip, gzip, deflate', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en-gb,en;q=0.7,*;q=0.3', 'HTTP_HOST': 'serveyourcountryfood.net', 'HTTP_USER_AGENT': 'CCBot/2.0', 'PATH_INFO': '/"target=_blank', 'QUERY_STRING': '', ...}, start_response=<function start_response>)
   53                 raise SycfError(s, h, b)
   54         except SycfError as e:
   55             e.body  = self.template("view/error", {"message": e.body})
   56             r = (e.status, e.headers, e.body)
   57         s, h, b = r
e = SycfError(), e.body = 'Not found.', self = <pychurn.apps.sycf.SycfApp instance>, self.template = <bound method SycfApp.template of <pychurn.apps.sycf.SycfApp instance>>
 /var/www/sycf/src/churn/pychurn/apps/sycf/__init__.py in template(self=<pychurn.apps.sycf.SycfApp instance>, rpath='view/error', ctxt={'message': 'Not found.'})
   82         # http://stackoverflow.com/questions/3442229/wsgi-content-encoding
   83         #Log.debug(ctxt)
   84         r = t.render_unicode(**ctxt)
   85         #print 'Here is the template string: ', type(r)#, r
   86         #return str(r).encode('utf-8')
r undefined, t = <mako.template.Template object>, t.render_unicode = <bound method Template.render_unicode of <mako.template.Template object>>, ctxt = {'message': 'Not found.'}
 /usr/lib/pymodules/python2.6/mako/template.py in render_unicode(self=<mako.template.Template object>, *args=(), **data={'message': 'Not found.'})
  136         """render the output of this template as a unicode object."""
  137         
  138         return runtime._render(self, self.callable_, args, data, as_unicode=True)
  139         
  140     def render_context(self, context, *args, **kwargs):
global runtime = <module 'mako.runtime' from '/usr/lib/pymodules/python2.6/mako/runtime.pyc'>, runtime._render = <function _render>, self = <mako.template.Template object>, self.callable_ = <function render_body>, args = (), data = {'message': 'Not found.'}, as_unicode undefined, builtin True = True
 /usr/lib/pymodules/python2.6/mako/runtime.py in _render(template=<mako.template.Template object>, callable_=<function render_body>, args=(), data={'message': 'Not found.'}, as_unicode=True)
  362     context = Context(buf, **data)
  363     context._with_template = template
  364     _render_context(template, callable_, context, *args, **_kwargs_for_callable(callable_, data))
  365     return context._pop_buffer().getvalue()
  366 
global _render_context = <function _render_context>, template = <mako.template.Template object>, callable_ = <function render_body>, context = <mako.runtime.Context object>, args = (), global _kwargs_for_callable = <function _kwargs_for_callable>, data = {'message': 'Not found.'}
 /usr/lib/pymodules/python2.6/mako/runtime.py in _render_context(tmpl=<mako.template.Template object>, callable_=<function render_body>, context=<mako.runtime.Context object>, *args=(), **kwargs={})
  379         # if main render method, call from the base of the inheritance stack
  380         (inherit, lclcontext) = _populate_self_namespace(context, tmpl)
  381         _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  382     else:
  383         # otherwise, call the actual rendering method specified
global _exec_template = <function _exec_template>, inherit = <function render_body>, lclcontext = <mako.runtime.Context object>, args = (), kwargs = {}
 /usr/lib/pymodules/python2.6/mako/runtime.py in _exec_template(callable_=<function render_body>, context=<mako.runtime.Context object>, args=(), kwargs={})
  410                 context._buffer_stack[:] = [util.FastEncodingBuffer(error_template.output_encoding, error_template.encoding_errors)]
  411                 context._with_template = error_template
  412                 error_template.render_context(context, error=error)
  413     else:
  414         callable_(context, *args, **kwargs)
callable_ = <function render_body>, context = <mako.runtime.Context object>, args = (), kwargs = {}
 /var/www/sycf/src/churn/view____layout_base_tpl in render_body(context=<mako.runtime.Context object>, **pageargs={})
 /usr/lib/pymodules/python2.6/mako/runtime.py in (*args=(), **kwargs={})
  253         if self.template and self.template.has_def(key):
  254             callable_ = self.template._get_def_callable(key)
  255             return lambda *args, **kwargs:callable_(self.context, *args, **kwargs)
  256 
  257         if self._module and hasattr(self._module, key):
args = (), kwargs = {}, callable_ = <function render_head>, self = <mako.runtime.Namespace object>, self.context = <mako.runtime.Context object>
 /var/www/sycf/src/churn/view____layout_sycf_tpl in render_head(context=<mako.runtime.Context object>)
 /usr/lib/pymodules/python2.6/mako/runtime.py in __str__(self=<mako.runtime.Undefined object>)
  126     """represents an undefined value in a template."""
  127     def __str__(self):
  128         raise NameError("Undefined")
  129     def __nonzero__(self):
  130         return False
builtin NameError = <type 'exceptions.NameError'>

<type 'exceptions.NameError'>: Undefined
      args = ('Undefined',)
      message = 'Undefined'