TypeError |
Python 2.2.2: /usr/bin/python
Fri Oct 31 11:25:27 2003 |
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
| /home/anchor/public_html/domain-register.py |
188 html.redirect(html.addUrlParam(request.uri, {'step' : '1'}))
|
189
|
190 contents = [ OrderForm() ]
|
191 p = frontend.DomainPage(contents)
|
192 print p.htmlRender()
|
| p = <frontend.DomainPage instance>, p.htmlRender = <bound method DomainPage.htmlRender of <frontend.DomainPage instance>> |
| /home/anchor/public_html/frontend.py in htmlRender(self=<frontend.DomainPage instance>) |
278
|
279 for i in contents :
|
280 body += util.toHtml(i)
|
281
|
282 menu = self.sideMenu()
|
| body = '', global util = <module 'util' from '/home/anchor/python-lib/util.pyc'>, util.toHtml = <function toHtml>, i = <__main__.OrderForm instance> |
| /home/anchor/python-lib/util.py in toHtml(object=<__main__.OrderForm instance>) |
16 def toHtml (object) :
|
17 if hasattr(object, 'htmlRender') :
|
18 return object.htmlRender()
|
19 else :
|
20 return str(object)
|
| object = <__main__.OrderForm instance>, object.htmlRender = <bound method OrderForm.htmlRender of <__main__.OrderForm instance>> |
| /home/anchor/public_html/domain-register.py in htmlRender(self=<__main__.OrderForm instance>) |
87 if session.data['orders'][str(self.order_session)].has_key('ordered_domain_au.name') and step > 0 :
|
88 domain_name = session.data['orders'][str(self.order_session)]['ordered_domain_au.name']
|
89 wizard = self.getWizard(domain_name)
|
90 result = wizard.htmlRender()
|
91
|
| wizard undefined, self = <__main__.OrderForm instance>, self.getWizard = <bound method OrderForm.getWizard of <__main__.OrderForm instance>>, domain_name = None |
| /home/anchor/public_html/domain-register.py in getWizard(self=<__main__.OrderForm instance>, domain=None) |
156 '''Build a domain order form for the given domain name.'''
|
157
|
158 if domain[-3:] != '.au' :
|
159 # load up the generic gtld order form.
|
160 result = xmlfieldfactory.buildWizard(form.EmailOrderForm, 'domain_order_gtld.xml')
|
| domain = None |
TypeError: unsubscriptable object
__doc__ = 'Inappropriate argument type.'
__getitem__ = <bound method TypeError.__getitem__ of <exceptions.TypeError instance>>
__init__ = <bound method TypeError.__init__ of <exceptions.TypeError instance>>
__module__ = 'exceptions'
__str__ = <bound method TypeError.__str__ of <exceptions.TypeError instance>>
args = ('unsubscriptable object',)