Adjusted the code that parses blog.ini values so that it can take values like:
foo = 'a' # string
foo = "a" # string
foo = 23 # integer
foo = [ "a", 23, "b" ] # list of strings and integers
as well as:
foo = a # string
Note: if you want the string “23”, then you MUST enclose it in quotes, otherwise it will be parsed as an integer.
blog.ini is used when you set up PyBlosxom using Paste.
Fixed PyBlosxomWSGIApp so that it’s WSGI compliant as an application. Thanks Michael!
Template variables can be parenthesized. Examples:
$foo - variable is "foo"
$(foo) - variable is "foo"
$(url)index.atom - variable is "url"
This reduces ambiguity which was causing problems with recognition of variables.
1. Lots of code clean-up, documentation, test-code, and some refactoring.
cb_filestat will only do an os.stat if no plugin handles the filestat. Previously, cb_filestat did an os.stat and ran through all the plugins allowing them to over-ride it.
Added some testing framework pieces. This requires nose. To run the tests, do:
nosetests --verbose --include unit
nosetests --verbose --include functional