Share and Money Management 0.18devel
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__ (self)
 Returns the content of this instance as string. More...
 
- Public Member Functions inherited from smm.objects.SMMBaseObject
def __init__ (self, **kwargs)
 Initialise the instance and set attributes optionally. More...
 
def __repr__ (self)
 Returns the representation of this object as string. More...
 
def update (self, **kwargs)
 Update instance arguments. More...
 
def add2db (self)
 Add an object to the database. More...
 

Static Public Member Functions

def get (key)
 Get configuration values. More...
 

Static Public Attributes

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

Static Private Attributes

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

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

◆ __str__()

def smm.objects.Config.__str__ (   self)

Returns the content of this instance as string.

References smm.objects.Config.key, smm.objects.Transaction.value, and smm.objects.Config.value.

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

Here is the caller graph for this function:

◆ get()

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

◆ __storm_table__

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

Use given table to store all of this class inside.

◆ arguments

dictionary smm.objects.Config.arguments
static
Initial value:
= {
"key",
"value",
}

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

◆ key

smm.objects.Config.key = Unicode(primary=True)
static

Configuration key.

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

◆ value

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

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