Back to index

python-cliapp  1.20120630
Public Member Functions | Static Public Attributes
example2.ExampleApp Class Reference
Inheritance diagram for example2.ExampleApp:
Inheritance graph
[legend]
Collaboration diagram for example2.ExampleApp:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def cmd_greet
def cmd_insult

Static Public Attributes

dictionary cmd_synopsis

Detailed Description

Definition at line 29 of file example2.py.


Member Function Documentation

def example2.ExampleApp.cmd_greet (   self,
  args 
)
Greet the user.

The user is treated to a a courteus,
but terse form of greeting.

Definition at line 36 of file example2.py.

00036 
00037     def cmd_greet(self, args):
00038         '''Greet the user.
00039         
00040         The user is treated to a a courteus,
00041         but terse form of greeting.
00042         
00043         '''
00044         for arg in args:
00045             self.output.write('greetings, %s\n' % arg)
            
def example2.ExampleApp.cmd_insult (   self,
  args 
)
Insult the user.

Sometimes, though rarely, it happens that a user is really a bit of 
a prat, and needs to be told off. This is the command for that.

Definition at line 46 of file example2.py.

00046 
00047     def cmd_insult(self, args):
00048         '''Insult the user.
00049         
00050         Sometimes, though rarely, it happens that a user is really a bit of 
00051         a prat, and needs to be told off. This is the command for that.
00052         
00053         '''
00054         for arg in args:
00055             self.output.write('you suck, %s\n' % arg)
    

Member Data Documentation

dictionary example2.ExampleApp.cmd_synopsis [static]
Initial value:
{
        'greet': '[USER]...',
        'insult': '[USER]...',
    }

Definition at line 31 of file example2.py.


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