Back to index

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

List of all members.

Public Member Functions

def default_metavar
def get_value
def set_value
def call_get_value
def call_set_value
def has_value
def parse_value
def format

Public Attributes

 names
 help
 metavar
 group

Static Public Attributes

string action = 'store'
string type = 'string'
int nargs = 1
 choices = None

Properties

 value = property(call_get_value, call_set_value)

Detailed Description

Definition at line 68 of file settings.py.


Member Function Documentation

def cliapp.settings.Setting.call_get_value (   self) [inherited]

Definition at line 50 of file settings.py.

00050 
00051     def call_get_value(self):
00052         return self.get_value()
        

Here is the call graph for this function:

def cliapp.settings.Setting.call_set_value (   self,
  value 
) [inherited]

Definition at line 53 of file settings.py.

00053 
00054     def call_set_value(self, value):
00055         self.set_value(value)

Here is the call graph for this function:

Reimplemented from cliapp.settings.Setting.

Definition at line 70 of file settings.py.

00070 
00071     def default_metavar(self):
00072         return self.names[0].upper()
00073 

def cliapp.settings.Setting.format (   self) [inherited]

Reimplemented in cliapp.settings.StringListSetting.

Definition at line 64 of file settings.py.

00064 
00065     def format(self): # pragma: no cover
00066         return str(self.value)
00067 

def cliapp.settings.Setting.get_value (   self) [inherited]

Reimplemented in cliapp.settings.IntegerSetting, cliapp.settings.ByteSizeSetting, cliapp.settings.BooleanSetting, and cliapp.settings.StringListSetting.

Definition at line 44 of file settings.py.

00044 
00045     def get_value(self):
00046         return self._string_value
        

Here is the caller graph for this function:

def cliapp.settings.Setting.has_value (   self) [inherited]

Reimplemented in cliapp.settings.StringListSetting.

Definition at line 58 of file settings.py.

00058 
00059     def has_value(self):
00060         return self.value is not None

def cliapp.settings.Setting.parse_value (   self,
  string 
) [inherited]

Reimplemented in cliapp.settings.StringListSetting.

Definition at line 61 of file settings.py.

00061 
00062     def parse_value(self, string):
00063         self.value = string

def cliapp.settings.Setting.set_value (   self,
  value 
) [inherited]

Reimplemented in cliapp.settings.IntegerSetting, cliapp.settings.ByteSizeSetting, cliapp.settings.BooleanSetting, and cliapp.settings.StringListSetting.

Definition at line 47 of file settings.py.

00047 
00048     def set_value(self, value):
00049         self._string_value = value
        

Here is the caller graph for this function:


Member Data Documentation

string cliapp.settings.Setting.action = 'store' [static, inherited]

Reimplemented in cliapp.settings.BooleanSetting, and cliapp.settings.StringListSetting.

Definition at line 29 of file settings.py.

cliapp.settings.Setting.choices = None [static, inherited]

Reimplemented in cliapp.settings.ChoiceSetting.

Definition at line 32 of file settings.py.

Definition at line 39 of file settings.py.

Definition at line 37 of file settings.py.

Definition at line 38 of file settings.py.

Definition at line 35 of file settings.py.

int cliapp.settings.Setting.nargs = 1 [static, inherited]

Reimplemented in cliapp.settings.BooleanSetting.

Definition at line 31 of file settings.py.

string cliapp.settings.Setting.type = 'string' [static, inherited]

Property Documentation

Reimplemented in cliapp.settings.StringListSetting.

Definition at line 56 of file settings.py.


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