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

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

SavedInAPath.save(filename = None)

Saves a SavedInAPath object in the associated file.

Definition at line 209 of file __init__.py.

00209                                  :
    """SavedInAPath.save(filename = None)

Saves a SavedInAPath object in the associated file."""
    try:
      _saving_lock._SAVING = self # Hack !!
      data = cerealizer.dumps(self, 1) # Avoid destroying the file if the serialization causes an error.
      open(filename or os.path.join(path[0], self.DIRNAME, self.filename.replace("/", os.sep)) + ".data", "wb").write(data)
    finally:
      _saving_lock._SAVING = None
      
  def delete(self, filename = None):


Generated by  Doxygen 1.6.0   Back to index