Faqwiz - strange error

Jens Kubieziel spam04 at kuwest.de
Wed Apr 9 23:37:17 CEST 2003


I have a strange error within the faqwizard-script. I changed following

 ,-----[ entry in Faqwizard ]
| PROLOGUE = '''
| <HTML>
| <HEAD>
| <TITLE>%(title)s</TITLE>
| </HEAD>
| <BODY BACKGROUND="http://www.python.org/pics/RedShort.gif"
|       TEXT="#000000"
|       LINK="#AA0000"
|       VLINK="#906A6A">
| <H1>%(Title)s</H1>
| <p>added some text</p>
| '''

Below the <H1>-line I added some text enclosed in <p>-tags. When I called
the "new" script (and even if I remove those tags) I get following error:

Traceback (most recent call last):

  File "faqw.py", line 26, in ?
   import faqwiz
  File "/www/users/web70/html/cgi-bin/faqwiz.py", line 841, in ?
  File "/www/users/web70/html/cgi-bin/faqwiz.py", line 389, in go
  File "/www/users/web70/html/cgi-bin/faqwiz.py", line 409, in do_home
  File "/www/users/web70/html/cgi-bin/faqwiz.py", line 403, in prologue
   emit(PROLOGUE, entry, kwdict=kw, title=escape(title))
  File "/www/users/web70/html/cgi-bin/faqwiz.py", line 63, in emit
   f.write(_interpolate(format, args, kw))
  File "/www/users/web70/html/cgi-bin/faqwiz.py", line 53, in _interpolate
   return format % m
  File "/www/users/web70/html/cgi-bin/faqwiz.py", line 173, in __getitem__
   value = d[key]
  TypeError: unsubscriptable object

Original at http://www.kubieziel.de/cgi-bin/faqw.py

Where is the problem and how can I solve it?

Jens Kubieziel                                   http://www.kubieziel.de
Better the prince of some inferior court,
Than second, or less, in beatific light.
		-- Lucifer, Joost van den Vondel's "Lucifer"

More information about the Python-list mailing list