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

List of all members.

Public Member Functions

def __init__
def getDestModTime
def getOutput
def ensureDirFor

Public Attributes


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

Constructor & Destructor Documentation

def JarMaker.JarMaker.OutputHelper_flat.__init__ (   self,

Definition at line 442 of file

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

Member Function Documentation

Definition at line 455 of file

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
  class OutputHelper_symlink(OutputHelper_flat):

Here is the caller graph for this function:

Definition at line 444 of file

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

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

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