--> --> -->
 
 
<class 'genshi.template.eval.UndefinedError'>
Python 2.6.8: /usr/bin/python2.6
Wed Apr 23 13:41:05 2014

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

 /big/dom/xfuturechurch/www/actions/postcards/womendeacons/index.py in ()
  137             results = dc.saveFollowUp(form_input)
  138         elif form_input.get('mode') == 'lofi':
  139             results = dc.showPostcardLoFi()
  140         elif form_input.has_key('downloadtemplates'):
  141                 dc.function='downloadtemplates'
results undefined, dc = <democracards3.democracards.Democracards instance>, dc.showPostcardLoFi = <bound method Democracards.showPostcardLoFi of <democracards3.democracards.Democracards instance>>
 /big/dom/xfuturechurch/magdalen/.local/lib/python2.6/site-packages/democracards3/democracards.py in showPostcardLoFi(self=<democracards3.democracards.Democracards instance>, errors={}, values={'message': 'Dear Brothers in Christ,\n\nThank you for your ser...he presbyterate, and by the imposition of hands.\n', 'session': 972048})
  351                         'timecode': int(time.time()) }
  352 
  353                 output = self.generateHTML(template, templateValues)
  354                 # fill in form fields in the template
  355                 output = self.completeForm(output, v, errors)
output undefined, self = <democracards3.democracards.Democracards instance>, self.generateHTML = <bound method Democracards.generateHTML of <democracards3.democracards.Democracards instance>>, template = 'postcard-lofi.html', templateValues = {'basepath': '/actions/postcards/womendeacons/', 'bishopEmails': [(u'Calgary, AB-- Bishop Frederick Henry (bishop.henry@calgarydiocese.ca)', u'bishop.henry@calgarydiocese.ca'), (u'Edmonton, AB-- Bishop Richard Smith (archdiocese@caedm.ca)', u'archdiocese@caedm.ca'), (u'Sain-Paul, AB-- Bishop Luc Bouchard (diospaul@mcsnet.ca)', u'diospaul@mcsnet.ca'), (u'Grouard-McLennan, AB-- Bishop G Pettipas (gpettipas@serbernet.com)', u'gpettipas@serbernet.com'), (u'Anchorage, AK-- Archbishop Roger L. Schweitz, OMI (mail@caa-ak.org)', u'mail@caa-ak.org'), (u'Fairbanks, AK-- Bishop Donald J. Kettler (bishop@cbna.org)', u'bishop@cbna.org'), (u'Juneau, AK-- Bishop Edward J. Burns (junodio@gci.net)', u'junodio@gci.net'), (u'Birmingham, AL-- Bishop Robert J. Baker (adelbueno@bhmdiocese.org)', u'adelbueno@bhmdiocese.org'), (u'Mobile, AL-- Archbishop Thomas Rodi (http://www....se.org/pages/contact.cfm?AOMBranchID=1&Type=Dept)', u'http://www.mobilearchdiocese.org/pages/contact.cfm?AOMBranchID=1&Type=Dept'), (u'Little Rock, AR-- Bishop Anthony Taylor (ataylor@doir.org)', u'ataylor@doir.org'), (u'Phoenix, AZ-- Bishop Thomas J. Olmsted (Contact-Us@diocesephoenix.org )', u'Contact-Us@diocesephoenix.org '), (u'Tucson, AZ-- Bishop Gerald F. Kicanas (diocese@diocesetucson.org)', u'diocese@diocesetucson.org'), (u'Nelson, BC-- Bishop John Corriveau (nelson.diocese@telus.net )', u'nelson.diocese@telus.net '), (u'Kamloops, BC-- Bishop David J.J. Monroe (rcbk@telus.net)', u'rcbk@telus.net'), (u'Vancouver, BC-- Bishop Michael Miller (chancery@rcav.bc.ca)', u'chancery@rcav.bc.ca'), (u'Victoria, BC-- Bishop Richard Gagnon (chancery@rcdvictoria.org)', u'chancery@rcdvictoria.org'), (u'Prince George, BC-- Bishop Gerald Wiesner (bishop@netbistro.com)', u'bishop@netbistro.com'), (u'Fresno, CA-- Bishop Armando X. Ochoa (javila@dioceseoffresno.org)', u'javila@dioceseoffresno.org'), (u'Los Angeles, CA-- Archbishop Jos\xe9 H. Gomez (frmvtrudeau@la-archdiocese.org)', u'frmvtrudeau@la-archdiocese.org'), (u'Monterey, CA-- Bishop Richard J. Garcia (diocese@dioceseofmonterey.org)', u'diocese@dioceseofmonterey.org'), ...], 'debug': False, 'error': {}, 'function': '', 'images': '/actions/postcards/womendeacons/images/en', 'language': 'en', 'selectedBishop': None, 'timecode': 1398274865}
 /big/dom/xfuturechurch/magdalen/.local/lib/python2.6/site-packages/democracards3/democracards.py in generateHTML(self=<democracards3.democracards.Democracards instance>, templatefile='postcard-lofi.html', values={'basepath': '/actions/postcards/womendeacons/', 'bishopEmails': [(u'Calgary, AB-- Bishop Frederick Henry (bishop.henry@calgarydiocese.ca)', u'bishop.henry@calgarydiocese.ca'), (u'Edmonton, AB-- Bishop Richard Smith (archdiocese@caedm.ca)', u'archdiocese@caedm.ca'), (u'Sain-Paul, AB-- Bishop Luc Bouchard (diospaul@mcsnet.ca)', u'diospaul@mcsnet.ca'), (u'Grouard-McLennan, AB-- Bishop G Pettipas (gpettipas@serbernet.com)', u'gpettipas@serbernet.com'), (u'Anchorage, AK-- Archbishop Roger L. Schweitz, OMI (mail@caa-ak.org)', u'mail@caa-ak.org'), (u'Fairbanks, AK-- Bishop Donald J. Kettler (bishop@cbna.org)', u'bishop@cbna.org'), (u'Juneau, AK-- Bishop Edward J. Burns (junodio@gci.net)', u'junodio@gci.net'), (u'Birmingham, AL-- Bishop Robert J. Baker (adelbueno@bhmdiocese.org)', u'adelbueno@bhmdiocese.org'), (u'Mobile, AL-- Archbishop Thomas Rodi (http://www....se.org/pages/contact.cfm?AOMBranchID=1&Type=Dept)', u'http://www.mobilearchdiocese.org/pages/contact.cfm?AOMBranchID=1&Type=Dept'), (u'Little Rock, AR-- Bishop Anthony Taylor (ataylor@doir.org)', u'ataylor@doir.org'), (u'Phoenix, AZ-- Bishop Thomas J. Olmsted (Contact-Us@diocesephoenix.org )', u'Contact-Us@diocesephoenix.org '), (u'Tucson, AZ-- Bishop Gerald F. Kicanas (diocese@diocesetucson.org)', u'diocese@diocesetucson.org'), (u'Nelson, BC-- Bishop John Corriveau (nelson.diocese@telus.net )', u'nelson.diocese@telus.net '), (u'Kamloops, BC-- Bishop David J.J. Monroe (rcbk@telus.net)', u'rcbk@telus.net'), (u'Vancouver, BC-- Bishop Michael Miller (chancery@rcav.bc.ca)', u'chancery@rcav.bc.ca'), (u'Victoria, BC-- Bishop Richard Gagnon (chancery@rcdvictoria.org)', u'chancery@rcdvictoria.org'), (u'Prince George, BC-- Bishop Gerald Wiesner (bishop@netbistro.com)', u'bishop@netbistro.com'), (u'Fresno, CA-- Bishop Armando X. Ochoa (javila@dioceseoffresno.org)', u'javila@dioceseoffresno.org'), (u'Los Angeles, CA-- Archbishop Jos\xe9 H. Gomez (frmvtrudeau@la-archdiocese.org)', u'frmvtrudeau@la-archdiocese.org'), (u'Monterey, CA-- Bishop Richard J. Garcia (diocese@dioceseofmonterey.org)', u'diocese@dioceseofmonterey.org'), ...], 'debug': False, 'error': {}, 'function': '', 'images': '/actions/postcards/womendeacons/images/en', 'language': 'en', 'selectedBishop': None, 'timecode': 1398274865})
  113                         
  114                 output = unicode(output)
  115                 output += template.generate(**values).render('xhtml','utf-8').decode('utf-8')
  116                 return output
  117 
output = u'Content-type: text/html; charset=UTF-8\nExpires: Wed Apr 23 17:41:05 2014\nCache-Control: no-store\n\n', template = <MarkupTemplate "templates/en/postcard-lofi.html">, template.generate = <bound method MarkupTemplate.generate of <MarkupTemplate "templates/en/postcard-lofi.html">>, values = {'basepath': '/actions/postcards/womendeacons/', 'bishopEmails': [(u'Calgary, AB-- Bishop Frederick Henry (bishop.henry@calgarydiocese.ca)', u'bishop.henry@calgarydiocese.ca'), (u'Edmonton, AB-- Bishop Richard Smith (archdiocese@caedm.ca)', u'archdiocese@caedm.ca'), (u'Sain-Paul, AB-- Bishop Luc Bouchard (diospaul@mcsnet.ca)', u'diospaul@mcsnet.ca'), (u'Grouard-McLennan, AB-- Bishop G Pettipas (gpettipas@serbernet.com)', u'gpettipas@serbernet.com'), (u'Anchorage, AK-- Archbishop Roger L. Schweitz, OMI (mail@caa-ak.org)', u'mail@caa-ak.org'), (u'Fairbanks, AK-- Bishop Donald J. Kettler (bishop@cbna.org)', u'bishop@cbna.org'), (u'Juneau, AK-- Bishop Edward J. Burns (junodio@gci.net)', u'junodio@gci.net'), (u'Birmingham, AL-- Bishop Robert J. Baker (adelbueno@bhmdiocese.org)', u'adelbueno@bhmdiocese.org'), (u'Mobile, AL-- Archbishop Thomas Rodi (http://www....se.org/pages/contact.cfm?AOMBranchID=1&Type=Dept)', u'http://www.mobilearchdiocese.org/pages/contact.cfm?AOMBranchID=1&Type=Dept'), (u'Little Rock, AR-- Bishop Anthony Taylor (ataylor@doir.org)', u'ataylor@doir.org'), (u'Phoenix, AZ-- Bishop Thomas J. Olmsted (Contact-Us@diocesephoenix.org )', u'Contact-Us@diocesephoenix.org '), (u'Tucson, AZ-- Bishop Gerald F. Kicanas (diocese@diocesetucson.org)', u'diocese@diocesetucson.org'), (u'Nelson, BC-- Bishop John Corriveau (nelson.diocese@telus.net )', u'nelson.diocese@telus.net '), (u'Kamloops, BC-- Bishop David J.J. Monroe (rcbk@telus.net)', u'rcbk@telus.net'), (u'Vancouver, BC-- Bishop Michael Miller (chancery@rcav.bc.ca)', u'chancery@rcav.bc.ca'), (u'Victoria, BC-- Bishop Richard Gagnon (chancery@rcdvictoria.org)', u'chancery@rcdvictoria.org'), (u'Prince George, BC-- Bishop Gerald Wiesner (bishop@netbistro.com)', u'bishop@netbistro.com'), (u'Fresno, CA-- Bishop Armando X. Ochoa (javila@dioceseoffresno.org)', u'javila@dioceseoffresno.org'), (u'Los Angeles, CA-- Archbishop Jos\xe9 H. Gomez (frmvtrudeau@la-archdiocese.org)', u'frmvtrudeau@la-archdiocese.org'), (u'Monterey, CA-- Bishop Richard J. Garcia (diocese@dioceseofmonterey.org)', u'diocese@dioceseofmonterey.org'), ...], 'debug': False, 'error': {}, 'function': '', 'images': '/actions/postcards/womendeacons/images/en', 'language': 'en', 'selectedBishop': None, 'timecode': 1398274865}, ).render undefined
 /big/dom/xfuturechurch/magdalen/.local/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/core.py in render(self=<genshi.core.Stream object>, method='xhtml', encoding='utf-8', out=None, **kwargs={})
  181             method = self.serializer or 'xml'
  182         generator = self.serialize(method=method, **kwargs)
  183         return encode(generator, method=method, encoding=encoding, out=out)
  184 
  185     def select(self, path, namespaces=None, variables=None):
encode = <function encode>, generator = <generator object __call__>, method = 'xhtml', encoding = 'utf-8', out = None
 /big/dom/xfuturechurch/magdalen/.local/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/output.py in encode(iterator=<generator object __call__>, method='xhtml', encoding='utf-8', out=None)
   55         _encode = lambda string: string
   56     if out is None:
   57         return _encode(''.join(list(iterator)))
   58     for chunk in iterator:
   59         out.write(_encode(chunk))
_encode = <function <lambda>>, ''.join undefined, builtin list = <type 'list'>, iterator = <generator object __call__>
 /big/dom/xfuturechurch/magdalen/.local/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/output.py in __call__(self=<genshi.output.XHTMLSerializer object>, stream=<generator object __call__>)
  337         for filter_ in self.filters:
  338             stream = filter_(stream)
  339         for kind, data, pos in stream:
  340             cached = cache_get((kind, data))
  341             if cached is not None:
kind = 'END', data = u'script', pos = ('templates/en/postcard-lofi.html', 158, 2), stream = <generator object __call__>
 /big/dom/xfuturechurch/magdalen/.local/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/output.py in __call__(self=<genshi.output.NamespaceFlattener object>, stream=<generator object __call__>)
  668         _gen_prefix = _gen_prefix().next
  669 
  670         for kind, data, pos in stream:
  671             output = cache_get((kind, data))
  672             if output is not None:
kind = 'END', data = QName('http://www.w3.org/1999/xhtml}script'), pos = ('templates/en/postcard-lofi.html', 158, 2), stream = <generator object __call__>
 /big/dom/xfuturechurch/magdalen/.local/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/output.py in __call__(self=<genshi.output.WhitespaceFilter object>, stream=<generator object __call__>, ctxt=None, space=QName('http://www.w3.org/XML/1998/namespace}space'), trim_trailing_space=<built-in method sub of _sre.SRE_Pattern object>, collapse_lines=<built-in method sub of _sre.SRE_Pattern object>)
  769         push_text = textbuf.append
  770         pop_text = textbuf.pop
  771         for kind, data, pos in chain(stream, [(None, None, None)]):
  772 
  773             if kind is TEXT:
kind = 'TEXT', data = u'\n\t\t', pos = ('./templates/en/postcard-lofi.html', 158, -1), global chain = <type 'itertools.chain'>, stream = <generator object __call__>, builtin None = None
 /big/dom/xfuturechurch/magdalen/.local/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/output.py in __call__(self=<genshi.output.EmptyTagFilter object>, stream=<generator object _ensure>)
  584     def __call__(self, stream):
  585         prev = (None, None, None)
  586         for ev in stream:
  587             if prev[0] is START:
  588                 if ev[0] is END:
ev = ('TEXT', u'\n\t\t', ('./templates/en/postcard-lofi.html', 158, -1)), stream = <generator object _ensure>
 /big/dom/xfuturechurch/magdalen/.local/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/core.py in _ensure(stream=<generator object _include>)
  286     # unchanged
  287     yield event
  288     for event in stream:
  289         yield event
  290 
event = ('TEXT', u'\n\t\t', ('./templates/en/postcard-lofi.html', 158, -1)), stream = <generator object _include>
 /big/dom/xfuturechurch/magdalen/.local/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py in _include(self=<MarkupTemplate "templates/en/postcard-lofi.html">, stream=<generator object _match>, ctxt=[{}, {'function': '', 'selectedBishop': None, 'l...8n.dngettext': <function <lambda> at 0x9f1eb54>}], **vars={})
  603         from genshi.template.loader import TemplateNotFound
  604 
  605         for event in stream:
  606             if event[0] is INCLUDE:
  607                 href, cls, fallback = event[1]
event = ('TEXT', u'\n\t\t', ('./templates/en/postcard-lofi.html', 158, -1)), stream = <generator object _match>
 /big/dom/xfuturechurch/magdalen/.local/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/markup.py in _match(self=<MarkupTemplate "templates/en/postcard-lofi.html">, stream=<generator object _flatten>, ctxt=[{}, {'function': '', 'selectedBishop': None, 'l...8n.dngettext': <function <lambda> at 0x9f1eb54>}], start=0, end=None, **vars={})
  325                     break
  326 
  327         for event in stream:
  328 
  329             # We (currently) only care about start and end events for matching
event = ('TEXT', u'\n\t\t', ('./templates/en/postcard-lofi.html', 158, -1)), stream = <generator object _flatten>
 /big/dom/xfuturechurch/magdalen/.local/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py in _flatten(self=<MarkupTemplate "templates/en/postcard-lofi.html">, stream=<generator object _ensure>, ctxt=[{}, {'function': '', 'selectedBishop': None, 'l...8n.dngettext': <function <lambda> at 0x9f1eb54>}], **vars={})
  563 
  564                 elif kind is EXPR:
  565                     result = _eval_expr(data, ctxt, vars)
  566                     if result is not None:
  567                         # First check for a string, otherwise the iterable test
result = 'en', global _eval_expr = <function _eval_expr>, data = Expression(u'Markup(captcha)'), ctxt = [{}, {'function': '', 'selectedBishop': None, 'l...8n.dngettext': <function <lambda> at 0x9f1eb54>}], vars = {}
 /big/dom/xfuturechurch/magdalen/.local/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/base.py in _eval_expr(expr=Expression(u'Markup(captcha)'), ctxt=[{}, {'function': '', 'selectedBishop': None, 'l...8n.dngettext': <function <lambda> at 0x9f1eb54>}], vars={})
  275     if vars:
  276         ctxt.push(vars)
  277     retval = expr.evaluate(ctxt)
  278     if vars:
  279         ctxt.pop()
retval undefined, expr = Expression(u'Markup(captcha)'), expr.evaluate = <bound method Expression.evaluate of Expression(u'Markup(captcha)')>, ctxt = [{}, {'function': '', 'selectedBishop': None, 'l...8n.dngettext': <function <lambda> at 0x9f1eb54>}]
 /big/dom/xfuturechurch/magdalen/.local/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/eval.py in evaluate(self=Expression(u'Markup(captcha)'), data=[{}, {'function': '', 'selectedBishop': None, 'l...8n.dngettext': <function <lambda> at 0x9f1eb54>}])
  176         __traceback_hide__ = 'before_and_this'
  177         _globals = self._globals(data)
  178         return eval(self.code, _globals, {'__data__': data})
  179 
  180 
builtin eval = <built-in function eval>, self = Expression(u'Markup(captcha)'), self.code = <code object <Expression u'Markup(captcha)'> at ...le "./templates/en/postcard-lofi.html", line 159>, _globals = {'UndefinedError': <class 'genshi.template.eval.UndefinedError'>, '__builtins__': {'ArithmeticError': <type 'exceptions.ArithmeticError'>, 'AssertionError': <type 'exceptions.AssertionError'>, 'AttributeError': <type 'exceptions.AttributeError'>, 'BaseException': <type 'exceptions.BaseException'>, 'BufferError': <type 'exceptions.BufferError'>, 'BytesWarning': <type 'exceptions.BytesWarning'>, 'DeprecationWarning': <type 'exceptions.DeprecationWarning'>, 'EOFError': <type 'exceptions.EOFError'>, 'Ellipsis': Ellipsis, 'EnvironmentError': <type 'exceptions.EnvironmentError'>, ...}, '__data__': [{}, {'function': '', 'selectedBishop': None, 'l...8n.dngettext': <function <lambda> at 0x9f1eb54>}], '_lookup_attr': <bound method type.lookup_attr of <class 'genshi.template.eval.StrictLookup'>>, '_lookup_item': <bound method type.lookup_item of <class 'genshi.template.eval.StrictLookup'>>, '_lookup_name': <bound method type.lookup_name of <class 'genshi.template.eval.StrictLookup'>>, '_star_import_patch': <function _star_import_patch>}, data = [{}, {'function': '', 'selectedBishop': None, 'l...8n.dngettext': <function <lambda> at 0x9f1eb54>}]
 /big/dom/xfuturechurch/www/actions/postcards/womendeacons/templates/en/postcard-lofi.html in ()
  157                 };
  158                 </script>
  159                 <py:replace value="Markup(captcha)">reCAPTCHA</py:replace>
  160 
  161        <input type="submit" name="submit" value="Send Postcard" style="position: relative; left: 100px;"  />
py undefined, replace undefined, value undefined, reCAPTCHA undefined
 /big/dom/xfuturechurch/magdalen/.local/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/eval.py in lookup_name(cls=<class 'genshi.template.eval.StrictLookup'>, data=[{}, {'function': '', 'selectedBishop': None, 'l...8n.dngettext': <function <lambda> at 0x9f1eb54>}], name='captcha')
  307             val = BUILTINS.get(name, val)
  308             if val is UNDEFINED:
  309                 val = cls.undefined(name)
  310         return val
  311 
val = <object object>, cls = <class 'genshi.template.eval.StrictLookup'>, cls.undefined = <bound method type.undefined of <class 'genshi.template.eval.StrictLookup'>>, name = 'captcha'
 /big/dom/xfuturechurch/magdalen/.local/lib/python2.6/site-packages/Genshi-0.6-py2.6.egg/genshi/template/eval.py in undefined(cls=<class 'genshi.template.eval.StrictLookup'>, key='captcha', owner=<object object>)
  408         """Raise an ``UndefinedError`` immediately."""
  409         __traceback_hide__ = True
  410         raise UndefinedError(key, owner=owner)
  411 
  412 
global UndefinedError = <class 'genshi.template.eval.UndefinedError'>, key = 'captcha', owner = <object object>

<class 'genshi.template.eval.UndefinedError'>: "captcha" not defined
      args = ('"captcha" not defined',)
      filename = '<string>'
      lineno = -1
      message = '"captcha" not defined'
      msg = '"captcha" not defined'
      offset = -1