[Stoq-devel] [Bug 2376] - Dialogo de pesquisa de vendas deve conter
um botao para exibir detalhes de venda
bugzilla-daemon at async.com.br
bugzilla-daemon at async.com.br
Fri Jan 20 15:43:00 BRST 2006
http://bugs.async.com.br/show_bug.cgi?id=2376
------- Comment #5 from evandro at async.com.br 2006-01-20 15:43 BRT -------
(From update of attachment 2908)
>Index: stoq/gui/slaves/SaleListToolbar.py
>===================================================================
Mas o que é isso ? virou festa agora ? :-)
>Index: stoq/gui/slaves/sale.py
>+class SaleListToolbar(SlaveDelegate):
>+ def __init__(self, conn, klist, parent=None):
>+ SlaveDelegate.__init__(self, gladefile=SaleListToolbar.gladefile,
>+ toplevel_name=SaleListToolbar.gladefile)
>+ if klist.get_selection_mode() == gtk.SELECTION_MULTIPLE:
>+ raise TypeError("The SELECTION_MULTIPLE mode for the "
>+ "list is not supported on this slave")
Humm, quase bom, acho que seria mais seguro aqui levantar excessão se o modo de
seleção for diferente de SELECTION_BROWSE.
r=evandro com isso
More information about the Stoq-devel
mailing list