Back to index

enigmail  1.4.3
Public Member Functions | Public Attributes
JarMaker.JarMaker.OutputHelper_flat Class Reference
Inheritance diagram for JarMaker.JarMaker.OutputHelper_flat:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def getDestModTime
def getOutput
def ensureDirFor

Public Attributes

 basepath

Detailed Description

Provide getDestModTime and getOutput for a given flat
output directory. The helper method ensureDirFor is used by
the symlink subclass.

Definition at line 437 of file JarMaker.py.


Constructor & Destructor Documentation

def JarMaker.JarMaker.OutputHelper_flat.__init__ (   self,
  basepath 
)

Definition at line 442 of file JarMaker.py.

00442 
00443     def __init__(self, basepath):
      self.basepath = basepath

Member Function Documentation

Definition at line 455 of file JarMaker.py.

00455 
00456     def ensureDirFor(self, name):
00457       out = os.path.join(self.basepath, name)
00458       outdir = os.path.dirname(out)
00459       if not os.path.isdir(outdir):
00460         os.makedirs(outdir)
00461       return out
00462 
  class OutputHelper_symlink(OutputHelper_flat):

Here is the caller graph for this function:

Definition at line 444 of file JarMaker.py.

00444 
00445     def getDestModTime(self, aPath):
      return getModTime(os.path.join(self.basepath, aPath))

Here is the call graph for this function:

Definition at line 446 of file JarMaker.py.

00446 
00447     def getOutput(self, name):
00448       out = self.ensureDirFor(name)
00449       # remove previous link or file
00450       try:
00451         os.remove(out)
00452       except OSError, e:
00453         if e.errno != errno.ENOENT:
00454           raise
      return open(out, 'wb')

Here is the call graph for this function:


Member Data Documentation

Definition at line 443 of file JarMaker.py.


The documentation for this class was generated from the following file: