'function for inserting/replacing things in listings.'

def _things(self, things, action, *a, **kw):

    things = tup(things)
    if (not all((isinstance(t, Wrapped) for t in things))):
        wrap = kw.pop('wrap', Wrapped)
        things = wrap_links(things, wrapper=wrap)
    data = [self.process_rendered(t.render()) for t in things]
    if kw:
        for d in data:
            if d.has_key('data'):
                d['data'].update(kw)
    self._data['things'] = data
    return data
