Commits

pjs  committed 30f598d

[svn r27] Added getvars to OTO.py

  • Participants
  • Parent commits 95e26de
  • Branches trunk

Comments (0)

Files changed (1)

         self.cookie_str = '%s-oto' % (settings.ROOT_URLCONF.split('.')[0])
         self.cookie_domain = None
 
+    def _getvars(self, request):
+        getvars = request.GET.copy()
+        if len(getvars.keys()) > 0:
+            return '&%s' % getvars.urlencode()
+        return ''
+
     def return_response(self, request, template):
-        return render_to_response(template, {'cookie_domain': self.cookie_domain},
-            context_instance=RequestContext(request))
+        return render_to_response(template, {
+            'cookie_domain': self.cookie_domain,
+            'getvars': self._getvars(request),
+            }, context_instance=RequestContext(request))
 
     def get_cookie_domain(self, request):
         if hasattr(settings, 'OTO_COOKIE_DOMAIN'):