Back to index

enigmail  1.4.3
Public Member Functions | Static Public Attributes
build.manifestparser.Copy Class Reference
Inheritance diagram for build.manifestparser.Copy:
Inheritance graph
[legend]
Collaboration diagram for build.manifestparser.Copy:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __call__
def parser

Static Public Attributes

string usage = '%prog [options] copy manifest directory -tag1 -tag2 --key1=value1 --key2=value2 ...'

Detailed Description

Definition at line 903 of file manifestparser.py.


Member Function Documentation

def build.manifestparser.Copy.__call__ (   self,
  options,
  args 
)

Definition at line 905 of file manifestparser.py.

00905 
00906     def __call__(self, options, args):
00907       # parse the arguments
00908       try:
00909         kwargs, tags, args = parse_args(args)
00910       except ParserError, e:
00911         self._parser.error(e.message)
00912 
00913       # make sure we have some manifests, otherwise it will
00914       # be quite boring
00915       if not len(args) == 2:
00916         HelpCLI(self._parser)(options, ['copy'])
00917         return
00918 
00919       # read the manifests
00920       # TODO: should probably ensure these exist here
00921       manifests = ManifestParser()
00922       manifests.read(args[0])
00923 
00924       # print the resultant query
00925       manifests.copy(args[1], None, *tags, **kwargs)
00926 

Here is the call graph for this function:

def build.manifestparser.CLICommand.parser (   self) [inherited]

Reimplemented in build.manifestparser.CreateCLI.

Definition at line 899 of file manifestparser.py.

00899 
00900     def parser(self):
00901       return OptionParser(usage=self.usage, description=self.__doc__,
00902                           add_help_option=False)

Here is the caller graph for this function:


Member Data Documentation

string build.manifestparser.Copy.usage = '%prog [options] copy manifest directory -tag1 -tag2 --key1=value1 --key2=value2 ...' [static]

Reimplemented from build.manifestparser.CLICommand.

Definition at line 904 of file manifestparser.py.


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