|
From: SVN c. m. f. t. SWORD-A. p. <swo...@li...> - 2012-04-25 13:40:06
|
Revision: 503
http://sword-app.svn.sourceforge.net/sword-app/?rev=503&view=rev
Author: richard-jones
Date: 2012-04-25 13:39:56 +0000 (Wed, 25 Apr 2012)
Log Message:
-----------
replace uses of redirect_to with redirect
Modified Paths:
--------------
sss/branches/sss-2/sss/pylons_sword_controller.py
Modified: sss/branches/sss-2/sss/pylons_sword_controller.py
===================================================================
--- sss/branches/sss-2/sss/pylons_sword_controller.py 2012-04-25 11:53:04 UTC (rev 502)
+++ sss/branches/sss-2/sss/pylons_sword_controller.py 2012-04-25 13:39:56 UTC (rev 503)
@@ -1,5 +1,5 @@
from pylons import request, response, session, tmpl_context as c
-from pylons.controllers.util import abort, redirect_to
+from pylons.controllers.util import abort, redirect
from pylons.controllers import WSGIController
from pylons.templating import render_mako as render
@@ -664,7 +664,7 @@
# either send the client a redirect, or stream the content out
if media_resource.redirect:
- redirect_to(media_resource.url, _code=302) # FOUND (not SEE OTHER)
+ redirect(media_resource.url, _code=302) # FOUND (not SEE OTHER)
return
else:
response.content_type = media_resource.content_type
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|