def process_change(change): change = Changeset.create(web.ctx.site, storify(change)) change.thing = page change.key = page.key change.revision = first(c.revision for c in change.changes if c.key == page.key) change.created = change.timestamp change.get = change.__dict__.get change.get_comment = lambda: get_comment(change) change.machine_comment = change.data.get("machine_comment") return change
def process_change(change): change = Changeset.create(web.ctx.site, storify(change)) change.thing = page change.key = page.key change.revision = first(c.revision for c in change.changes if c.key == page.key) change.created = change.timestamp change.get = change.__dict__.get change.get_comment = lambda: get_comment(change) change.machine_comment = change.data.get("machine_comment") return change