Changeset 3386
- Timestamp:
- 03/02/10 10:15:43 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
framework/server/trunk/mapfish/controllers/printer.py
r3356 r3386 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 … … 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:]
