Re: Using a plugin included in the core distribution
will kahn-greene <[email protected]> Sat, 06 Aug 2011 17:08:32 -0400
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Hi! You're not doing anything wrong. The core plugins are meant to be = copied into your plugins dir. There's an issue in the tracker for = looking into ways to change this and make it easier without creating = problematic edge cases. Regarding logging errors when plugins cannot be loaded, did you run = "pyblosxom-cmd test" after setting things up? /will On 08/06/2011 02:04 PM, Mario Fern=E1ndez wrote: > Hi, > > I'm trying to port an old blog to the new version of PyBlosxom, namely th= e last snapshot from the git repository. > > I want to include some plugins that are in the core distribution, like py= filenamemtime 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 th= e dir where the plugin is to 'plugin_dirs', something like py['plugin_dirs'= ] =3D [os.path.join(blogdir, 'pyblosxom', 'plugins', 'date')]. I find this = strange. Shouldn't the plugins that are part of the core package be availab= le per default for importing? Am I doing something wrong? > > On a related note, I think that when plugins cannot be loaded there shoul= d be some kind of logging, as it makes the problem difficult to debug other= wise. > > 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