'>>> t = Textile()
>>> id = t.shelve("foobar")
>>> t.retrieve(id)
\'foobar\''

def retrieve(self, text):

    while True:
        old = text
        for (k, v) in self.shelf.items():
            text = text.replace(k, v)
        if (text == old):
            break
    return text
