Release Notes and Changelog

Bugfix Release 0.8.4

  • Fixed “Using DictMixins with the @view decorator” (Issue #102 and #103)

Bugfix Release 0.8.3

  • Fixed “Reloading server dies on slow hardware.” (Issue #90)

Bugfix Release 0.8.2

  • Added backward compatibility wrappers and deprecation warnings to some of the API changes.
  • Fixed “FileCheckerThread seems to fail on eggs” (Issue #87)
  • Fixed “Bottle.get_url() does not return correct path when SCRIPT_NAME is set.” (Issue #83)

Release 0.8

API changes

These changes may break compatibility with previous versions.

  • The built-in Key/Value database is not available anymore. It is marked deprecated since 0.6.4
  • The Route syntax and behaviour changed.
    • Regular expressions must be encapsulated with #. In 0.6 all non-alphanumeric characters not present in the regular expression were allowed.
    • Regular expressions not part of a route wildcard are escaped automatically. You don’t have to escape dots or other regular control characters anymore. In 0.6 the whole URL was interpreted as a regular expression. You can use anonymous wildcards (/index:#(\.html)?#) to achieve a similar behaviour.
  • The BreakTheBottle exception is gone. Use HTTPResponse instead.
  • The SimpleTemplate engine escapes HTML special characters in {{bad_html}} expressions automatically. Use the new {{!good_html}} syntax to get old behaviour (no escaping).
  • The SimpleTemplate engine returns unicode strings instead of lists of byte strings.
  • bottle.optimize() and the automatic route optimization is obsolete.
  • Some functions and attributes were renamed: * Request._environ is now Request.environ * Response.header is now Response.headers * default_app() is obsolete. Use app() instead.
  • The default redirect() code changed from 307 to 303.
  • Removed support for @default. Use @error(404) instead.

New features

This is an incomplete list of new features and improved functionality.

Table Of Contents

Previous topic

Recipes

Next topic

Developer Notes

This Page