Fix wrong usage of helper requests module in soc.views.models.base after recent unused imports cleanup.
Patch by: Pawel Solyga
Reviewed by: to-be-reviewed
--- a/app/soc/views/models/base.py Fri Apr 03 19:17:26 2009 +0000
+++ b/app/soc/views/models/base.py Sat Apr 04 09:09:35 2009 +0000
@@ -39,6 +39,7 @@
from soc.views.helper import decorators
from soc.views.helper import forms
from soc.views.helper import redirects
+from soc.views.helper import requests
from soc.views.helper import responses
from soc.views import sitemap
@@ -456,7 +457,7 @@
# remove the params from the request, this is relevant only if
# someone bookmarked a POST page.
- is_self_referrer = helper.requests.isReferrerSelf(
+ is_self_referrer = requests.isReferrerSelf(
request, suffix=suffix, url_name=params['url_name'])
if request.GET.get(params['submit_msg_param_name']):
@@ -465,7 +466,7 @@
if entity:
# note: no message will be displayed if parameter is not present
- context['notice'] = helper.requests.getSingleIndexedParamValue(
+ context['notice'] = requests.getSingleIndexedParamValue(
request, params['submit_msg_param_name'],
values=params['save_message'])