Python "classobj" error
<p>I have this code and I couldn't run it because i get this error:
"TypeError: 'classobj' object is not subscriptable"
and here is my code:</p>

<pre><code>import cgi
import customerlib

form=cgi.FieldStorage

history = customerlib.find(form["f_name"].value,form["l_name"].value)


print "Content-type: text/html"
print
print """&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Purchase history&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;h1&gt;Purchase History&lt;/h1&gt;"""

print "&lt;p&gt;you have a purchase history of:"
for i in history: "&lt;/p&gt;"
   print"""  &lt;body&gt;
&lt;/html&gt;"""
</code></pre>

<p>I have the customerlib file beside this file. Any idea how to fix it?</p>
