Problems with pyarchives
Wolfgang Stief <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello Bloggers!
I try to get pyarchives running, so far wit no success. Without loading
pyarchives.py everything runs just fine. As soon I load pyarchives.py, I
won't get any information at the right (there should be pycalendar,
booklist, pycategories).
My config file looks like this (made pretty formatting only for this
mail):
py['load_plugins'] = ["pycalendar", "booklist", "pycategories",
"wordcount", "pylogrequest", "pyfilenamemtime",
"pyarchives"]
The code from foot.html is as provided with pyblosxom-0.8.1, no changes
here:
<span class="rightMenu">Archives</span><br />
$archivelinks<br />
The Apache error log shows me some problems with Unicode in tools.py
(made some pretty formatting for the mail):
- -----snip-----snip-----
Traceback (most recent call last):
File "/home/stief/public_html/chaes.de/blog", line 42, in ?
p.run()
File "/usr/lib/python2.3/site-packages/Pyblosxom/pyblosxom.py",
line 343, in run
renderer.render()
File "/usr/lib/python2.3/site-packages/Pyblosxom/renderers/blosxom.py",
line 226, in render
self._outputFlavour(parsevars,'foot')
File "/usr/lib/python2.3/site-packages/Pyblosxom/renderers/blosxom.py",
line 252, in _outputFlavour
self.write(tools.parse(entry, template))
File "/usr/lib/python2.3/site-packages/Pyblosxom/tools.py",
line 150, in parse
return u'' + VAR_REGEXP.sub(Replacer(var_dict).replace, template)
File "/usr/lib/python2.3/site-packages/Pyblosxom/tools.py",
line 117, in replace
r = str(r)
File "/home/stief/public_html/chaes.de/pyarchives.py",
line 34, in __str__
self.genLinearArchive()
File "/home/stief/public_html/chaes.de/pyarchives.py",
line 42, in genLinearArchive
archiveList = tools.Walk(self._request, root)
File "/usr/lib/python2.3/site-packages/Pyblosxom/tools.py",
line 183, in Walk
names = os.listdir(root)
TypeError: coercing to Unicode: need string or buffer, instance found
- -----pins-----pins-----
I have (not yet) enough knowledge of Python to track down the problem
for myself. Right now, the site (www.chaes.de/blog) runs without
pyarchives.py loaded.
I'm running Python 2.3 on a Debian testing/unstable w/ kernel 2.2.17
(not updated recently :-) Webserver is Apache 1.3.26
Searching Google didn't shed light for me so far. Any help or hints are
greatly appreciated. Thanks in advance.
wolfgang
- --
[email protected] "komplexe dokumente mit word ist
GPG: http://www.chaes.de/id.asc wie haekeln mit boxhandschuhen"
-thorsten zum Thema LaTeX
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Made with pgp4pine 1.75-6
iD8DBQFAQbK0M6232ZYRYVURApdFAJ9lElExox0xo3lXWiQkrZcBDdl+agCdFFKs
OBh39M/mlesrKKihXnC1wjE=
=b+bj
-----END PGP SIGNATURE-----
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click