Module s.l.validators

Part of stoqlib.lib

Validators for stoq applications
Function is_date_in_interval Check if a certain date is in an interval. The function accepts
Function format_quantity Undocumented
Function get_formatted_percentage Undocumented
Function get_price_format_str Undocumented
Function get_formatted_price Undocumented
Function get_formatted_cost Undocumented
Function validate_phone_number Undocumented
Function raw_phone_number Undocumented
Function _format_phone_number Undocumented
Function format_phone_number Undocumented
Function validate_postal_code Undocumented
Function raw_postal_code Undocumented
Function format_postal_code Undocumented
Function validate_cpf Undocumented
Function validate_cnpj Undocumented
def is_date_in_interval(date, start_date, end_date):
Check if a certain date is in an interval. The function accepts None values for start_date and end_date and, in this case, return True if there is no interval to check.
def format_quantity(quantity):
Undocumented
def get_formatted_percentage(value):
Undocumented
def get_price_format_str():
Undocumented
def get_formatted_price(float_value, symbol=True, precision=DECIMAL_PRECISION):
Undocumented
def get_formatted_cost(float_value, symbol=True):
Undocumented
def validate_phone_number(phone_number):
Undocumented
def raw_phone_number(phone_number):
Undocumented
def _format_phone_number(digits, phone):
Undocumented
def format_phone_number(phone_number):
Undocumented
def validate_postal_code(postal_code):
Undocumented
def raw_postal_code(postal_code):
Undocumented
def format_postal_code(postal_code):
Undocumented
def validate_cpf(cpf):
Undocumented
def validate_cnpj(cnpj):
Undocumented
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.