def action_for(record, name): return name, '/'.join([record.url, id_for(name)])
def before_update(self, page): page.update(path=id_for(page.title))
def before_update(self, record): record.update(path=id_for(record.title))
def key(self): """Return the key""" return id_for(self.name)