Hi Ian,

the traceback below. I'm using AuthKit which may be the "unicode" source.
Don't be irritated by the "Panda3d" references - it's a normal Python 2.4
version below it.

But as I wrote before: removing the binary manipulations of the timestamp
solves my problems...

Regards,
Andrew

  File
"c:\panda3d-1.3.2\python\lib\site-packages\Paste-1.3-py2.4.egg\paste\evalexc
eption\middleware.py", line 186, in __call__
    return self.respond(environ, start_response)
  File
"c:\panda3d-1.3.2\python\lib\site-packages\Pylons-0.9.5-py2.4.egg\pylons\err
or.py", line 211, in respond
    return self.application(environ, start_response)
  File
"c:\panda3d-1.3.2\python\lib\site-packages\Paste-1.3-py2.4.egg\paste\httpexc
eptions.py", line 633, in __call__
    self.send_http_response, catch=HTTPException)
  File
"c:\panda3d-1.3.2\python\lib\site-packages\Paste-1.3-py2.4.egg\paste\wsgilib
.py", line 225, in catch_errors_app
    app_iter = application(environ, start_response)
  File
"c:\panda3d-1.3.2\python\lib\site-packages\PasteDeploy-1.3-py2.4.egg\paste\d
eploy\config.py", line 164, in __call__
    app_iter = self.application(environ, start_response)
  File
"c:\panda3d-1.3.2\python\lib\site-packages\Pylons-0.9.5-py2.4.egg\pylons\wsg
iapp.py", line 261, in __call__
    return self.app(environ, start_response)
  File
"c:\panda3d-1.3.2\python\lib\site-packages\Beaker-0.7.4-py2.4.egg\beaker\cac
he.py", line 180, in __call__
    return self.app(environ, start_response)
  File
"c:\panda3d-1.3.2\python\lib\site-packages\Beaker-0.7.4-py2.4.egg\beaker\ses
sion.py", line 393, in __call__
    response = self.wrap_app(environ, session_start_response)
  File
"c:\panda3d-1.3.2\python\lib\site-packages\Routes-1.7-py2.4.egg\routes\middl
eware.py", line 104, in __call__
    response = self.app(environ, start_response)
  File
"c:\panda3d-1.3.2\python\lib\site-packages\Pylons-0.9.5-py2.4.egg\pylons\wsg
iapp.py", line 84, in __call__
    response = self.dispatch(controller, environ, start_response)
  File
"c:\panda3d-1.3.2\python\lib\site-packages\Pylons-0.9.5-py2.4.egg\pylons\wsg
iapp.py", line 182, in dispatch
    return controller(environ, start_response)
  File
"S:\Workdir\Andrew\EclipseWorkspace\SystemischeIT\src\systit\systit\lib\base
.py", line 15, in __call__
    return WSGIController.__call__(self, environ, start_response)
  File
"c:\panda3d-1.3.2\python\lib\site-packages\Pylons-0.9.5-py2.4.egg\pylons\con
trollers.py", line 214, in __call__
    response = self._dispatch_call()
  File
"c:\panda3d-1.3.2\python\lib\site-packages\Pylons-0.9.5-py2.4.egg\pylons\con
trollers.py", line 161, in _dispatch_call
    response = self._inspect_call(func)
  File
"c:\panda3d-1.3.2\python\lib\site-packages\Pylons-0.9.5-py2.4.egg\pylons\con
trollers.py", line 135, in _inspect_call
    result = func(**args)
  File
"S:\Workdir\Andrew\EclipseWorkspace\SystemischeIT\src\systit\systit\controll
ers\account.py", line 17, in signin
    request.environ['paste.auth_tkt.set_user'](username)
  File
"c:\panda3d-1.3.2\python\lib\site-packages\AuthKit-0.3.0pre5-py2.4.egg\authk
it\authenticate\auth_tkt.py", line 274, in set_user
    set_cookies.extend(self.set_user_cookie(
  File
"c:\panda3d-1.3.2\python\lib\site-packages\AuthKit-0.3.0pre5-py2.4.egg\authk
it\authenticate\auth_tkt.py", line 314, in set_user_cookie
    parts = str(ticket.cookie()).split(':')
  File
"c:\panda3d-1.3.2\python\lib\site-packages\AuthKit-0.3.0pre5-py2.4.egg\authk
it\authenticate\auth_tkt.py", line 143, in cookie
    c[self.cookie_name] = self.cookie_value().strip().replace('\n', '')
  File
"C:\Panda3D-1.3.2\python\lib\site-packages\paste-1.3-py2.4.egg\paste\auth\au
th_tkt.py", line 102, in cookie_value
    v = '%s%08x%s!' % (self.digest(), int(self.time), self.userid)
  File
"C:\Panda3D-1.3.2\python\lib\site-packages\paste-1.3-py2.4.egg\paste\auth\au
th_tkt.py", line 99, in digest
    self.user_data)
  File
"C:\Panda3D-1.3.2\python\lib\site-packages\paste-1.3-py2.4.egg\paste\auth\au
th_tkt.py", line 163, in calculate_digest
    digest0 = md5.new(encode_ip_timestamp(ip, timestamp)  + secret + userid
+ '\0'
UnicodeDecodeError: 'ascii' codec can't decode byte 0xbb in position 5:
ordinal not in range(128)
----------------------------------------


_______________________________________________
Paste-users mailing list
[email protected]
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users

Reply via email to