The bottle-0.11-rc1 development branch is stable for some time now, widely used and excessively tested. There is no reason to not release it. So, here it is:
Changelog (summary)
- Native support for Python 2.x …
The bottle-0.11-rc1 development branch is stable for some time now, widely used and excessively tested. There is no reason to not release it. So, here it is:
One of the most annoying limitations you may encounter in bottle when building bigger applications is the way templates are searched on the file system. At the time the template system was designed, nobody thought about multi-app projects, third-party apps, Bottle.mount() and the complexities these features introduce. The typical …
read moreWhenever I start a new project that is likely to have dependencies, I set up virtualenv and create a requirememnts.txt. I am also a big fan of Makefiles. Here is a small snippet that combines these tools:
# Makefile
venv: venv/bin/activate
venv/bin/activate: requirements.txt
test -d …
Looks like the next release (0.11) will break backwards compatibility in some edge cases. I am working on a patch that affects routes that stream content (yield) and access request/response after the first chunk of data is returned.
Accessing the thread-local request/response objects after yielding a …
Python 3.2+ cgi.FieldStorage() defaults to utf8 when decoding form values. That confused bottle.FormsDict() because WSGI strings "must contain only code points representable in ISO-8859-1 encoding". Now bottle forces cgi.FieldStorage() to use ISO-8859-1 instead and re-encodes form-values on-demand with the user-specified input encoding a intended.
If you …
read moreThe Python 3.x unicode problem was more complex than I thought. I had to re-implement urllib.parse_qsl to work around an encoding problem in 3.1 and change the way bottle handles query-strings in subtle ways. Again, please read this before upgrading: http://bottlepy.org/docs/dev/tutorial.html …
read moreAndrea Belvedere found a bug in SimpleTALTemplates that went unnoticed for months. Conclusion: Nobody actually uses Bottle+TAL.
Perhaps it is a good time to remove SimpleTALTemplate support instead of fixing it. Or move it to a plugin.
Here is the deal: The TAL template adapter needs a maintainer or …
read moreThis might be useful for Plugin developers: https://github.com/bottlepy/bottle/commit/a21d71694fdea222844dba5076efad3726ccdb68
To sum it up: You can now add custom attributes or properties to the bottle.request object. These are stored in the environ dictionary ('bottle.request.ext.*' namespace) which has some advantages over traditional instance attributes …
read moreMy server harddisk died today. Until I get a new one installed, you can use the mirror at http://readthedocs.org/docs/bottle/en/latest/
read morePage 1 / 2 »