CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes | Private Attributes
uploads.output Class Reference

Public Member Functions

def __init__ (self, log_handle=None, verbose=False)
 
def write (self, message="", ignore_verbose=False)
 

Public Attributes

 current_output_length
 

Private Attributes

 _log_handle
 
 _verbose
 

Detailed Description

Used to control output to the console and to the client-side log.

Definition at line 61 of file uploads.py.

Constructor & Destructor Documentation

def uploads.output.__init__ (   self,
  log_handle = None,
  verbose = False 
)

Definition at line 66 of file uploads.py.

66  def __init__(self, log_handle=None, verbose=False):
67  # first time writing progress bar, don't need to go back along the line
69  self._verbose = verbose
70  self._log_handle = log_handle
71 
def __init__(self, log_handle=None, verbose=False)
Definition: uploads.py:66
current_output_length
Definition: uploads.py:68

Member Function Documentation

def uploads.output.write (   self,
  message = "",
  ignore_verbose = False 
)
Write to the console and to the log file held by self.

Definition at line 72 of file uploads.py.

References uploads.output._log_handle, uploads.output._verbose, uploads.log(), and reco.print().

Referenced by pkg.AbstractPkg.generate().

72  def write(self, message="", ignore_verbose=False):
73  """
74  Write to the console and to the log file held by self.
75  """
76  if ignore_verbose:
77  print(message)
78  elif self._verbose:
79  print(message)
80  if self._log_handle != None:
81  log(self._log_handle, message)
82 
std::string print(const Track &, edm::Verbosity=edm::Concise)
Track print utility.
Definition: print.cc:10
def log(file_handle, message)
Definition: uploads.py:39
def write(self, message="", ignore_verbose=False)
Definition: uploads.py:72

Member Data Documentation

uploads.output._log_handle
private

Definition at line 70 of file uploads.py.

Referenced by uploads.output.write().

uploads.output._verbose
private
uploads.output.current_output_length

Definition at line 68 of file uploads.py.