local variable 'xmlDocument' referenced before assignment exceptions.Exception Traceback (most recent call last):
File "dispatch.py", line 564, in ProcessRender
state = self.GeneratePage(liveXml)
File "dispatch.py", line 656, in GeneratePage
state = thisPage.Render(xmlFile)
File "dispatch.py", line 859, in Render
self.AddContext(xmlDocument, xmlFile)
UnboundLocalError: local variable 'xmlDocument' referenced before assignment
Initialise 126567728924.0 >>> Context.Initialise. New request!
DebugEnvironment 126567728924.0 >>> Environment
DebugEnvironment 126567728924.0 SERVER_SOFTWARE Apache/2.0.55 (Ubuntu) DAV/2 SVN/1.3.1 mod_python/3.1.4 Python/2.4.3 mod_ssl/2.0.55 OpenSSL/0.9.8a
DebugEnvironment 126567728925.0 SCRIPT_NAME /robots.txt
DebugEnvironment 126567728925.0 SERVER_SIGNATURE
DebugEnvironment 126567728925.0 REQUEST_METHOD GET
DebugEnvironment 126567728925.0 SERVER_PROTOCOL HTTP/1.1
DebugEnvironment 126567728925.0 QUERY_STRING
DebugEnvironment 126567728925.0 PATH /usr/local/bin:/usr/bin:/bin
DebugEnvironment 126567728925.0 HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
DebugEnvironment 126567728925.0 HTTP_USER_AGENT CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
DebugEnvironment 126567728925.0 HTTP_CONNECTION close
DebugEnvironment 126567728925.0 SERVER_NAME www.clearattitude.com
DebugEnvironment 126567728925.0 REMOTE_ADDR 38.107.191.115
DebugEnvironment 126567728925.0 SERVER_PORT 80
DebugEnvironment 126567728925.0 SERVER_ADDR 88.208.228.230
DebugEnvironment 126567728925.0 DOCUMENT_ROOT /home/default/clearattitude.com/user/htdocs
DebugEnvironment 126567728925.0 HTTP_PRAGMA no-cache
DebugEnvironment 126567728925.0 SCRIPT_FILENAME /home/default/clearattitude.com/user/htdocs/webCogs/dispatch.py
DebugEnvironment 126567728925.0 SERVER_ADMIN webmaster@clearattitude.com
DebugEnvironment 126567728925.0 SCRIPT_URI http://www.clearattitude.com/robots.txt
DebugEnvironment 126567728925.0 HTTP_HOST www.clearattitude.com
DebugEnvironment 126567728925.0 SCRIPT_URL /robots.txt
DebugEnvironment 126567728926.0 HTTP_CACHE_CONTROL no-cache
DebugEnvironment 126567728926.0 REQUEST_URI /robots.txt
DebugEnvironment 126567728926.0 HTTP_ACCEPT text/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
DebugEnvironment 126567728926.0 HTTP_X_CC_ID ccc03-02
DebugEnvironment 126567728926.0 GATEWAY_INTERFACE CGI/1.1
DebugEnvironment 126567728926.0 REMOTE_PORT 36495
DebugEnvironment 126567728926.0 HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5
DebugEnvironment 126567728926.0 HTTP_ACCEPT_ENCODING gzip
DebugEnvironment 126567728926.0 Form debug starts
DebugEnvironment 126567728926.0 Form debug end
InitialiseSecurity 126567728926.0 Local security groups
ProcessMain 126567728926.0 New request initialised.
FetchPageFromCache 126567728926.0 Checking cache mode...
FetchPageFromCache 126567728926.0 Checking cache for /robots.txt
ProcessMain 126567728926.0 Not in cache. Connecting to database
OpenDatabase 126567728926.0 Trying to open database.
OpenDatabase 126567728926.0 Attaching to the storage.
OpenDatabase 126567728926.0 Getting application.
OpenDatabase 126567728927.0 Got.
OpenDatabase 126567728927.0 Database open
OpenDatabase 126567728927.0 Checking Database. Length: 23
ProcessMain 126567728927.0 Done.
FetchPageXmlFileName 126567728927.0 >>> FetchPageXml
FetchPageXmlFileName 126567728927.0 Figuring out the page to render
FetchPageXmlFileName 126567728927.0 request URI robots.txt
FetchRootDomain 126567728927.0 Looking up any aliases.
FetchRootDomain 126567728927.0 Got www.clearattitude.com
FetchRootDomain 126567728927.0 Checking clearattitude.com
FetchRootDomain 126567728927.0 Checking www.clearattitude.com
FetchPageXmlFileName 126567728927.0 request domain www.clearattitude.com
FetchPageXmlFileName 126567728927.0 file [Portfolio.html] == [robots.txt]
FetchPageXmlFileName 126567728927.0 file [Home.html] == [robots.txt]
FetchPageXmlFileName 126567728928.0 file [Contact.html] == [robots.txt]
FetchPageXmlFileName 126567728928.0 LiveXml now ''
FetchPageXmlFileName 126567728928.0 no liveXML. trying default page
FetchPageXmlFileName 126567728928.0 file [] == [robots.txt]
FetchPageXmlFileName 126567728928.0 file [] == [robots.txt]
FetchPageXmlFileName 126567728928.0 file [] == [robots.txt]
FetchPageXmlFileName 126567728928.0 No direct match. Now trying something else I'm not entirely sure about
FetchPageXmlFileName 126567728928.0 no liveXML
FetchPageXmlFileName 126567728928.0 [] == [robots.txt]
FetchPageXmlFileName 126567728928.0 [] == [robots.txt]
FetchPageXmlFileName 126567728928.0 [] == [robots.txt]
FetchPageXmlFileName 126567728928.0 Couldn't find it. 404ing
FetchPageXmlFileName 126567728928.0 [Portfolio.html] == [404.html]
FetchPageXmlFileName 126567728928.0 [Home.html] == [404.html]
FetchPageXmlFileName 126567728928.0 [Contact.html] == [404.html]
ProcessRender 126567728928.0 >>> Dispatch.ProcessRender
GeneratePage 126567728928.0 >>> RunTransform. Opening pagerender with xmlFile []
Render 126567728928.0 >>> PageGenerator.Render. Loading XML document. ''
Render 126567728929.0 Failed to load XML: []
Render 126567728929.0 Loaded About to add context