Re: ignore_directories behaves differently in static rendering?

will <[email protected]> Fri, 31 Jul 2009 09:02:08 -0400
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
I think the answer here is that I didn't intend this behavior 
explicitly, but it sounds ok to me.  Static rendering shouldn't behave 
like web rendering does.  Amongst other things, it builds a static, 
final, public site--it's not designed for allowing you to preview and 
such locally.  Writing a plugin to allow that is probably possible, but 
I think the workflow is messy.

As a side note, I don't think ignore_directories was implemented for the 
purpose of drafts, but I don't remember what the primary use case was. 
It's probably somewhere in the mailing list archives, I would imagine.

/will


seanh wrote:
> 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
> _______________________________________________
> pyblosxom-users mailing list
> pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/pyblosxom-users
> 

------------------------------------------------------------------------------
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