Class s.d.s.BranchStation(Domain):

Part of stoqlib.domain.station View In Hierarchy

Defines a computer which access Stoqlib database and lives in a certain branch company
Class Method get_active_stations Returns the currently active branch stations.
Class Method create Create a new station id for the current machine.
Class Method get_station Fetches a station from a branch
Method inactivate Undocumented
Method activate Undocumented
Method get_status_string Undocumented
Method get_branch_name Returns the branch name

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.
@classmethod
def get_active_stations(cls, conn):
Returns the currently active branch stations.
Parametersconna database connection
Returnsa sequence of currently active stations
@classmethod
def create(cls, conn, branch, name):
Create a new station id for the current machine. Optionally a branch can be specified which will be set as the branch for created station.
Parametersconna database connection
branchthe branch
namename of the station
Returnsa BranchStation instance
@classmethod
def get_station(cls, conn, branch, name):
Fetches a station from a branch
Parametersconna database connection
branchthe branch
namename of the station
def inactivate(self):
Undocumented
def activate(self):
Undocumented
def get_status_string(self):
Undocumented
def get_branch_name(self):
Returns the branch name
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.