Class s.d.b.Domain(BaseDomain, AdaptableORMObject):

Part of stoqlib.domain.base View In Hierarchy

Known subclasses: stoqlib.domain.account.Bank, stoqlib.domain.account.BankAccount, stoqlib.domain.address.Address, stoqlib.domain.address.CityLocation, stoqlib.domain.base.ValidatableDomain, stoqlib.domain.commission.Commission, stoqlib.domain.commission.CommissionSource, stoqlib.domain.devices.DeviceSettings, stoqlib.domain.devices.FiscalDayHistory, stoqlib.domain.devices.FiscalDayTax, stoqlib.domain.fiscal.CfopData, stoqlib.domain.fiscal.FiscalBookEntry, stoqlib.domain.inventory.Inventory, stoqlib.domain.inventory.InventoryItem, stoqlib.domain.invoice.InvoiceField, stoqlib.domain.invoice.InvoiceLayout, stoqlib.domain.invoice.InvoicePrinter, stoqlib.domain.parameter.ParameterData, stoqlib.domain.payment.category.PaymentCategory, stoqlib.domain.payment.destination.PaymentDestination, stoqlib.domain.payment.group.PaymentGroup, stoqlib.domain.payment.method.CheckData, stoqlib.domain.payment.method.CreditCardData, stoqlib.domain.payment.method.PaymentMethod, stoqlib.domain.payment.payment.Payment, stoqlib.domain.payment.payment.PaymentChangeHistory, stoqlib.domain.payment.renegotiation.PaymentRenegotiation, stoqlib.domain.person.Calls, stoqlib.domain.person.EmployeeRole, stoqlib.domain.person.EmployeeRoleHistory, stoqlib.domain.person.Liaison, stoqlib.domain.person.MilitaryData, stoqlib.domain.person.Person, stoqlib.domain.person.VoterData, stoqlib.domain.person.WorkPermitData, stoqlib.domain.plugin.InstalledPlugin, stoqlib.domain.product.Product, stoqlib.domain.product.ProductComponent, stoqlib.domain.product.ProductHistory, stoqlib.domain.product.ProductRetentionHistory, stoqlib.domain.product.ProductStockItem, stoqlib.domain.product.ProductSupplierInfo, stoqlib.domain.profile.ProfileSettings, stoqlib.domain.profile.UserProfile, stoqlib.domain.purchase.PurchaseItem, stoqlib.domain.purchase.Quotation, stoqlib.domain.purchase.QuoteGroup, stoqlib.domain.receiving.ReceivingOrderItem, stoqlib.domain.renegotiation.RenegotiationData, stoqlib.domain.sale.DeliveryItem, stoqlib.domain.sale.SaleItem, stoqlib.domain.sellable.BaseSellableInfo, stoqlib.domain.sellable.OnSaleInfo, stoqlib.domain.sellable.Sellable, stoqlib.domain.sellable.SellableCategory, stoqlib.domain.sellable.SellableTaxConstant, stoqlib.domain.sellable.SellableUnit, stoqlib.domain.service.Service, stoqlib.domain.station.BranchStation, stoqlib.domain.test.test_base_domain.Ding, stoqlib.domain.till.Till, stoqlib.domain.till.TillEntry, stoqlib.domain.transfer.TransferOrder, stoqlib.domain.transfer.TransferOrderItem

If you want to be able to extend a certain class with adapters or even just have a simple class without sublasses, this is the right choice.
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 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:

Class Method registerFacet Registers a facet for class cls.

Inherited from Adaptable (via 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 __init__(self, *args, **kwargs):
Undocumented
def _create(self, id, **kw):
Undocumented
@property
def user(self):
Undocumented
@classmethod
def iselect(cls, iface, *args, **kwargs):
Like select, but search on the adapter implementing the interface iface associated with the domain class cls.
Parametersifaceinterface
Returnsa ORMObject search result
@classmethod
def iselectBy(cls, iface, *args, **kwargs):
Like selectBy, but search on the adapter implementing the interface iface associated with the domain class cls.
Parametersifaceinterface
Returnsa ORMObject search result
@classmethod
def iselectOne(cls, iface, *args, **kwargs):
Like selectOne, but search on the adapter implementing the interface iface associated with the domain class cls.
Parametersifaceinterface
ReturnsNone, object or raises ORMObjectMoreThanOneResultError
@classmethod
def iselectOneBy(cls, iface, *args, **kwargs):
Like selectOneBy, but search on the adapter implementing the interface iface associated with the domain class cls.
Parametersifaceinterface
ReturnsNone, object or raises ORMObjectMoreThanOneResultError
@classmethod
def iget(cls, iface, object_id, **kwargs):
Like get, but gets on the adapter implementing the interface iface associated with the domain class cls.
Parametersifaceinterface
object_idid of object
Returnsthe ORMObject
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.