示例#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()
示例#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()
示例#3
0
文件: session.py 项目: tatiana/surf
    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()
示例#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()