<type 'exceptions.KeyError'>: u"Slot named 'service_connection_status' was not filled."
"""
try:
next = iterable.next()
except StopIteration:
while rest:
gen = rest.pop()
for item in gen:
if isinstance(item, str):
yield '>'
for child in original.children:
yield serialize(child, context)
yield '</%s>' % original.tagName
def serialize(obj, context):
#warnings.warn('serialize is deprecated; it has been renamed partialflatten.', stacklevel=2)
return partialflatten(context, obj)
flattener = getFlattener(obj)
if flattener is not None:
return flattener(obj, context)
try:
data = context.locateSlotData(original.name)
except KeyError:
return data
if currentContext.parent is None:
raise KeyError, "Slot named '%s' was not filled." % name
currentContext = currentContext.parent
<type 'exceptions.KeyError'>: u"Slot named 'service_connection_status' was not filled."