From fe54d0a66667ee1835d0e5e0dfab49da92900779 Mon Sep 17 00:00:00 2001 From: hg Date: Wed, 28 Nov 2012 11:54:41 -0600 Subject: [PATCH] Add a blank config dictionary to blank Requests --- src/milla/__init__.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/milla/__init__.py b/src/milla/__init__.py index 11349aa..7442e2a 100644 --- a/src/milla/__init__.py +++ b/src/milla/__init__.py @@ -21,7 +21,6 @@ from webob.request import * from webob.response import * from auth.decorators import * import urllib -import urlparse def allow(*methods): '''Specify the allowed HTTP verbs for a controller callable @@ -49,9 +48,15 @@ class Request(Request): ''' ResponseClass = Response + + @classmethod + def blank(cls, *args, **kwargs): + req = super(Request, cls).blank(*args, **kwargs) + req.config = {} + return req def relative_url(self, other_url, to_application=True, path_only=True, - **vars): + **vars): #@ReservedAssignment '''Create a new URL relative to the request URL :param other_url: relative path to join with the request URL