Class s.g.s.p.ProductSearch(SearchEditor):

Part of stoqlib.gui.search.productsearch View In Hierarchy

No class docstring
Method __init__ Create a new ProductSearch object.
Method _setup_print_slave Undocumented
Method on_print_button_clicked Undocumented
Method on_print_price_button_clicked Undocumented
Method _has_rows Undocumented
Method create_filters Undocumented
Method get_editor_model This hook must be redefined on child when changing the type of
Method get_columns Undocumented
Method _executer_query Undocumented
Method on_selection_changed Undocumented

Inherited from SearchEditor:

Method _setup_slaves Undocumented
Method set_edit_button_sensitive Control sensitivity of button edit
Method update_widgets Subclass can have an 'update_widgets', and this method will be
Method hide_edit_button Undocumented
Method hide_new_button Undocumented
Method update_edited_item Update the edited item to its proper type and select it on the
Method run Handles action to be performed when window is opened. Defaults to
Method run_dialog Undocumented
Method run_editor Undocumented
Method row_activate See SearchDialog.row_activate
Method _edit Undocumented
Method _on_toolbar__edit Undocumented
Method _on_toolbar__new Undocumented
Method get_searchlist_model Undocumented

Inherited from SearchDialog (via SearchEditor):

Method _setup_search_table Undocumented
Method _setup_selection_mode Undocumented
Method _setup_search Undocumented
Method _setup_details_slave Undocumented
Method set_details_button_sensitive Undocumented
Method set_print_button_sensitive Undocumented
Method get_selection Undocumented
Method confirm Undocumented
Method cancel Undocumented
Method set_table Undocumented
Method set_searchbar_labels Undocumented
Method set_searchbar_search_string Undocumented
Method set_result_strings Undocumented
Method set_text_field_columns See SearchSlaveDelegate.set_text_field_columns
Method disable_search_entry See SearchSlaveDelegate.disable_search_entry
Method add_filter See SearchSlaveDelegate.add_filter
Method create_branch_filter Undocumented
Method _on_results__cell_edited Override this method on child when it's needed to perform some
Method _on_results__selection_changed Undocumented
Method _on_results__row_activated Undocumented
Method setup_widgets Undocumented

Inherited from BasicDialog (via SearchEditor, SearchDialog):

Method _initialize Undocumented
Method setup_keyactions Undocumented
Method hide_footer Undocumented
Method enable_ok Undocumented
Method disable_ok Undocumented
Method set_ok_label Undocumented
Method set_cancel_label Undocumented
Method justify_label Undocumented
Method set_confirm_widget Enables widget as a confirm widget, the dialog will be closed as
Method set_cancel_widget Enables widget as a cancel widget, the dialog will be closed as
Method add Undocumented
Method action_area Undocumented
Method on_ok_button__clicked Undocumented
Method on_cancel_button__clicked Undocumented

Inherited from RunnableView (via SearchEditor, SearchDialog, BasicDialog, AbstractDialog):

Method close Handles action to be performed when window is closed.
Method destroy Undocumented
def __init__(self, conn, hide_footer=True, hide_toolbar=False, selection_mode=gtk.SELECTION_BROWSE, hide_cost_column=False, use_product_statuses=None, hide_price_column=False):
Create a new ProductSearch object.
Parametersconna orm Transaction instance
hide_footerdo I have to hide the dialog footer?
hide_toolbardo I have to hide the dialog toolbar?
selection_modethe kiwi list selection mode
hide_cost_columnif it's True, no need to show the column 'cost'
use_product_statusesa list instance that, if provided, will overwrite the statuses list defined in get_filter_slave method
hide_price_columnif it's True no need to show the column 'price'
def _setup_print_slave(self):
Undocumented
def on_print_button_clicked(self, button):
Undocumented
def on_print_price_button_clicked(self, button):
Undocumented
def _has_rows(self, results, obj):
Undocumented
def create_filters(self):
Undocumented
def get_editor_model(self, product_full_stock_view):
This hook must be redefined on child when changing the type of the model is a requirement for edit method.
def get_columns(self):
Undocumented
def _executer_query(self, query, having, conn):
Undocumented
def on_selection_changed(self, results, selected):
Undocumented
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.