The following line works fine:
            self.request.response.set_cookie( 'fb-loggedin',
value='1', max_age=None, path='/' )

However, this line creates an interesting error
            self.request.response.set_cookie( 'fb-loggedin', value=1,
max_age=None, path='/' )

"IOError: [Errno 20] Not a directory: '/Users/jvanasco/webserver/
environments/python-virtualenv-pyramid/lib/python2.6/site-packages/
WebOb-1.2b2-py2.6.egg/webob/cookies.py'"

Full stack trace is below.  I've never seen this sort of thing
before.

Obviously the fix is to pass in a string, it's just odd that specific
error 'Not a directory' was called.  For whatever reason it was trying
to read the non-existent /webob/cookies.py ( the .egg is a single
file )

Exception happened during processing of request from ('127.0.0.1',
49195)
Traceback (most recent call last):
  File "/Users/jvanasco/webserver/environments/python-virtualenv-
pyramid/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/
httpserver.py", line 1068, in process_request_in_thread
    self.finish_request(request, client_address)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/SocketServer.py", line 320, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/SocketServer.py", line 615, in __init__
    self.handle()
  File "/Users/jvanasco/webserver/environments/python-virtualenv-
pyramid/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/
httpserver.py", line 442, in handle
    BaseHTTPRequestHandler.handle(self)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/
python2.6/BaseHTTPServer.py", line 329, in handle
    self.handle_one_request()
  File "/Users/jvanasco/webserver/environments/python-virtualenv-
pyramid/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/
httpserver.py", line 437, in handle_one_request
    self.wsgi_execute()
  File "/Users/jvanasco/webserver/environments/python-virtualenv-
pyramid/lib/python2.6/site-packages/Paste-1.7.5.1-py2.6.egg/paste/
httpserver.py", line 287, in wsgi_execute
    self.wsgi_start_response)
  File "/Users/jvanasco/webserver/environments/python-virtualenv-
pyramid/lib/python2.6/site-packages/WebError-0.10.3-py2.6.egg/weberror/
evalexception.py", line 233, in __call__
    return self.debug(req)(environ, start_response)
  File "/Users/jvanasco/webserver/environments/python-virtualenv-
pyramid/lib/python2.6/site-packages/WebError-0.10.3-py2.6.egg/weberror/
evalexception.py", line 245, in debug
    return method(req)
  File "/Users/jvanasco/webserver/environments/python-virtualenv-
pyramid/lib/python2.6/site-packages/WebError-0.10.3-py2.6.egg/weberror/
evalexception.py", line 398, in source_code
    f = open(filename, 'rb')
IOError: [Errno 20] Not a directory: '/Users/jvanasco/webserver/
environments/python-virtualenv-pyramid/lib/python2.6/site-packages/
WebOb-1.2b2-py2.6.egg/webob/cookies.py'

-- 
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