Class s.l.p.ParameterAccess(ClassInittableObject):

Part of stoqlib.lib.parameters View In Hierarchy

A mechanism to tie specific instances to constants that can be made available cross-application. This class has a special hook that allows the values to be looked up on-the-fly and cached.

Usage:

>>> from stoqlib.lib.parameters import sysparam
>>> from stoqlib.database.runtime import get_connection
>>> conn = get_connection()
>>> parameter = sysparam(conn).parameter_name
Class Method __class_init__ Undocumented
Method __init__ Undocumented
Method _remove_unused_parameters Remove any parameter found in ParameterData table which is not
Method _set_schema Undocumented
Method update_parameter Undocumented
Method rebuild_cache_for Undocumented
Method rebuild_cache Undocumented
Method clear_cache Undocumented
Method get_parameter_type Undocumented
Method get_parameter_by_field Undocumented
Method set_defaults Undocumented
Method ensure_suggested_supplier Undocumented
Method ensure_default_base_category Undocumented
Method ensure_default_salesperson_role Undocumented
Method ensure_main_company Undocumented
Method ensure_payment_destination Undocumented
Method ensure_delivery_service Undocumented
Method _ensure_cfop Undocumented
Method ensure_default_return_sales_cfop Undocumented
Method ensure_default_sales_cfop Undocumented
Method ensure_default_receiving_cfop Undocumented
Method ensure_product_tax_constant Undocumented
@classmethod
def __class_init__(cls, namespace):
Undocumented
def __init__(self, conn):
Undocumented
def _remove_unused_parameters(self):
Remove any parameter found in ParameterData table which is not used any longer.
def _set_schema(self, field_name, field_value, is_editable=True):
Undocumented
@argcheck(str, object)
def update_parameter(self, parameter_name, value):
Undocumented
def rebuild_cache_for(self, param_name):
Undocumented
def rebuild_cache(self):
Undocumented
def clear_cache(self):
Undocumented
def get_parameter_type(self, field_name):
Undocumented
def get_parameter_by_field(self, field_name, field_type):
Undocumented
def set_defaults(self, update=False):
Undocumented
def ensure_suggested_supplier(self):
Undocumented
def ensure_default_base_category(self):
Undocumented
def ensure_default_salesperson_role(self):
Undocumented
def ensure_main_company(self):
Undocumented
def ensure_payment_destination(self):
Undocumented
def ensure_delivery_service(self):
Undocumented
def _ensure_cfop(self, key, description, code):
Undocumented
def ensure_default_return_sales_cfop(self):
Undocumented
def ensure_default_sales_cfop(self):
Undocumented
def ensure_default_receiving_cfop(self):
Undocumented
def ensure_product_tax_constant(self):
Undocumented
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.