Example #1
0
    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()
Example #2
0
    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()
Example #3
0
    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()
Example #4
0
    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()