exceptions.AttributeError: 'NoneType' object has no attribute 'foo'
try:
result = f(*args, **kw)
except:
| kw | {} |
| f | <bound method Page.renderHTTP of <Page object at 0x4068884c>> |
| args | (<nevow.context.PageContext object at 0x4076ffac>,) |
ctx = WovenContext(ctx, tags.invisible[doc])
return self.flattenFactory(doc, ctx, writer, finisher)
| finisher | <function finisher at 0x407d3dbc> |
| doc | ['<html>\n <head>\n <title>\n\tStatus\n </title>\n </head>\n <body>\n\tYour stuff:\n <div id="resources">\n\t\t', WovenContext(tag=Tag(u'table', specials={'data': directive('getAllObjects'), 'render': directive('sequence')}, children=['\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'header'}, children=['<th>Type</th>'])), '\n\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'item', 'render': directive('row')}, children=['\n <td>', slot('name'), '</td>\n '])), '\n\n\t\t'])), '\n </div>\n\t<br />\n\n <a href="logout">logout</a>\n <a href="example">example</a>\n </body>\n</html>'] |
| self | <Page object at 0x4068884c> |
| writer | <bound method NevowRequest.write of NevowRequest({})> |
| ctx | WovenContext(tag=Tag('', children=['<html>\n <head>\n <title>\n\tStatus\n </title>\n </head>\n <body>\n\tYour stuff:\n <div id="resources">\n\t\t', WovenContext(tag=Tag(u'table', specials={'data': directive('getAllObjects'), 'render': directive('sequence')}, children=['\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'header'}, children=['<th>Type</th>'])), '\n\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'item', 'render': directive('row')}, children=['\n <td>', slot('name'), '</td>\n '])), '\n\n\t\t'])), '\n </div>\n\t<br />\n\n <a href="logout">logout</a>\n <a href="example">example</a>\n </body>\n</html>'])) |
| WovenContext | <class 'nevow.context.WovenContext'> |
| tags | <module 'nevow.tags' from '/usr/lib/python2.3/site-packages/Nevow/nevow/tags.pyc'> |
def flattenFactory(p, stan, ctx, writer, finisher):
from nevow.flat.twist import deferFlattenFactory
return deferFlattenFactory(p, stan, ctx, writer, finisher)
except ImportError:
| p | <Page object at 0x4068884c> |
| finisher | <function finisher at 0x407d3dbc> |
| deferFlattenFactory | <function deferFlattenFactory at 0x40768924> |
| stan | ['<html>\n <head>\n <title>\n\tStatus\n </title>\n </head>\n <body>\n\tYour stuff:\n <div id="resources">\n\t\t', WovenContext(tag=Tag(u'table', specials={'data': directive('getAllObjects'), 'render': directive('sequence')}, children=['\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'header'}, children=['<th>Type</th>'])), '\n\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'item', 'render': directive('row')}, children=['\n <td>', slot('name'), '</td>\n '])), '\n\n\t\t'])), '\n </div>\n\t<br />\n\n <a href="logout">logout</a>\n <a href="example">example</a>\n </body>\n</html>'] |
| writer | <bound method NevowRequest.write of NevowRequest({})> |
| ctx | WovenContext(tag=Tag('', children=['<html>\n <head>\n <title>\n\tStatus\n </title>\n </head>\n <body>\n\tYour stuff:\n <div id="resources">\n\t\t', WovenContext(tag=Tag(u'table', specials={'data': directive('getAllObjects'), 'render': directive('sequence')}, children=['\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'header'}, children=['<th>Type</th>'])), '\n\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'item', 'render': directive('row')}, children=['\n <td>', slot('name'), '</td>\n '])), '\n\n\t\t'])), '\n </div>\n\t<br />\n\n <a href="logout">logout</a>\n <a href="example">example</a>\n </body>\n</html>'])) |
| flattenFactory | <function flattenFactory at 0x4056717c> |
| twist | <module 'nevow.flat.twist' from '/usr/lib/python2.3/site-packages/Nevow/nevow/flat/twist.pyc'> |
def deferFlattenFactory(p, stan, ctx, writer, finisher):
return deferflatten(stan, ctx, writer).addCallback(finisher)
| p | <Page object at 0x4068884c> |
| finisher | <function finisher at 0x407d3dbc> |
| stan | ['<html>\n <head>\n <title>\n\tStatus\n </title>\n </head>\n <body>\n\tYour stuff:\n <div id="resources">\n\t\t', WovenContext(tag=Tag(u'table', specials={'data': directive('getAllObjects'), 'render': directive('sequence')}, children=['\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'header'}, children=['<th>Type</th>'])), '\n\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'item', 'render': directive('row')}, children=['\n <td>', slot('name'), '</td>\n '])), '\n\n\t\t'])), '\n </div>\n\t<br />\n\n <a href="logout">logout</a>\n <a href="example">example</a>\n </body>\n</html>'] |
| writer | <bound method NevowRequest.write of NevowRequest({})> |
| ctx | WovenContext(tag=Tag('', children=['<html>\n <head>\n <title>\n\tStatus\n </title>\n </head>\n <body>\n\tYour stuff:\n <div id="resources">\n\t\t', WovenContext(tag=Tag(u'table', specials={'data': directive('getAllObjects'), 'render': directive('sequence')}, children=['\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'header'}, children=['<th>Type</th>'])), '\n\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'item', 'render': directive('row')}, children=['\n <td>', slot('name'), '</td>\n '])), '\n\n\t\t'])), '\n </div>\n\t<br />\n\n <a href="logout">logout</a>\n <a href="example">example</a>\n </body>\n</html>'])) |
| deferflatten | <function deferflatten at 0x4076887c> |
| deferFlattenFactory | <function deferFlattenFactory at 0x40768924> |
finished.callback('')
drive()
return finished
| finished | <Deferred at 0x4076f4cc> |
| drive | <function drive at 0x407d395c> |
def drive():
try:
deferred, returner = iterable.next()
def cb(result):
| drive | <function drive at 0x407d395c> |
| iterable | <generator object at 0x4076f52c> |
while rest:
gen = rest.pop()
for item in gen:
if isinstance(item, str):
| rest | [<listiterator object at 0x4076f56c>, <generator object at 0x4076f5ac>] |
| item | <generator object at 0x4076f62c> |
| gen | <generator object at 0x4076f62c> |
if original.data is not Unset:
newdata = convertToData(original.data, context)
if isinstance(newdata, util.Deferred):
| context | WovenContext(tag=Tag(u'table', specials={'data': directive('getAllObjects'), 'render': directive('sequence')}, children=['\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'header'}, children=['<th>Type</th>'])), '\n\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'item', 'render': directive('row')}, children=['\n <td>', slot('name'), '</td>\n '])), '\n\n\t\t'])) |
| original | Tag(u'table', specials={'data': directive('getAllObjects'), 'render': directive('sequence')}, children=['\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'header'}, children=['<th>Type</th>'])), '\n\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'item', 'render': directive('row')}, children=['\n <td>', slot('name'), '</td>\n '])), '\n\n\t\t']) |
| convertToData | <function convertToData at 0x4076817c> |
| Unset | Unset |
| util | <module 'nevow.util' from '/usr/lib/python2.3/site-packages/Nevow/nevow/util.pyc'> |
return newdata.addCallback(convertToData, context)
else:
return convertToData(newdata, context)
else:
| newdata | <bound method Page.data_getAllObjects of <Page object at 0x4068884c>> |
| context | WovenContext(tag=Tag(u'table', specials={'data': directive('getAllObjects'), 'render': directive('sequence')}, children=['\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'header'}, children=['<th>Type</th>'])), '\n\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'item', 'render': directive('row')}, children=['\n <td>', slot('name'), '</td>\n '])), '\n\n\t\t'])) |
| convertToData | <function convertToData at 0x4076817c> |
newdata = IGettable(data, persist=False, default=None)
if newdata is not None:
newdata = newdata.get(context)
if isinstance(newdata, util.Deferred):
| data | <bound method Page.data_getAllObjects of <Page object at 0x4068884c>> |
| newdata | <nevow.accessors.FunctionAccessor instance at 0x4076f70c> |
| context | WovenContext(tag=Tag(u'table', specials={'data': directive('getAllObjects'), 'render': directive('sequence')}, children=['\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'header'}, children=['<th>Type</th>'])), '\n\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'item', 'render': directive('row')}, children=['\n <td>', slot('name'), '</td>\n '])), '\n\n\t\t'])) |
| IGettable | <class 'nevow.inevow.IGettable'> |
| util | <module 'nevow.util' from '/usr/lib/python2.3/site-packages/Nevow/nevow/util.pyc'> |
__implements__ = IGettable
def get(self, context):
return self.original(context, context.locate(IData))
| self | <nevow.accessors.FunctionAccessor instance at 0x4076f70c> |
| context | WovenContext(tag=Tag(u'table', specials={'data': directive('getAllObjects'), 'render': directive('sequence')}, children=['\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'header'}, children=['<th>Type</th>'])), '\n\n ', WovenContext(tag=Tag(u'tr', specials={u'pattern': u'item', 'render': directive('row')}, children=['\n <td>', slot('name'), '</td>\n '])), '\n\n\t\t'])) |
| IGettable | <class 'nevow.inevow.IGettable'> |
| IData | <class 'nevow.inevow.IData'> |
exceptions.AttributeError: 'NoneType' object has no attribute 'foo'