restore deleted comment
Keywan Najafi Tonekaboni <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I had accidental deleted a comment and want to restore it from the
"write back"-mails. I copied a comment, replaced the content and the
timestamps, renamed the file and so on...
But I got this trace back:
Traceback (most recent call last):
File "pyblosxom.cgi", line 57, in ?
p.run()
File
"/home/www/prometoys/services/pyblosxom-1.2/Pyblosxom/pyblosxom.py",
line 133, in run
blosxom_handler(self._request)
File
"/home/www/prometoys/services/pyblosxom-1.2/Pyblosxom/pyblosxom.py",
line 752, in blosxom_handler
renderer.render()
File
"/home/www/prometoys/services/pyblosxom-1.2/Pyblosxom/renderers/blosxom.py",
line 227, in render
self._processContent()
File
"/home/www/prometoys/services/pyblosxom-1.2/Pyblosxom/renderers/blosxom.py",
line 188, in _processContent
output, current_date = self._processEntry(entry, current_date)
File
"/home/www/prometoys/services/pyblosxom-1.2/Pyblosxom/renderers/blosxom.py",
line 153, in _processEntry
args = self._run_callback("story_end", { "entry": entry, "template":
template })
File
"/home/www/prometoys/services/pyblosxom-1.2/Pyblosxom/renderers/blosxom.py",
line 316, in _run_callback
defaultfunc=lambda x:x)
File "/home/www/prometoys/services/pyblosxom-1.2/Pyblosxom/tools.py",
line 438, in run_callback
output = mem(input)
File "/home/www/prometoys/services/pyblosxom-1.2/contrib/comments.py",
line 692, in cb_story_end
entry['comments'] = readComments(entry, config)
File "/home/www/prometoys/services/pyblosxom-1.2/contrib/comments.py",
line 215, in readComments
comments = [(cmt['cmt_time'], cmt) for cmt in comments]
TypeError: unsubscriptable object
[Wed Jan 4 11:52:32 2006] [error] [client 84.60.12.100] Premature end
of script headers: /home/www/prometoys/prometoys.net/cgi-bin/pyblosxom.cgi
Information about the file:
$ ls -l --time-style=+%s comment-1130933847.79.cmt
-rw-r--r-- 1 (...) 1130933847 comment-1130933847.79.cmt
(I replaced the full title with comment just in this mail and deleted
user, group and size information)
And the comment itself:
<?xml version="1.0" encoding="UTF-8"?>
<item>
<title>Ubuntu Breezy und das iBook</title>
<author>Phil</author>
<link></link>
<email></email>
<source></source>
<pubDate>1130933847.79</pubDate>
<description>Sollte es nicht gerade umgekehrt sein? Zuerst die
Consumer-Schiene, dann die PowerMacs? Das hat imho Herr Jobs in
der schicksalstraechtigen Keynote gesagt.</description>
</item>
I hope somebody has an idea
Regards,
Keywan
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click