emat/util/xmle/reporter.py
def save(
			self,
			filename,
			overwrite=False,
			archive_dir='./archive/',
			metadata=None,
		):
		"""
		Save this Reporter to a report-formatted HTML file.

		Parameters
		----------
		filename : Path-like or File-like
			This is either a text or byte string giving the name (and the path
			if the file isn't in the current working directory) of the file to
			be opened, or an already opened File-like object ready for writing.
		overwrite : {True, False, 'spool', 'archive'}, default False
			Indicates what to do with an existing file at the same location.
			True will simply overwrite the existing file.
			False will raise a `FileExistsError`.
			'archive' will rename and/or move the existing file so that it
			will not be overwritten.
			'spool' will add a number to the filename of the file to be
			created, so that it will not overwrite the existing file.
		archive_dir : Path-like
			Gives the location to move existing files when overwrite is set to
			'archive'. If given as a relative path, this is relative to the
			dirname of `file`, not relative to the current working directory.
			Has no effect for other overwrite settings.
		metadata : Pickle-able object
			Any object to embed in the HTML output as meta-data.

		"""
		self.renumber_numbered_items()

		from .xhtml import XHTML
		with XHTML(filename, overwrite=overwrite, metadata=metadata, ) as f:
			f << self
		return f._filename

		Save this Reporter to a report-formatted HTML file.

		Parameters
		----------
		filename : Path-like or File-like
			This is either a text or byte string giving the name (and the path
			if the file isn't in the current working directory) of the file to
			be opened, or an already opened File-like object ready for writing.
		overwrite : {True, False, 'spool', 'archive'}, default False
			Indicates what to do with an existing file at the same location.
			True will simply overwrite the existing file.
			False will raise a `FileExistsError`.
			'archive' will rename and/or move the existing file so that it
			will not be overwritten.
			'spool' will add a number to the filename of the file to be
			created, so that it will not overwrite the existing file.
		archive_dir : Path-like
			Gives the location to move existing files when overwrite is set to
			'archive'. If given as a relative path, this is relative to the
			dirname of `file`, not relative to the current working directory.
			Has no effect for other overwrite settings.
		metadata : Pickle-able object
			Any object to embed in the HTML output as meta-data.

		
Save this Reporter to a report-formatted HTML file.
Parameters

filename : Path-like or File-like
This is either a text or byte string giving the name (and the path
if the file isn't in the current working directory) of the file to
be opened, or an already opened File-like object ready for writing.
overwrite : {True, False, 'spool', 'archive'}, default False
Indicates what to do with an existing file at the same location.
True will simply overwrite the existing file.
False will raise a `FileExistsError`.
'archive' will rename and/or move the existing file so that it
will not be overwritten.
'spool' will add a number to the filename of the file to be
created, so that it will not overwrite the existing file.
archive_dir : Path-like
Gives the location to move existing files when overwrite is set to
'archive'. If given as a relative path, this is relative to the
dirname of `file`, not relative to the current working directory.
Has no effect for other overwrite settings.
metadata : Pickle-able object
Any object to embed in the HTML output as meta-data.
Save this Reporter to a report - formatted HTML file . Parameters filename : Path - like or File - like This is either a text or byte string giving the name ( and the path if the file isn ' t in the current working directory ) of the file to be opened or an already opened File - like object ready for writing . overwrite : { True False ' spool ' ' archive ' } default False Indicates what to do with an existing file at the same location . True will simply overwrite the existing file . False will raise a ` FileExistsError ` . ' archive ' will rename and / or move the existing file so that it will not be overwritten . ' spool ' will add a number to the filename of the file to be created so that it will not overwrite the existing file . archive_dir : Path - like Gives the location to move existing files when overwrite is set to ' archive ' . If given as a relative path this is relative to the dirname of ` file ` not relative to the current working directory . Has no effect for other overwrite settings . metadata : Pickle - able object Any object to embed in the HTML output as meta - data .
def save(
			self,
			filename,
			overwrite=False,
			archive_dir='./archive/',
			metadata=None,
		):
		self.renumber_numbered_items()
		from .xhtml import XHTML
		with XHTML(filename, overwrite=overwrite, metadata=metadata, ) as f:
			f << self
		return f._filename
def save ( self , filename , overwrite = False , archive_dir = './archive/' , metadata = None , ) : self . renumber_numbered_items ( ) from . xhtml import XHTML with XHTML ( filename , overwrite = overwrite , metadata = metadata , ) as f : f << self return f . _filename
Save this Reporter to a report-formatted HTML file.
Save this Reporter to a report - formatted HTML file .
"""
		Save this Reporter to a report-formatted HTML file.

		Parameters
		----------
		filename : Path-like or File-like
			This is either a text or byte string giving the name (and the path
			if the file isn't in the current working directory) of the file to
			be opened, or an already opened File-like object ready for writing.
		overwrite : {True, False, 'spool', 'archive'}, default False
			Indicates what to do with an existing file at the same location.
			True will simply overwrite the existing file.
			False will raise a `FileExistsError`.
			'archive' will rename and/or move the existing file so that it
			will not be overwritten.
			'spool' will add a number to the filename of the file to be
			created, so that it will not overwrite the existing file.
		archive_dir : Path-like
			Gives the location to move existing files when overwrite is set to
			'archive'. If given as a relative path, this is relative to the
			dirname of `file`, not relative to the current working directory.
			Has no effect for other overwrite settings.
		metadata : Pickle-able object
			Any object to embed in the HTML output as meta-data.

		"""
self
filename
overwrite
archive_dir
metadata