Example #1
0
 def newAction(self, name, src, dst, verify=True):
     """
     Create a new L{renamer.history.Action}.
     """
     if verify:
         # Check that "name" is in fact a valid action.
         getActionByName(name)
     return Action(
         store=self.store,
         name=name,
         src=src.path,
         dst=dst.path)
Example #2
0
 def toRenamingAction(self):
     """
     Create a L{renamer.irenamer.IRenamingAction} from this Item.
     """
     return getActionByName(self.name)(
         src=FilePath(self.src),
         dst=FilePath(self.dst))