br Package

br Module

class stoqlib.l10n.br.br.CNPJ[source]

Bases: object

label = 'CNPJ'
entry_mask = '00.000.000/0000-00'
validate(value)[source]
class stoqlib.l10n.br.br.CPF[source]

Bases: object

label = 'CPF'
entry_mask = '000.000.000-00'
validate(value)[source]
class stoqlib.l10n.br.br.State[source]

Bases: object

label = 'State'
state_list = ['AC', 'AL', 'AM', 'AP', 'BA', 'CE', 'DF', 'ES', 'GO', 'MA', 'MG', 'MS', 'MT', 'PB', 'PE', 'PI', 'PR', 'RJ', 'RO', 'RN', 'RR', 'PA', 'RS', 'SE', 'SC', 'SP', 'TO']
validate(value)[source]
class stoqlib.l10n.br.br.City[source]

Bases: object

label = 'City'
validate(city, state=None, country=None)[source]