[Twisted-web] warning appears after upgrading Nevow

Yun Mao maoy+twisted at cis.upenn.edu
Thu Sep 1 20:54:12 MDT 2005


exceptions.UserWarning: All inevow.IResource APIs now take a Context object 
instead of the Request; Please adapt the context to IRequest before attempting 
to access attributes of the request

The code looks like: view = request.args.get("view",[''])[0]

How should I deal with the warning?  Thanks..

Yun



More information about the Twisted-web mailing list