exceptions.AttributeError: 'NoneType' object has no attribute 'foo'

/usr/lib/python2.3/site-packages/twisted/internet/defer.py, line 129 in maybeDeferred
127
128
    try:
129
        result = f(*args, **kw)
130
    except:
Locals
kw{}
f<bound method Page.renderHTTP of <Page object at 0x4068884c>>
args(<nevow.context.PageContext object at 0x4076ffac>,)
/usr/lib/python2.3/site-packages/Nevow/nevow/rend.py, line 441 in renderHTTP
439
        ctx =  WovenContext(ctx, tags.invisible[doc])
440
441
        return self.flattenFactory(doc, ctx, writer, finisher)
442
Locals
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({})>
ctxWovenContext(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>']))
Globals
WovenContext<class 'nevow.context.WovenContext'>
tags<module 'nevow.tags' from '/usr/lib/python2.3/site-packages/Nevow/nevow/tags.pyc'>
/usr/lib/python2.3/site-packages/Nevow/nevow/flat/__init__.py, line 14 in flattenFactory
12
    def flattenFactory(p, stan, ctx, writer, finisher):
13
        from nevow.flat.twist import deferFlattenFactory
14
        return deferFlattenFactory(p, stan, ctx, writer, finisher)
15
except ImportError:
Locals
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({})>
ctxWovenContext(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>']))
Globals
flattenFactory<function flattenFactory at 0x4056717c>
twist<module 'nevow.flat.twist' from '/usr/lib/python2.3/site-packages/Nevow/nevow/flat/twist.pyc'>
/usr/lib/python2.3/site-packages/Nevow/nevow/flat/twist.py, line 38 in deferFlattenFactory
36
37
def deferFlattenFactory(p, stan, ctx, writer, finisher):
38
    return deferflatten(stan, ctx, writer).addCallback(finisher)
39
Locals
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({})>
ctxWovenContext(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>']))
Globals
deferflatten<function deferflatten at 0x4076887c>
deferFlattenFactory<function deferFlattenFactory at 0x40768924>
/usr/lib/python2.3/site-packages/Nevow/nevow/flat/twist.py, line 34 in deferflatten
32
            finished.callback('')
33
34
    drive()
35
    return finished
Locals
finished<Deferred at 0x4076f4cc>
drive<function drive at 0x407d395c>
/usr/lib/python2.3/site-packages/Nevow/nevow/flat/twist.py, line 18 in drive
16
    def drive():
17
        try:
18
            deferred, returner = iterable.next()
19
            def cb(result):
Locals
drive<function drive at 0x407d395c>
iterable<generator object at 0x4076f52c>
/usr/lib/python2.3/site-packages/Nevow/nevow/flat/ten.py, line 104 in iterflatten
102
    while rest:
103
        gen = rest.pop()
104
        for item in gen:
105
            if isinstance(item, str):
Locals
rest[<listiterator object at 0x4076f56c>, <generator object at 0x4076f5ac>]
item<generator object at 0x4076f62c>
gen<generator object at 0x4076f62c>
/usr/lib/python2.3/site-packages/Nevow/nevow/flat/flatstan.py, line 71 in TagSerializer
69
        
70
    if original.data is not Unset:
71
        newdata = convertToData(original.data, context)
72
        if isinstance(newdata, util.Deferred):
Locals
contextWovenContext(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']))
originalTag(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'])
Globals
convertToData<function convertToData at 0x4076817c>
UnsetUnset
util<module 'nevow.util' from '/usr/lib/python2.3/site-packages/Nevow/nevow/util.pyc'>
/usr/lib/python2.3/site-packages/Nevow/nevow/accessors.py, line 33 in convertToData
31
            return newdata.addCallback(convertToData, context)
32
        else:
33
            return convertToData(newdata, context)
34
    else:
Locals
newdata<bound method Page.data_getAllObjects of <Page object at 0x4068884c>>
contextWovenContext(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']))
Globals
convertToData<function convertToData at 0x4076817c>
/usr/lib/python2.3/site-packages/Nevow/nevow/accessors.py, line 29 in convertToData
27
    newdata = IGettable(data, persist=False, default=None)
28
    if newdata is not None:
29
        newdata = newdata.get(context)
30
        if isinstance(newdata, util.Deferred):
Locals
data<bound method Page.data_getAllObjects of <Page object at 0x4068884c>>
newdata<nevow.accessors.FunctionAccessor instance at 0x4076f70c>
contextWovenContext(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']))
Globals
IGettable<class 'nevow.inevow.IGettable'>
util<module 'nevow.util' from '/usr/lib/python2.3/site-packages/Nevow/nevow/util.pyc'>
/usr/lib/python2.3/site-packages/Nevow/nevow/accessors.py, line 55 in get
53
    __implements__ = IGettable
54
    def get(self, context):
55
        return self.original(context, context.locate(IData))
56
Locals
self<nevow.accessors.FunctionAccessor instance at 0x4076f70c>
contextWovenContext(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']))
Globals
IGettable<class 'nevow.inevow.IGettable'>
IData<class 'nevow.inevow.IData'>

exceptions.AttributeError: 'NoneType' object has no attribute 'foo'