def commit(self): """ Commits all changes. In essence the method updates all the `dirty` registered `resources`. """ # Copy set into list because it will shrink as we go through it for resource in list(Resource.get_dirty_instances()): resource.update()
def commit(self): """ Commits all changes. In essence the method updates all the `dirty` registered `resources`. """ # Copy set into list because it will shrink as we go through it for resource in list(Resource.get_dirty_instances()): resource.update()
def commit(self): """ Commit all the changes, update all the `dirty` `resources`. """ # Copy set into list because it will shrink as we go through it for resource in list(Resource.get_dirty_instances()): resource.update()
def commit(self): """ Commit all the changes, update all the `dirty` `resources`. """ # Copy set into list because it will shrink as we go through it for resource in list(Resource.get_dirty_instances()): resource.update()