Re: Comments on pyblosxom
Wari Wahab <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <1060139085.10687.26.camel@minisync> |
On Wed, 2003-08-06 at 10:31, will wrote: > The pyblosxom web-site is having some severe difficulties, so Wari > slid the site over to pyblosxom.wari.org--but it's probably not fully > there or something along those lines. This has all happened in the > last like 36 hours or so. Yup, and http://roughingit.subtlehints.net/pyblosxom is back online > The template variables are listed on that page, but that page seems to > be kicking up an exception right now. Ah, fixed, I changed moin to use python 1.5.2 so that it works, seems like not all parts of MoinMoin is 1.5.2 compatible :) > I'm puzzled as to why you think $blog_title has the path embedded in > it. > $blog_title should be coming from your config.py file. Unfortunately, it does, and this was the behaviour of blosxom 0+5i when I did that blog_title thingy, and is carried over to the lastest incarnation of pyblosxom. blosxom 2.0 may still have this behaviour as I see plugins that changes the title to something else. Anyway, this was there to ensure that the users of blosxom won't have any suprises when they switch over. Unfortunately, there's lots of variable name changes and deviations now, that I can't keep up with blosxom compatibility anymore. > $path gets populated for each entry. So it'll show up in the story > templates, but not head, foot or content_type. Yup. $path is story related. > $path_info is a list of the path elements involved. For instance, my > blog > is at: > http://www.bluesock.org/~willg/blog/ > which gets translated via mod_rewrite to: > http://www.bluesock.org/~willg/cgi-bin/pyblosxom.cgi/ > In that url, the $path_info should be [] (the empty list) because > there's > no path elements. > If I chose to look at January of 2003, the url would be: > http://www.bluesock.org/~willg/blog/2003/Jan/ > which gets translated to: > http://www.bluesock.org/~willg/cgi-bin/pyblosxom.cgi/2003/Jan/ > and the $path_info is ["2003", "Jan"]. And $path_info is an internal variable. blosxom may have changed this somewhat, like I said, keeping up can be tiring. > Hope that helps. Wari's working hard to resolve these things as soon > as > he can. Sorry for the inconvenience and confusion it's caused, > though. Right now it seems I've got two requests for a sane $blog_title, and one of them actually submitted diffs so that the creation of plugins for the title creation would be easier. > > Howdy, I'd love to use this package (I'm try 0.8rc1), however: > > 2. Are there any definitions of the variables available? This > > http://wiki.subtlehints.net/moin/PyBlosxom_2fTemplateVariables > > does not list them as far as I can tell. If you look at http://pyblosxom.wari.org and http://pyblosxom.wari.org/weblogs (if the previous link gives you a nicely rendered page), you'll see the debug renderer come up, with all the variables available for an entry be shown. So for each invocation, you'd get these: (These you can use at head.flavour and foot.flavour) cacheConfig -> /home/wari/BLOSXOMBLOGCACHE renderer -> debug blog_language -> en blog_title -> RoughingIT - pyblosxom : weblogs blog_encoding -> iso8859-1 base_url -> http://pyblosxom.wari.org datadir -> /home/wari/blosxom pyblosxom_version -> CVS cacheDriver -> entrypickle comment_ext -> cmt pyblosxom_name -> pyblosxom num_entries -> 10 depth -> 0 blog_description -> blosxom with a touch of python root_datadir -> /home/wari/blosxom/weblogs flavour -> html url -> http://pyblosxom.wari.org/weblogs pi_da -> bl_type -> dir pi_bl -> weblogs pi_yr -> pi_mo -> And for each entry, you got these: yr -> 2003 mo -> Aug mo_num -> 08 absolute_path -> weblogs/tools/pyblosxom ti -> 00:13 filename -> /home/wari/blosxom/weblogs/tools/pyblosxom/pyblosxom-0.8rc1.wiki date -> Fri, 01 Aug 2003 tb_id -> weblogs_tools_pyblosxom_pyblosxom_0_8rc1 fulltime -> 20030801001351 timetuple -> (2003, 8, 1, 0, 13, 51, 4, 213, 0) mtime -> 1059668031.0 dw -> Friday path -> /tools/pyblosxom w3cdate -> 2003-07-31T16:13:51Z da -> 01 file_path -> weblogs/tools/pyblosxom/pyblosxom-0.8rc1 fn -> pyblosxom-0.8rc1 body -> [[..Story SNIPPed..]] Anything else are the work of plugins. > > 3. Additionally, all the links from > > http://pyblosxom.wari.org/?flav=index > > are 404. Yes, of course, the links are hardcoded, and it was a temporary page. Anyway, the real pyblosxom page @ http://roughingit.subtlehints.net/pyblosxom is now back to life.