flask/flask
Mitchell Peabody 275f830c83 There was a duplicated call to url_adapter.build(...)
try:
        rv = url_adapter.build(endpoint, values, method=method,
                               force_external=external)
    except BuildError, error:
        # We need to inject the values again so that the app callback can
        # deal with that sort of stuff.
        values['_external'] = external
        values['_anchor'] = anchor
        values['_method'] = method
        return appctx.app.handle_url_build_error(error, endpoint, values)

   rv = url_adapter.build(endpoint, values, method=method,
                          force_external=external)

If no exception was raised for url_adapter.build(...) then the same method call
would be made after the try...except block. This is unnecessary.
2012-10-17 11:56:39 -04:00
..
ext Refactored flask.ext process to not swallow exceptions on weird Pythons. 2011-09-27 13:33:23 +02:00
testsuite The builder on github is using python 2.5, the views.py testsuite uses the with 2012-10-16 16:57:57 -04:00
__init__.py Added wrapper module around simplejson/json for much simplified customization. 2012-10-07 23:31:48 +02:00
app.py Added template tests and made config a true global 2012-10-08 07:01:49 +02:00
blueprints.py Add @template_test() decorator for creating custom jinja2 tests, like existing @template_filter() for filters. Fixes #332 2012-10-07 12:51:46 +02:00
config.py Fixed silent keyword arg to config.from_envvar. 2012-03-01 08:34:08 -05:00
ctx.py Updated a comment that was misleading with recent flask sqlalchemy installations 2012-10-08 07:05:32 +02:00
debughelpers.py Don't lie to the user about POST redirects 2011-08-27 00:44:46 +02:00
exceptions.py Added wrapper module around simplejson/json for much simplified customization. 2012-10-07 23:31:48 +02:00
exthook.py various typo fixes 2012-09-06 18:04:51 +01:00
globals.py Implemented a separate application context. 2012-04-09 14:34:12 +01:00
helpers.py There was a duplicated call to url_adapter.build(...) 2012-10-17 11:56:39 -04:00
json.py Let json.* work even without app on the stack and added tests 2012-10-07 23:41:41 +02:00
logging.py Changed logic for debug level log settings 2011-10-11 19:09:37 -07:00
module.py Late but 2010 -> 2011 in some files 2011-09-01 16:57:00 +02:00
sessions.py Added wrapper module around simplejson/json for much simplified customization. 2012-10-07 23:31:48 +02:00
signals.py Added documentation for appcontext and teardown handlers 2012-04-09 17:29:00 +01:00
templating.py Added template tests and made config a true global 2012-10-08 07:01:49 +02:00
testing.py make_test_environ_builder when used with subdomains was not working correctly, now it uses urlparse module for detecting full URL and changing path and base_url correctly 2012-10-07 12:48:19 +02:00
views.py Remove an unused iteration variable. 2012-03-19 22:33:43 -07:00
wrappers.py Added wrapper module around simplejson/json for much simplified customization. 2012-10-07 23:31:48 +02:00