Hi All,
I stumbled upon a bug in Beaker when raising webob.exc.HTTPFound. The
offending line in Beaker is middleware.py:155. It's caused because the
header attribute of a WebOb WSGIHTTPException is a MultiDict (by way of
inheritance from Response), whereas it's a list in Paste.
Anyway, I'd submit a patch but I wasn't sure what the best solution
would be. Obviously it's not desirable to be testing the exception
class name against a string, and it should probably accommodate any
subclass of HTTPRedirection. In lieu of that, though, maybe we should
just check whether the exception is list-like or dict-like, and act
accordingly?
Regards,
Nick
_______________________________________________
Paste-users mailing list
Paste-users@???
http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users