The following patch removes the deprecation warning from url.URL.fromRequest.
This is especially useful now that Element and the future Page object are passed only a Request
and not the Context.
Index: nevow/url.py
===================================================================
--- nevow/url.py (revision 7775)
+++ nevow/url.py (working copy)
@@ -94,11 +94,6 @@
fromString = classmethod(fromString)
def fromRequest(klass, request):
- import warnings
- warnings.warn(
- "[v0.4] URL.fromRequest will change behaviour soon. Use fromContext instead",
- DeprecationWarning,
- stacklevel=2)
uri = request.prePathURL()
if '?' in request.uri:
uri += '?' + request.uri.split('?')[-1]