Share and Money Management  0.16
Public Member Functions | Static Public Member Functions | Static Public Attributes | Static Private Attributes | List of all members
smm.objects.Config Class Reference

Class to handle Config data. More...

Inheritance diagram for smm.objects.Config:

Public Member Functions

def __str__
 Returns the content of this instance as string.
- Public Member Functions inherited from smm.objects.SMMBaseObject
def __init__
 Initialise the instance and set attributes optionally.
def __repr__
 Returns the representation of this object as string.
def update
 Update instance arguments.
def add2db
 Add an object to the database.

Static Public Member Functions

def get
 Get configuration values.

Static Public Attributes

dictionary arguments
tuple key = Unicode(primary=True)
 Configuration key.
tuple value = Unicode()
 Configuration value.
- Static Public Attributes inherited from smm.objects.SMMBaseObject
dictionary arguments
 Set of argument names for keyword arguments.
tuple encoding = sys.stdout.encodingorsys.getdefaultencoding()
 Encoding of all character strings.
 psTopic = None
 Publish Subscribe Topic for this class.

Static Private Attributes

string __storm_table__ = "t_config"
 Use given table to store all of this class inside.

Detailed Description

Class to handle Config data.

Note
This class doesn't emit publish subscribe notifications.
Test:
tests.test_objects.TestObjects.test_Config_objects()

Member Function Documentation

def smm.objects.Config.__str__ (   self)

Returns the content of this instance as string.

References smm.objects.SMMBaseObject._encode(), smm.objects.Config.key, smm.objects.Transaction.value, and smm.objects.Config.value.

Referenced by smm.objects.SMMBaseObject.__repr__().

Here is the call graph for this function:

Here is the caller graph for this function:

def smm.objects.Config.get (   key)
static

Get configuration values.

Parameters
keyReturns a Config object specified by key
Test:
tests.test_objects.TestObjects.test_Config_get()

Member Data Documentation

string smm.objects.Config.__storm_table__ = "t_config"
staticprivate

Use given table to store all of this class inside.

dictionary smm.objects.Config.arguments
static
Initial value:
{
'key': 'unicode',
'value': 'unicode',
}
tuple smm.objects.Config.key = Unicode(primary=True)
static

Configuration key.

Referenced by smm.objects.Config.__str__().

tuple smm.objects.Config.value = Unicode()
static

Configuration value.

Referenced by smm.objects.Config.__str__().


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