Re: Errors on folksonomy

Wei-Wei Guo <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
Will Guaraldi 写道:
> I'm guessing wildly on this one.  It looks like in the config bits you
> sent to us that your tag_sep property is set to a comma and a space.
> So you either need to change these two metadata items to be separated
> by a comma and a space or you need to change your tag_sep value to be
> just a comma.
>
> /will
>

Sorry for late replay. After tag_sep changed as you suggested, I get a
partial error. I say it's a partial error because only the perment link
of the page is borken. For example, I have two files in
$datadir/blogs/emacs/ named planner.txt and muse.txt. I set

#tags emacs,planner

and

#tags emacs,muse

in the head of planner.txt and muse.txt respectively. My url links for
planner.txt and muse.txt are

http://localhost/cgi-bin/pyblosxom/pyblosxom.cgi/blogs/emacs/planner
http://localhost/cgi-bin/pyblosxom/pyblosxom.cgi/blogs/emacs/muse

I cannot open those two links. but the link

http://localhost/striking/tags/emacs

can be opened and planner.txt and muse.txt can be displayed properly
together.

I also tried using only one tag in each of those files. Then everything
seems ok, including the permanent links.

The following is then error information from apache's error.log when
using two tags.

[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1] Traceback (most
recent call last):
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]   File
"/var/www/localhost/cgi-bin/pyblosxom/pyblosxom.cgi", line 82, in ?
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]    
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1] p.run()
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]   File
"/usr/lib/python2.4/site-packages/Pyblosxom/pyblosxom.py", line 166, in run
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]    
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]
blosxom_handler(self._request)
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]   File
"/usr/lib/python2.4/site-packages/Pyblosxom/pyblosxom.py", line 856, in
blosxom_handler
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]    
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1] renderer.render()
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]   File
"/usr/lib/python2.4/site-packages/Pyblosxom/renderers/blosxom.py", line
320, in render
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]    
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1] self._processContent()
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]   File
"/usr/lib/python2.4/site-packages/Pyblosxom/renderers/blosxom.py", line
270, in _processContent
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]    
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1] output,
current_date = self._processEntry(entry, current_date)
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]   File
"/usr/lib/python2.4/site-packages/Pyblosxom/renderers/blosxom.py", line
235, in _processEntry
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]    
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]
self.outputTemplate(output, entry, 'story', override=1)
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]   File
"/usr/lib/python2.4/site-packages/Pyblosxom/renderers/blosxom.py", line
381, in outputTemplate
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]    
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1] args =
self._run_callback(template_name, { "entry": entry, "template": template })
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]   File
"/usr/lib/python2.4/site-packages/Pyblosxom/renderers/blosxom.py", line
404, in _run_callback
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]    
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1] defaultfunc=lambda
x:x)
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]   File
"/usr/lib/python2.4/site-packages/Pyblosxom/tools.py", line 551, in
run_callback
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]    
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1] output = func(input)
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]   File
"/home/wwguo/.blosxom.d/folksonomy.py", line 220, in cb_story
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]    
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1] relatedstories = 
getRelatedStories( entry, request, data, config )
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]   File
"/home/wwguo/.blosxom.d/folksonomy.py", line 287, in getRelatedStories
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]    
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1] return "<div
id='relatedstories'>%s<p>%s</p></div>" % (
config['relatedstories_header'], relatedstories )
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1] KeyError
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1] :
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]
'relatedstories_header'
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1]
[Mon Jul 16 15:04:09 2007] [error] [client 127.0.0.1] Premature end of
script headers: pyblosxom.cgi


Wei-Wei

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

_______________________________________________
pyblosxom-users mailing list
pyblosxom-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/pyblosxom-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.