Back to index

python-cliapp  1.20120630
Classes | Functions | Variables
cliapp.app Namespace Reference

Classes

class  AppException
class  LogHandler
class  Application

Functions

def __init__
def _open

Variables

 _perms

Class Documentation

class cliapp::app::LogHandler

Definition at line 48 of file app.py.


Function Documentation

def cliapp.app.__init__ (   self,
  filename,
  perms = 0600,
  args,
  kwargs 
)
Like RotatingFileHandler, but set permissions of new files.

Definition at line 52 of file app.py.

00052 
00053     def __init__(self, filename, perms=0600, *args, **kwargs):
00054         self._perms = perms
00055         logging.handlers.RotatingFileHandler.__init__(self, filename, 
00056                                                       *args, **kwargs)

Here is the caller graph for this function:

def cliapp.app._open (   self) [private]

Definition at line 57 of file app.py.

00057 
00058     def _open(self):
00059         if not os.path.exists(self.baseFilename):
00060             flags = os.O_CREAT | os.O_WRONLY
00061             fd = os.open(self.baseFilename, flags, self._perms)
00062             os.close(fd)
00063         return logging.handlers.RotatingFileHandler._open(self)
00064 


Variable Documentation

Definition at line 53 of file app.py.