Logo Search packages:      
Sourcecode: balazar3 version File versions  Download package

def balazar3-0.1::tofu::SavedInAPath::delete (   self,
  filename = None 
)

SavedInAPath.delete(filename = None)

Delete a SavedInAPath's file.

Definition at line 220 of file __init__.py.

00220                                    :
    """SavedInAPath.delete(filename = None)

Delete a SavedInAPath's file."""
    del self._alls2[self.filename]
    Unique.discard(self)
    
    filename = filename or os.path.join(path[0], self.DIRNAME, self.filename.replace("/", os.sep)) + ".data"
    print "* Tofu * Deleting %s %s (file %s) !" % (self.__class__.__name__, self.filename, filename)
    os.remove(filename)
    
  def get_filename(self): return self._filename


Generated by  Doxygen 1.6.0   Back to index