[Stoq-devel] [Bug 2370] - Reformular POS de forma a trabalhar com balança eletrônica
bugzilla-daemon at async.com.br
bugzilla-daemon at async.com.br
Fri Jan 13 18:47:54 BRST 2006
http://bugs.async.com.br/show_bug.cgi?id=2370
------- Comment #15 from evandro at async.com.br 2006-01-13 18:47 BRT -------
(From update of attachment 2877)
>Index: stoq/gui/editors/drivers.py
devices.py ? aproveite e renomee todas as partes envolvidas.
>- Editors implementation for fiscal and cheque printers.
>+ Editors implementation Stoq equipments configuration.
.. Stoq devices ...
>+from stoq.domain.drivers import DriverSettings
DeviceSettings
>Index: stoq/gui/editors/glade/DriverSettingsEditor.glade
DeviceSettingsEditor.glade
>Index: stoq/lib/drivers.py
> def get_printer_settings_by_hostname(conn, hostname):
>- """ Returns the PrinterSettings object associated with the given
>- hostname or None if there is not settings for it.
>+ """ Returns the DriverSettings object representing the printer currencly
currently
>Index: stoq/domain/drivers.py
domain/devices.py
>+class DriverSettings(Domain):
DeviceSettings
>+ type = IntCol(default=None)
Epa, isso não deveria ser obrigatório ?
> brand = StringCol(default=None)
> model = StringCol(default=None)
> device = IntCol(default=None)
O mesmo vale aqui.
>Index: stoq/examples/drivers.py
devices.py
>- Create a PrinterSetting object that use a VirtualPrinter by default.
>+ Create a DriverSettings object that use a VirtualPrinter by default.
DeviceSettings
> def create_printer_setting():
create_device_settings ?
Como as mudanças deste patch em geral tratam de renames e são simples,
r=evandro com isso
More information about the Stoq-devel
mailing list