Ticket #560: patch-server-560-r3385-A0.diff
| File patch-server-560-r3385-A0.diff, 1.2 kB (added by elemoine, 2 years ago) |
|---|
-
mapfish/controllers/printer.py
27 27 import re 28 28 import simplejson 29 29 30 from routes import url_for31 30 from pylons.controllers import WSGIController 32 from pylons import config, request, response, session 31 from pylons import config, request, response, session, url 33 32 from pylons.controllers.util import forward 34 33 35 34 from paste.fileapp import FileApp … … 206 205 This method is returning the base URL for accessing the different 207 206 actions of this controller. 208 207 """ 209 actionUrl = url _for(action = actionName, id =id)208 actionUrl = url(controller="printer", action=actionName, id=id) 210 209 if request.params.has_key('url'): 211 210 fullUrl = request.params['url'].encode('utf8') 212 myUrl = url _for(action =fromAction)211 myUrl = url(controller="printer", action=fromAction) 213 212 if fullUrl == myUrl[1:]: # support for very short relative URLs 214 213 return actionUrl[1:] 215 214 if fullUrl.endswith(myUrl):
