Class s.g.e.p.ProductSupplierSlave(BaseRelationshipEditorSlave):

Part of stoqlib.gui.editors.producteditor View In Hierarchy

A slave for changing the suppliers for a product.
Method __init__ Undocumented
Method get_targets Returns a list of valid taret objects.
Method get_relations Returns the already existing relations.
Method get_columns Columns to display
Method create_model This method should create the model when adding a new relationship.

Inherited from BaseRelationshipEditorSlave:

Method _setup_relations_list Undocumented
Method _setup_widgets Undocumented
Method add Undocumented
Method edit Undocumented
Method remove Undocumented
Method _run_editor Runs an editor for the relationship (if necessary).
Method on_add_button__clicked Undocumented
Method on_target_combo__content_changed Undocumented
Method _on_edit_item__clicked Undocumented
Method _on_remove_item__clicked Undocumented
def __init__(self, conn, product):
Undocumented
def get_targets(self):
Returns a list of valid taret objects.

for instance, if suppliers for a product are being edited, then this should return a list fo suppliers.

def get_relations(self):
Returns the already existing relations.

This may be entries from a maping table or entries from the target table itself, depending on the type of relationship

def get_columns(self):
Columns to display
def create_model(self):
This method should create the model when adding a new relationship.

If the addition is canceled. It will automatically be removed.

API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.