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 |