Example #1
0
 def begin_update(self):
     """Begins an update block."""
     if self.in_update_block:
         raise RuntimeError('Artifact is already open for updates.')
     self.updated = False
     ctx = Context(self)
     ctx.push()
     self.in_update_block = True
     return ctx
Example #2
0
 def begin_update(self):
     """Begins an update block."""
     if self.in_update_block:
         raise RuntimeError("Artifact is already open for updates.")
     self.updated = False
     ctx = Context(self)
     ctx.push()
     self.in_update_block = True
     return ctx
Example #3
0
 def begin_update(self):
     """Begins an update block."""
     if self.in_update_block:
         raise RuntimeError("Artifact is already open for updates.")
     self.updated = False
     ctx = Context(self)
     ctx.push()
     self.in_update_block = True
     self.clear_dirty_flag()
     return ctx
Example #4
0
 def begin_update(self):
     """Begins an update block."""
     if self.in_update_block:
         raise RuntimeError('Artifact is already open for updates.')
     self.updated = False
     ctx = Context(self)
     ctx.push()
     self.in_update_block = True
     self.clear_dirty_flag()
     return ctx