Re: years and categories (was Odd error in wbgwiki.py with numeric only directories)
"Steve Hoelzer" <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
On 9/20/07, Blake Winton <[email protected]> wrote: > Steve Hoelzer wrote: > > Another option would be to support filtering on any path by appending > > date and path arguments. Here are some examples of what I mean. All > > three of these URLs would point to the same subset of entries: > > I didn't really want to go down the ?-parameter route... I'm not > entirely sure why, other than I think it looks kind of ugly. Any other > opinions? Will? It doesn't look that ugly to me, but I'm not that attached to it either. One thing I very much like about ?-parameters is that it makes a clear distinction between true paths and the special function of date/path filtering. As you stated in your example, a URL with /dev/2003 is ambiguous. There's no way to know if it refers to /dev items in year 2003, or the /dev/2003 category. For that reason I support a syntax that separates the path and filter parameters. The ?-parameter is just one option. Another option is to have a keyword trigger the filtering. Maybe /dev/2003/filter/2002. That even allows you to get /dev items from 2003 without conflicting with /dev/2003 -- just use /dev/filter/2003. Thoughts? Is there a better (hopefully shorter) keyword? Steve ------------------------------------------------------------------------- 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/