Using a plugin included in the core distribution
Mario Fernández <[email protected]> Sat, 6 Aug 2011 20:04:37 +0200
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'm trying to port an old blog to the new version of PyBlosxom, namely the last snapshot from the git repository. I want to include some plugins that are in the core distribution, like pyfilenamemtime and comments. I've put them in the load_plugins variable, but they weren't loading. After some investigation, I've fixed it by adding the dir where the plugin is to 'plugin_dirs', something like py['plugin_dirs'] = [os.path.join(blogdir, 'pyblosxom', 'plugins', 'date')]. I find this strange. Shouldn't the plugins that are part of the core package be available per default for importing? Am I doing something wrong? On a related note, I think that when plugins cannot be loaded there should be some kind of logging, as it makes the problem difficult to debug otherwise. Cheers, Mario ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super Apps. See the latest technologies. Sessions, hands-on labs, demos & much more. Register early & save! http://p.sf.net/sfu/rim-blackberry-1