def _auto_deferred_update_operation(self, f):
        if self.in_update_block:
            self._pending_update_ops.append(f)
            return
        con = self.build_state.connect_to_database()
        try:
            f(con)
        except:
            con.rollback()
            raise
        con.commit()
Marks the function as internally used
dataset/ETHPy150Open lektor/lektor/lektor/builder.py/Artifact._auto_deferred_update_operation--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/jinja2-2.6/jinja2/utils.py/internalcode