A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
| /home/imaginefcgi/local/lib/python2.5/site-packages/imagine/debug.py in middleware(env={'DOCUMENT_ROOT': '/home/imaginefcgi/realtors.imaginehomessa.net', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'realtors.imaginehomessa.net', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<bound method CGIHandler.start_response of <wsgiref.handlers.CGIHandler instance at 0xba6170>>) |
6 def middleware(env, start_response):
|
7 try:
|
8 return app(env, start_response)
|
9 except:
|
10 txt = cgitb.html(sys.exc_info())
|
| app = <function middleware at 0xb9fb18>, env = {'DOCUMENT_ROOT': '/home/imaginefcgi/realtors.imaginehomessa.net', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'realtors.imaginehomessa.net', 'HTTP_PRAGMA': 'no-cache', ...}, start_response = <bound method CGIHandler.start_response of <wsgiref.handlers.CGIHandler instance at 0xba6170>> |
| /home/imaginefcgi/local/lib/python2.5/site-packages/imagine/debug.py in middleware(env={'DOCUMENT_ROOT': '/home/imaginefcgi/realtors.imaginehomessa.net', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'realtors.imaginehomessa.net', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<bound method CGIHandler.start_response of <wsgiref.handlers.CGIHandler instance at 0xba6170>>) |
39 def middleware(env, start_response):
|
40 try:
|
41 return app(env, start_response)
|
42 except _mysql_exceptions.Error, e:
|
43 if e[0] == 2014:
|
| app = <function middleware at 0xb82938>, env = {'DOCUMENT_ROOT': '/home/imaginefcgi/realtors.imaginehomessa.net', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'realtors.imaginehomessa.net', 'HTTP_PRAGMA': 'no-cache', ...}, start_response = <bound method CGIHandler.start_response of <wsgiref.handlers.CGIHandler instance at 0xba6170>> |
| /home/imaginefcgi/local/lib/python2.5/site-packages/imagine/app.py in middleware(env={'DOCUMENT_ROOT': '/home/imaginefcgi/realtors.imaginehomessa.net', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'realtors.imaginehomessa.net', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<bound method CGIHandler.start_response of <wsgiref.handlers.CGIHandler instance at 0xba6170>>) |
136 def middleware(env, start_response):
|
137 try:
|
138 return app(env,start_response)
|
139 except xml.parsers.expat.ExpatError, e:
|
140 fnames = []; fnames.append(PARSING_FILE)
|
| app = <__main__.SelectorApplication instance at 0xb856c8>, env = {'DOCUMENT_ROOT': '/home/imaginefcgi/realtors.imaginehomessa.net', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'realtors.imaginehomessa.net', 'HTTP_PRAGMA': 'no-cache', ...}, start_response = <bound method CGIHandler.start_response of <wsgiref.handlers.CGIHandler instance at 0xba6170>> |
| /home/imaginefcgi/realtors.imaginehomessa.net/dispatch.cgi in __call__(self=<__main__.SelectorApplication instance at 0xb856c8>, environ={'DOCUMENT_ROOT': '/home/imaginefcgi/realtors.imaginehomessa.net', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'realtors.imaginehomessa.net', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<bound method CGIHandler.start_response of <wsgiref.handlers.CGIHandler instance at 0xba6170>>) |
53 resp = webob_exc.HTTPSeeOther()
|
54 resp.location = '/login'
|
55 return resp(environ, start_response)
|
56
|
57 application = SelectorApplication()
|
| resp = <imagine.propapps.BrochureApplication instance at 0xba6e60>, environ = {'DOCUMENT_ROOT': '/home/imaginefcgi/realtors.imaginehomessa.net', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'realtors.imaginehomessa.net', 'HTTP_PRAGMA': 'no-cache', ...}, start_response = <bound method CGIHandler.start_response of <wsgiref.handlers.CGIHandler instance at 0xba6170>> |
| /home/imaginefcgi/local/lib/python2.5/site-packages/imagine/app.py in __call__(self=<imagine.propapps.BrochureApplication instance at 0xba6e60>, environ={'DOCUMENT_ROOT': '/home/imaginefcgi/realtors.imaginehomessa.net', 'GATEWAY_INTERFACE': 'CGI/1.1', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,text/xml;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5', 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_ACCEPT_ENCODING': 'gzip', 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_CACHE_CONTROL': 'no-cache', 'HTTP_CONNECTION': 'close', 'HTTP_HOST': 'realtors.imaginehomessa.net', 'HTTP_PRAGMA': 'no-cache', ...}, start_response=<bound method CGIHandler.start_response of <wsgiref.handlers.CGIHandler instance at 0xba6170>>) |
119 def __call__(self, environ, start_response):
|
120 req = webob.Request(environ, charset="utf8")
|
121 resp = self.process_request(req)
|
122 rsp = resp(environ, start_response)
|
123 return rsp
|
| resp undefined, self = <imagine.propapps.BrochureApplication instance at 0xba6e60>, self.process_request = <bound method BrochureApplication.process_reques...opapps.BrochureApplication instance at 0xba6e60>>, req = <Request at 0xba9d50 GET http://realtors.imaginehomessa.net/dispatch.cgi/brochure?propKey=83> |
| /home/imaginefcgi/local/lib/python2.5/site-packages/imagine/propapps.py in fill_page_template(self=<imagine.propapps.BrochureApplication instance at 0xba6e60>, tw=<twiddler.Twiddler instance at 0xc322d8>, prop=None) |
325 'neighborhood','floorplan','bedrooms','bathrooms',\
|
326 'stories','garagesize','available':
|
327 tw[k].replace(prop[k])
|
328 for k in 'squarefeet', 'price':
|
329 tw[k].replace(fmt_bignum(prop[k]))
|
| tw = <twiddler.Twiddler instance at 0xc322d8>, k = 'address', ].replace = <built-in method replace of str object at 0xb97ba0>, prop = None |