Changeset 3386

Show
Ignore:
Timestamp:
03/02/10 10:15:43 (2 years ago)
Author:
elemoine
Message:

print controller doesn't work with Routes 1.12, r=bbinet (closes #560)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • framework/server/trunk/mapfish/controllers/printer.py

    r3356 r3386  
    2828import simplejson 
    2929 
    30 from routes import url_for 
    3130from pylons.controllers import WSGIController 
    32 from pylons import config, request, response, session 
     31from pylons import config, request, response, session, url 
    3332from pylons.controllers.util import forward 
    3433 
     
    207206        actions of this controller. 
    208207        """ 
    209         actionUrl = url_for(action = actionName, id = id) 
     208        actionUrl = url(controller="printer", action=actionName, id=id) 
    210209        if request.params.has_key('url'): 
    211210            fullUrl = request.params['url'].encode('utf8') 
    212             myUrl = url_for(action = fromAction) 
     211            myUrl = url(controller="printer", action=fromAction) 
    213212            if fullUrl == myUrl[1:]:  # support for very short relative URLs 
    214213                return actionUrl[1:]