ignore_directories behaves differently in static rendering?

seanh <[email protected]> Fri, 31 Jul 2009 04:13:34 +0100
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
I was just messing around and noticed that if I put:

    py["ignore_directories"] = ['drafts']

and then visit the drafts category manually (by hacking the URL), and
I'm using pyblosxom in CGI mode, it will show me all my drafts.
They're missing from all the indexes (front page, date-based views)
but they show up if you visit the category directly. I don't know if
the category would show up in the list of categories because I don't
use that plugin. Is this the intended behaviour of ignore_directories?

In static rendering mode it's different, the drafts category doesn't
get rendered at all and you can't visit it. I got it to render an
index view of the drafts category by adding:

    py["static_urls"] = ["/drafts/"]

but this just renders the category index page, it doesn't render the
pages for the posts themselves.

I sort of liked that the drafts category was browsable because it
meant I could preview my drafts, and if I wanted to keep them private
I could always put an htaccess file.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july