<?xml version="1.0"?>
<!DOCTYPE content [ <!ENTITY nbsp " "> ]>
<rdf:RDF xml:base="http://snarfed.org/rdf"
         xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:dc="http://purl.org/dc/elements/1.1/">

<rdf:Description rdf:about="http://snarfed.org">
  <dc:title> snarfed.org  </dc:title>
  <dc:description> draw group stream of consciousness </dc:description>
  <dc:creator> Ryan Barrett &lt;snarfed at ryanb dot org&gt; </dc:creator>
  <dc:language> en </dc:language>
  <dc:format> text/html </dc:format>
  <dc:rights> Copyright 2002-2007 Ryan Barrett </dc:rights>
</rdf:Description>

<rdf:Description rdf:about="http://snarfed.org/space/pyblosxom%20index">
  <dc:title> index.py </dc:title>
  <dc:creator> Ryan Barrett &lt;snarfed at ryanb dot org&gt; </dc:creator>
  <dc:date> 2006-10-08T03:33:00Z </dc:date>
  <dc:language> en </dc:language>
  <dc:format> text/html </dc:format>
  <dc:rights> Copyright 2002-2007 Ryan Barrett </dc:rights>

  <content>
    <p><img src="/space/rolodex.jpg" alt="/space/rolodex.jpg" title="" /></p>

<p>For the impatient: <br />
&nbsp; Download <a href="/space/index.py">index.py</a> <br />
&nbsp; <a href="http://pyblosxom.sf.net/">PyBlosxom home page</a> <br />
&nbsp; <a href="http://pyblosxom.sf.net/blog/registry?sortby=path">PyBlosxom plugin registry</a></p>

<p><em>Updated 5/4/2007.</em></p>

<p><a href="/space/index.py">index.py</a> is a <a href="http://pyblosxom.sf.net/">PyBlosxom</a> plugin
that displays displays an alphabetical index of all entries. It's similar to
<a href="http://pyblosxom.sourceforge.net/blog/registry/archives/pyarchives">other</a>
<a href="http://pyblosxom.sourceforge.net/blog/registry/archives/wbgarchives">index</a>
<a href="http://pyblosxom.sourceforge.net/blog/registry/category/pycategories">plugins</a>,
except that it indexes the entries by name, instead of by date.</p>

<p>As an example, here's the <a href="/site-index">index</a> for this site.</p>

<p>There are number of config parameters available to customize index.py's
behavior, all optional. Here they are, along with their defaults:</p>

<div class='p-shadow'><pre><code>py['index_trigger']            = '/site-index'
py['index_num_columns']        = 2
py['index_letters_first']      = True
py['index_title']              = 'index'
py['index_use_story_template'] = True
</code></pre></div>

<p><br class='clearing' />index.py is copyright 2006 <a href="/space/about">Ryan Barrett</a>, and is distributed
under the <a href="http://www.gnu.org/licenses/gpl.html">GPL</a>.</p>

<p>See also:</p>

<ul>
<li><a href="/space/pyblosxom+history">history</a></li>
<li><a href="/space/photogallery">photogallery</a></li>
<li><a href="/space/hardcodedates">hardcodedates</a></li>
<li><a href="/space/filekicker">filekicker</a></li>
<li><a href="/space/pyblosxom ajax comments">pyblosxom ajax comments</a></li>
<li><a href="/space/pyblosxom rdf flavour">pyblosxom rdf flavour</a></li>
<li><a href="/space/2006-08-23">migrating to pyblosxom</a></li>
</ul>

  </content>

  <rdf:Seq>

<rdf:li>
<rdf:Description rdf:about="#1178192473.87">
  <dc:source> http://snarfed.org/ </dc:source>
  <dc:title> index.py </dc:title>
  <dc:creator> Markus </dc:creator>
  <dc:date> cmt_pubDate </dc:date>
  <dc:format> text/html </dc:format>

  <content>
    Hi ryan,<br />
<br />
I was trying to set up index.py for my pyblosxom installation as I did for all the other plugins (pycalendar, pyarchives, comments, etc.).<br />
<br />
In all those cases, I for example had to put `$calendar' into my flavour file (head.html) in this paritcular case which does look like <br />
<br />
&nbsp; "&lt;div class=\"menu\"&gt;<br />
&nbsp; &lt;div class=\"menuhead\"&gt;<br />
&nbsp; Calendar<br />
&nbsp; &lt;/div&gt;<br />
&nbsp; &lt;div class=\"menubody\"&gt;<br />
&nbsp; $calendar<br />
&nbsp; &lt;/div&gt;<br />
&nbsp; &lt;/div&gt;"<br />
<br />
THE QUESTION:<br />
I wasn't able to set up index.py for some reason I don't know yet. Well, index.py is in place as pycalendar.py etc. is so I think thats all fine. What I don't understand is this "index_trigger" thing and how do I integrate this into my flavour file? Can you maybe add this to the doc string of index.py?<br />
<br />
TIA Markus :)
  </content>
</rdf:Description>
</rdf:li>

<rdf:li>
<rdf:Description rdf:about="#1178194959.41">
  <dc:source> http://snarfed.org/ </dc:source>
  <dc:title> index.py </dc:title>
  <dc:creator> Markus </dc:creator>
  <dc:date> cmt_pubDate </dc:date>
  <dc:format> text/html </dc:format>

  <content>
    Well, I forgot ... <br />
I usually hang out on #pyblosxom@irc.freenode.net - anybody who want's to talk might visit us :)<br />
<br />
cya folks
  </content>
</rdf:Description>
</rdf:li>

<rdf:li>
<rdf:Description rdf:about="#1178233662.89">
  <dc:source> http://snarfed.org/ </dc:source>
  <dc:title> index.py </dc:title>
  <dc:creator> Ryan </dc:creator>
  <dc:date> cmt_pubDate </dc:date>
  <dc:format> text/html </dc:format>

  <content>
    hi markus! currently, index.py produces a pyblosxom entry, rendered from scratch each time, as output. from pyblosxom's point of view, the only difference between index.py and a normal blog post is that index.py generates its own content, while a blog post is read from disk.<br />
<br />
so, you can't integrate index.py's output into one of your flavour's template files. instead, it's available at a hard-coded path, which you specify in the <code>index_trigger</code> config variable. by default, it's <code>/site_index</code>.<br />
<br />
the index for most sites will be pretty big, so it wouldn't really make sense to include it in a template and render it on every page.<br />
<br />
you're right, i could probably make this clearer in the docstring.
  </content>
</rdf:Description>
</rdf:li>

<rdf:li>
<rdf:Description rdf:about="#1178275802.67">
  <dc:source> http://snarfed.org/ </dc:source>
  <dc:title> index.py </dc:title>
  <dc:creator> Markus </dc:creator>
  <dc:date> cmt_pubDate </dc:date>
  <dc:format> text/html </dc:format>

  <content>
    Hi Ryan!<br />
Thanks for answering. You're right, of course I had to go for the hard-coded path (this works fine now).<br />
<br />
I am quite happy with index.py but there is still something I wasn't able to figure. <br />
<br />
PROBLEM:<br />
In "config.py" I have those entries<br />
## pyindex<br />
py['index_trigger']&nbsp; = '/blog-index'<br />
py['index_num_columns']&nbsp; = 4<br />
py['index_letters_first']&nbsp; = True<br />
py['index_title']&nbsp; = 'Index, alphabetically listing all posts.'<br />
py['index_use_story_template'] = True<br />
<br />
Everytime I change the columns (set to 4 right now) it takes effect. But the 'index_title' does not ... how come?<br />
<br />
To get a notion how my setup looks like corresponding to the code above I have made a Screenshot so you can see I get 4 columns but no change in the title. <br />
<br />
Copy paste it to your webbrowser<br />
<a href="http://img95.imageshack.us/img95/2203/mywebsitecf2.png">http://img95.imageshack.us/img95/2203/mywebsitecf2.png</a><br />
<br />
Ciao, <br />
Markus
  </content>
</rdf:Description>
</rdf:li>

<rdf:li>
<rdf:Description rdf:about="#1178299598.17">
  <dc:source> http://snarfed.org/ </dc:source>
  <dc:title> index.py </dc:title>
  <dc:creator> Ryan </dc:creator>
  <dc:date> cmt_pubDate </dc:date>
  <dc:format> text/html </dc:format>

  <content>
    oops, that was a bug. <code>index_title</code> wasn't playing nice with <code>index_use_story_template</code>. i've fixed it, and i've posted a <a href="/space/index.py">new version of index.py</a>. thanks for the catch!
  </content>
</rdf:Description>
</rdf:li>

<rdf:li>
<rdf:Description rdf:about="#1178304891.13">
  <dc:source> http://snarfed.org/ </dc:source>
  <dc:title> index.py </dc:title>
  <dc:creator> Markus </dc:creator>
  <dc:date> cmt_pubDate </dc:date>
  <dc:format> text/html </dc:format>

  <content>
    Great! I've downloaded v0.2. All works fine now! The index_title issue is gone.<br />
<br />
Thank you and keep up your great work! :)
  </content>
</rdf:Description>
</rdf:li>

  </rdf:Seq>
</rdf:Description>
</rdf:RDF>
