<type 'exceptions.KeyError'>: u"Slot named 'connected-bool' was not filled."
"""
try:
next = iterable.next()
except StopIteration:
iterable | <generator object iterflatten at 0x33553c0> |
while rest:
gen = rest.pop()
for item in gen:
if isinstance(item, str):
rest | [<listiterator object at 0x33041d0>, <generator object ListSerializer at 0x3355460>, <generator object TagSerializer at 0x33554b0>, <generator object TagSerializer at 0x3355dc0>, <generator object ListSerializer at 0x3355f50>, <generator object ListSerializer at 0x3355e10>, <generator object TagSerializer at 0x3355e60>] |
item | '</div></td>\n <td class="service-connected connected-' |
gen | <generator object TagSerializer at 0x3355fa0> |
yield '>'
for child in original.children:
yield serialize(child, context)
yield '</%s>' % original.tagName
child | _PrecompiledSlot(u'connected-bool', isAttrib=True, inURL=False, inJS=False, inJSSingleQuoteString=False) |
original | Tag(u'tr', children=['\n <td class="service-service-name">', _PrecompiledSlot(u'service_name', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</td>\n <td class="nickname-and-peerid">\n <div class="nickname">', _PrecompiledSlot(u'nickname', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</div>\n <div class="nodeid data-chars">', _PrecompiledSlot(u'peerid', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</div></td>\n <td class="service-connected connected-', _PrecompiledSlot(u'connected-bool', isAttrib=True, inURL=False, inJS=False, inJSSingleQuoteString=False), '"> \n \n ', _PrecompiledSlot(u'connected', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '\n </td>\n <td class="service-since"> ', _PrecompiledSlot(u'since', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</td>\n <td class="service-announced"> ', _PrecompiledSlot(u'announced', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</td>\n <td class="service-version"> ', _PrecompiledSlot(u'version', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</td>\n ']) |
context | WovenContext(tag=Tag(u'tr', children=['\n <td class="service-service-name">', _PrecompiledSlot(u'service_name', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</td>\n <td class="nickname-and-peerid">\n <div class="nickname">', _PrecompiledSlot(u'nickname', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</div>\n <div class="nodeid data-chars">', _PrecompiledSlot(u'peerid', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</div></td>\n <td class="service-connected connected-', _PrecompiledSlot(u'connected-bool', isAttrib=True, inURL=False, inJS=False, inJSSingleQuoteString=False), '"> \n \n ', _PrecompiledSlot(u'connected', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '\n </td>\n <td class="service-since"> ', _PrecompiledSlot(u'since', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</td>\n <td class="service-announced"> ', _PrecompiledSlot(u'announced', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</td>\n <td class="service-version"> ', _PrecompiledSlot(u'version', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</td>\n '])) |
serialize | <function serialize at 0x1a1b668> |
def serialize(obj, context):
#warnings.warn('serialize is deprecated; it has been renamed partialflatten.', stacklevel=2)
return partialflatten(context, obj)
obj | _PrecompiledSlot(u'connected-bool', isAttrib=True, inURL=False, inJS=False, inJSSingleQuoteString=False) |
context | WovenContext(tag=Tag(u'tr', children=['\n <td class="service-service-name">', _PrecompiledSlot(u'service_name', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</td>\n <td class="nickname-and-peerid">\n <div class="nickname">', _PrecompiledSlot(u'nickname', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</div>\n <div class="nodeid data-chars">', _PrecompiledSlot(u'peerid', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</div></td>\n <td class="service-connected connected-', _PrecompiledSlot(u'connected-bool', isAttrib=True, inURL=False, inJS=False, inJSSingleQuoteString=False), '"> \n \n ', _PrecompiledSlot(u'connected', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '\n </td>\n <td class="service-since"> ', _PrecompiledSlot(u'since', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</td>\n <td class="service-announced"> ', _PrecompiledSlot(u'announced', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</td>\n <td class="service-version"> ', _PrecompiledSlot(u'version', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</td>\n '])) |
serialize | <function serialize at 0x1a1b668> |
partialflatten | <function partialflatten at 0x1a1b410> |
warnings | <module 'warnings' from '/usr/lib/python2.6/warnings.pyc'> |
flattener = getFlattener(obj)
if flattener is not None:
return flattener(obj, context)
flattener | <function PrecompiledSlotSerializer at 0x2013398> |
obj | _PrecompiledSlot(u'connected-bool', isAttrib=True, inURL=False, inJS=False, inJSSingleQuoteString=False) |
context | WovenContext(tag=Tag(u'tr', children=['\n <td class="service-service-name">', _PrecompiledSlot(u'service_name', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</td>\n <td class="nickname-and-peerid">\n <div class="nickname">', _PrecompiledSlot(u'nickname', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</div>\n <div class="nodeid data-chars">', _PrecompiledSlot(u'peerid', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</div></td>\n <td class="service-connected connected-', _PrecompiledSlot(u'connected-bool', isAttrib=True, inURL=False, inJS=False, inJSSingleQuoteString=False), '"> \n \n ', _PrecompiledSlot(u'connected', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '\n </td>\n <td class="service-since"> ', _PrecompiledSlot(u'since', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</td>\n <td class="service-announced"> ', _PrecompiledSlot(u'announced', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</td>\n <td class="service-version"> ', _PrecompiledSlot(u'version', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</td>\n '])) |
getFlattener | <function getFlattener at 0x1a15848> |
try:
data = context.locateSlotData(original.name)
except KeyError:
original | _PrecompiledSlot(u'connected-bool', isAttrib=True, inURL=False, inJS=False, inJSSingleQuoteString=False) |
context | WovenContext(tag=Tag(u'tr', children=['\n <td class="service-service-name">', _PrecompiledSlot(u'service_name', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</td>\n <td class="nickname-and-peerid">\n <div class="nickname">', _PrecompiledSlot(u'nickname', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</div>\n <div class="nodeid data-chars">', _PrecompiledSlot(u'peerid', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</div></td>\n <td class="service-connected connected-', _PrecompiledSlot(u'connected-bool', isAttrib=True, inURL=False, inJS=False, inJSSingleQuoteString=False), '"> \n \n ', _PrecompiledSlot(u'connected', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '\n </td>\n <td class="service-since"> ', _PrecompiledSlot(u'since', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</td>\n <td class="service-announced"> ', _PrecompiledSlot(u'announced', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</td>\n <td class="service-version"> ', _PrecompiledSlot(u'version', isAttrib=False, inURL=False, inJS=False, inJSSingleQuoteString=False), '</td>\n '])) |
return data
if currentContext.parent is None:
raise KeyError, "Slot named '%s' was not filled." % name
currentContext = currentContext.parent
currentContext | SiteContext(tag=None, remembrances={'allmydata.web.common.IOpHandleTable': <allmydata.web.operations.OphandleTable object at 0x23fc190>, 'nevow.inevow.ICanHandleException': <allmydata.web.common.MyExceptionHandler instance at 0x277ac20>}) |
data | Unset |
name | u'connected-bool' |
<type 'exceptions.KeyError'>: u"Slot named 'connected-bool' was not filled."