[POS-commit] r1200 - in fiscalprinter/trunk/fiscalprinter: . gui gui/glade

Evandro Vale Miquelito evandro at async.com.br
Sat Sep 10 17:02:29 BRT 2005


Adriano Monteiro Marques wrote:

> Added: fiscalprinter/trunk/fiscalprinter/gui/selectprinter.py

> +class SelectPrinter(Delegate):
> +    widgets = ['selectprinter', 'printer_brand', 'printer_model', 'cancel', 'ok']
> +    printers = {'sweda':['IFS9000I'],
> +                'bematech':['MP25'],
> +                'daruma':['FS345']}

We should find out a better way to get all the supported printer models 
and brands. I suggest that all the drivers should provide a method 
called 'get_supported_models' which would return a list of models.
Another approach could be add an attribute 'supported_models' in each 
driver class. In this case we only need to write a method that can get 
all of the driver classes and give us the content of this attribute for 
each class.

Opnions ?

-- 


Um abraço.

Evandro Vale Miquelito : evandro at async.com.br
Async Open Source - Brazil | http://www.async.com.br


More information about the POS-commit mailing list