Class s.d.i.InvoicePrinter(Domain):

Part of stoqlib.domain.invoice View In Hierarchy

An invoice printer is a representation of a physical printer connected to a branch station. It has a layout assigned which will be used to format the data sent to the printer
Parametersdevice_namea operating system specific identifier for the device used to send the printer job, /dev/lpX on unix
descriptiona human friendly description of the printer, this will appear in interfaces
stationthe station this printer is connected to
layoutthe layout used to format the invoices
Method get_description Gets the description of the printer.
Class Method get_by_station Gets the printer given a station.

Inherited from Domain:

Method __init__ Undocumented
Method _create Undocumented
Method user Undocumented
Class Method iselect Like select, but search on the adapter implementing the interface iface
Class Method iselectBy Like selectBy, but search on the adapter implementing the interface iface
Class Method iselectOne Like selectOne, but search on the adapter implementing the interface iface
Class Method iselectOneBy Like selectOneBy, but search on the adapter implementing the interface iface
Class Method iget Like get, but gets on the adapter implementing the interface iface

Inherited from AbstractModel (via Domain, BaseDomain):

Method __ne__ Undocumented
Method __eq__ Undocumented
Method _SO_setValue Undocumented
Method clone Get a persistent copy of an existent object. Remember that we can
Method get_connection Undocumented

Inherited from AdaptableORMObject (via Domain):

Class Method registerFacet Registers a facet for class cls.

Inherited from Adaptable (via Domain, AdaptableORMObject):

Class Method getFacetType Fetches a facet type associated with an interface, or raise
Class Method getFacetTypes Returns facet classes for this object
Method addFacet Adds a facet implementing iface for the current object
Method removeFacet Removes a facet from the current object
Method getFacets Gets a list of facets assoicated with the current object.
def get_description(self):
Gets the description of the printer.
Returnsdescription
@classmethod
def get_by_station(cls, station, conn):
Gets the printer given a station. If there's no invoice printer configured for this station, return None.
Parametersstationthe station
conndatabase connection
Returnsan InvoiceLayout or None
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.