Back to index

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

List of all members.

Public Member Functions

def symlink
def getDestModTime
def getOutput
def ensureDirFor

Public Attributes

 basepath

Detailed Description

Subclass of OutputHelper_flat that provides a helper for
creating a symlink including creating the parent directories.

Definition at line 462 of file JarMaker.py.


Member Function Documentation

def JarMaker.JarMaker.OutputHelper_flat.ensureDirFor (   self,
  name 
) [inherited]

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:

def JarMaker.JarMaker.OutputHelper_flat.getDestModTime (   self,
  aPath 
) [inherited]

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:

def JarMaker.JarMaker.OutputHelper_flat.getOutput (   self,
  name 
) [inherited]

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:

def JarMaker.JarMaker.OutputHelper_symlink.symlink (   self,
  src,
  dest 
)

Definition at line 466 of file JarMaker.py.

00466 
00467     def symlink(self, src, dest):
00468       out = self.ensureDirFor(dest)
00469       # remove previous link or file
00470       try:
00471         os.remove(out)
00472       except OSError, e:
00473         if e.errno != errno.ENOENT:
00474           raise
00475       if sys.platform != "win32":
00476         os.symlink(src, out)
00477       else:
00478         # On Win32, use ctypes to create a hardlink
00479         rv = CreateHardLink(out, src, None)
00480         if rv == 0:
00481           raise WinError()

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: