Class s.d.a.Address(Domain):

Part of stoqlib.domain.address View In Hierarchy

Class to store person's addresses.

Important Attributes:

Method is_valid_model Undocumented
Method get_city Undocumented
Method get_country Undocumented
Method get_state Undocumented
Method get_postal_code_number Returns the postal code without any non-numeric characters
Method get_address_string Undocumented
Method get_description Undocumented
Method get_details_string Returns a string like 'postal_code - city - state'.

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 is_valid_model(self):
Undocumented
def get_city(self):
Undocumented
def get_country(self):
Undocumented
def get_state(self):
Undocumented
def get_postal_code_number(self):
Returns the postal code without any non-numeric characters
Returnsthe postal code as a number (type: integer )
def get_address_string(self):
Undocumented
def get_description(self):
Undocumented
def get_details_string(self):
Returns a string like 'postal_code - city - state'. If city or state are missing, return only postal_code; and if postal_code is missing, return 'city - state', otherwise, return an empty string
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.