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.