Re: years and categories (was Odd error in wbgwiki.py with numeric only directories)

Blake Winton <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
Will Guaraldi wrote:
>>> I guess I can work around this but I thought it worth reporting.
>> I hit that too.  Well, my wife did.  Thus the url:
>> http://weblog.latte.ca/amy/books/_2007/
>> If you can change that behaviour, I'ld certainly be happy!  :)
> This is intended behavior and PyBlosxom jumps through some hoops to
> make it happen.  It allows you to more easily view archives of
> categories.  For example:
>    /dev/2003/01/
> views items in the dev category from January of 2003 and so on.
> 
> I happen to like this feature of PyBlosxom, but it definitely makes it
> difficult to have categories that looks like dates.

My gut feeling is that it sort of corrupts the idea of the path to an 
entry being its location in the filesystem, and so while I could see it 
being useful, I don't really like it.

Chris Green wrote:
 > The 2007 tag on your site doesn't work either, presumably a related
 > problem. (http://weblog.latte.ca/tags/2007)

See now you're restricting the way I'm allowed to name something in two 
different places.  Bleah.  I think that if you're going to assign a 
different meaning to some part of the path (by which I mean "different 
than just another directory in my entries), you should only do it under 
a prefix, a la the tags plugin.

Will Guaraldi also wrote:
> If we were to change this behavior in PyBlosxom 2.0, what should the
> new behavior be?

/dev/2003/ is the stuff in the /dev/2003 folder.

The items in the dev/2003 folder created in 2002 (for disambiguation) 
could be:
/archive/2002/dev/2003 , or
/archive/2002?dev/2003 , or
/dev/2003?archive/2002 , or
/archive/2002/entries/dev/2003 .
(This last one is to get around a root directory named "07"...)

Or just disable the archive functionality if there's a directory with 
the same name there, since the contents of the directory will likely be 
the things you'ld return as the archive, and if they're not, then the 
user has chosen to modify them (implicitly, by naming a directory "2003" 
)...

Later,
Blake.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.