Back to index

enigmail  1.4.3
Public Member Functions | Public Attributes | Private Member Functions
pymake.data._CommandWrapper Class Reference
Inheritance diagram for pymake.data._CommandWrapper:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def __call__

Public Attributes

 ignoreErrors
 loc
 cline
 kwargs
 context
 usercb

Private Member Functions

def _cb

Detailed Description

Definition at line 1159 of file data.py.


Constructor & Destructor Documentation

def pymake.data._CommandWrapper.__init__ (   self,
  cline,
  ignoreErrors,
  loc,
  context,
  kwargs 
)

Definition at line 1160 of file data.py.

01160 
01161     def __init__(self, cline, ignoreErrors, loc, context, **kwargs):
01162         self.ignoreErrors = ignoreErrors
01163         self.loc = loc
01164         self.cline = cline
01165         self.kwargs = kwargs
01166         self.context = context


Member Function Documentation

def pymake.data._CommandWrapper.__call__ (   self,
  cb 
)

Reimplemented in pymake.data._NativeWrapper.

Definition at line 1174 of file data.py.

01174 
01175     def __call__(self, cb):
01176         self.usercb = cb
01177         process.call(self.cline, loc=self.loc, cb=self._cb, context=self.context, **self.kwargs)

def pymake.data._CommandWrapper._cb (   self,
  res 
) [private]

Definition at line 1167 of file data.py.

01167 
01168     def _cb(self, res):
01169         if res != 0 and not self.ignoreErrors:
01170             print "%s: command '%s' failed, return code %i" % (self.loc, self.cline, res)
01171             self.usercb(error=True)
01172         else:
01173             self.usercb(error=False)


Member Data Documentation

Definition at line 1163 of file data.py.

Definition at line 1165 of file data.py.

Definition at line 1161 of file data.py.

Definition at line 1164 of file data.py.

Definition at line 1162 of file data.py.

Reimplemented in pymake.data._NativeWrapper.

Definition at line 1175 of file data.py.


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