2010-02-19 22:36:32
You can grab the 0.7.6 release from the download page.
- Fix non-consecutive sorts
- Fix multi-tag sorts
- Fix change_feed
- Fix possible get_text exception
- Replace multiprocessing functionality
- Worker process initiated on demand
- Add "restart" keybind (\)
- Add wget_link reader_key
- Add highlight_word drawing hook
- Add "setup.py uninstall" command
- Minor c-f cleanup
Finally time to take the plunge. Clocking in at almost 4 months, 0.7.5 was the longest lasting Canto release ever. I can't decide whether that's a good thing, judging from the fixes in the list =).
As usual, there's a set of bugfixes. In addition, some new canto.extra pieces.
wget_link to be used as a reader_key to download extra content (like videos,
images, audio) inside an item. For example:
reader_keys['w'] = wget_link("/path/to/downloads")
A highlight_word drawing hook to highlight words in the reader or main views
was added too. Like this:
r = get_default_renderer()
add_hook_pre_reader(r, highlight_word("NASA"))
add_hook_pre_story(r, highlight_word("never"))
This will highlight "NASA" in the reader and "never" in the main view.
A new keybind, the "restart" keybind (defaulting to '\') which will restart canto, re-reading the config in the process.
Lastly, 'uninstall' has been added to setup.py, meaning that you can use python
setup.py uninstall from the same directory you installed from. UPDATE: it
doesn't require the install.log generated on install, it will use it if it's
there - i.e. to be useful if you update git and the install looks different-,
but otherwise will "fake" an install and remove any files that would be
installed.
Behind the scenes
As mentioned in the last post, multiprocessing has been eliminated. It appears
that there was no breakage so I think it's time to get the changes out there.
However, what went unmentioned in the previous post was that the worker process
has been changed to start and stop on demand. This should make the client a
little less intensive.
Also, code to support XDG was written, worked but didn't make it into 0.7.6 because, as a bugfix release, it's not really the place for a change in the default config location. I considered adding a flag for XDG compliance, but the capability to set arbitrary directories for config, scripts, feeds, etc. already exists if you want to opt in like that.
Anyway. Have fun! Submit bugs!