Faqwiz - strange error

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


Hi,

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

 ,-----[ entry in Faqwizard ]
| PROLOGUE = '''
| <HTML>
| <HEAD>
| <TITLE>%(title)s</TITLE>
| </HEAD>
| 
| <BODY BACKGROUND="http://www.python.org/pics/RedShort.gif"
|       BGCOLOR="#FFFFFF"
|       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 ?
   wiz.go()
  File "/www/users/web70/html/cgi-bin/faqwiz.py", line 389, in go
   meth()
  File "/www/users/web70/html/cgi-bin/faqwiz.py", line 409, in do_home
   self.prologue(T_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?

Thanks
-- 
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