templates Package

templates Package

companytemplate Module

Company template editor

class stoqlib.gui.templates.companytemplate.CompanyDocumentsSlave(store, model=None, visual_mode=False, edit_mode=None)[source]

Bases: stoqlib.gui.editors.baseeditor.BaseEditorSlave

model_type

alias of Company

gladefile = 'CompanyDocumentsSlave'
proxy_widgets = ('cnpj', 'fancy_name', 'state_registry', 'city_registry')
setup_proxies()[source]
on_cnpj__validate(widget, value)[source]
class stoqlib.gui.templates.companytemplate.CompanyEditorTemplate(store, model=None, person_slave=None, visual_mode=False)[source]

Bases: stoqlib.gui.editors.baseeditor.BaseEditorSlave

model_type

alias of Company

gladefile = 'BaseTemplate'
get_person_slave()[source]
attach_person_slave(slave)[source]
setup_slaves()[source]

individualtemplate Module

Individual edition template slaves implementation.

class stoqlib.gui.templates.individualtemplate.IndividualEditorTemplate(store, model=None, person_slave=None, visual_mode=False)[source]

Bases: stoqlib.gui.editors.baseeditor.BaseEditorSlave

model_type

alias of Individual

gladefile = 'BaseTemplate'
get_person_slave()[source]
attach_person_slave(slave)[source]
setup_slaves()[source]

persontemplate Module

Templates implementation for person editors.

class stoqlib.gui.templates.persontemplate.BasePersonRoleEditor(store, model=None, role_type=None, person=None, visual_mode=False, parent=None, document=None, description=None)[source]

Bases: stoqlib.gui.editors.baseeditor.BaseEditor

A base class for person role editors. This class can not be instantiated directly.

Attribute main_slave:
 
Attribute individual_slave:
 
Attribute company_slave:
 
Variables:help_section – the help button for this wizard, usually describing how to create a new person
size = (-1, -1)
help_section = None
ui_form_name = None
need_cancel_confirmation = True
create_model(store)[source]
setup_slaves()[source]
on_confirm()[source]
get_person_slave()[source]
set_phone_number(phone_number)[source]