Re: Hierarchical Categories

Georg Bauer <gb-BRhJDZTO+/[email protected]> Sat, 31 Jan 2004 18:49:49 +0100
Newsgroups gmane.comp.pythin.pyds.devel
Message-ID <r02010000-1028-DE51550C541511D880EB000A9573A72A@[10.0.0.145]>
Hi!

> I have begun using categories, which are great, but as I increase the 
> number of categories I want to use, this will become unwieldy. What 

I've thought about this, it wouldn't be too complicated. The first part
would be to design a useable web interface to edit structured data -
that's the biggest problem, as editing hierarchical stuff with web
browsers isn't too nice (no, Javascript and DOM hacks don't cut the cake
here - I prefer it that PyDS will allways be useable with w3m or even
lynx). Next would be a category selection for the new posting form - you
need to select what categories your post is in. The same problem with
hierarchical data in Webforms, only this time a bit complicated by the
fact that the new posting form needs to be terse enough to fit on a
screen. If that's done, you only would need to go through the source and
change all category comparisons to make use of a central
"postingInCategoryOrSubCategory" function that makes use of the defined
category hierarchy. This last work actually is just that - work.  Not
very complicated. That's not the case with the visual representations,
though ;-)

> I feel like the basic infrastructure might already be there, since
dates 
> sort of work this way now, with a hierarchy that looks like yyyy / mm 

Actually the hierarchical view to dates is somewhat burned into the
inner system and quite different from the category handling.

> Are there any plans to do anything like this?

No current plans, sorry. But people are allways free to supply patches
:-)

bye, Georg