Created
January 27, 2012 12:10
-
-
Save dunkfordyce/1688503 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> mapper.connect('test', '/{action}/{id}') | |
>>> h.url_for('test') | |
'/' | |
>>> mapper.connect('test2', '/{action}/{id}', _static=True) | |
>>> h.url_for('test2') | |
Traceback (most recent call last): | |
File "<console>", line 1, in <module> | |
File "/home/fddev/projects/fatdrop/branches/smartphonedev/fatdrop/fatdrop/lib/helpers.py", line 67, in url_for | |
ret = pylons.url(*args, **kwargs) | |
File "/home/fddev/projects/fatdrop/branches/smartphonedev/fatdrop/devenv0/lib/python2.5/site-packages/Paste-1.7.2-py2.5.egg/paste/registry.py", line 155, in __call__ | |
return self._current_obj()(*args, **kw) | |
File "/home/fddev/projects/fatdrop/branches/smartphonedev/fatdrop/devenv0/lib/python2.5/site-packages/Routes-1.11-py2.5.egg/routes/util.py", line 425, in __call__ | |
(args, kargs)) | |
GenerationException: Could not generate URL. Called with args: ('test2',) {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment