Fix wrong usage of helper requests module in soc.views.models.base after recent unused imports cleanup.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Sat, 04 Apr 2009 09:09:35 +0000
changeset 2081 0490222fab35
parent 2080 6c4cf7ae18d8
child 2082 01e4d183fe3e
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
app/soc/views/models/base.py
--- 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'])