Class s.g.s.s.SellableSearch(SearchEditor):

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

No class docstring
Method __init__ Create a new SellableSearch object.
Method create_filters Undocumented
Method get_columns Hook called by SearchEditor
Method update_widgets Subclass can have an 'update_widgets', and this method will be
Method _executer_query Undocumented
Method _get_available_stock Undocumented

Inherited from SearchEditor:

Method _setup_slaves Undocumented
Method set_edit_button_sensitive Control sensitivity of button edit
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
Method get_editor_model This hook must be redefined on child when changing the type of

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 _has_rows 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=False, hide_toolbar=True, selection_mode=gtk.SELECTION_MULTIPLE, search_str=None, sale_items=None, quantity=None, double_click_confirm=False):
Create a new SellableSearch 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
search_strFIXME
sale_itemsoptionally, a list of sellables which will be used to deduct stock values
quantitythe quantity of stock to add to the order, is necessary to supply if you supply an order.
double_click_confirmIf double click a item in the list should automatically confirm
def create_filters(self):
Undocumented
def get_columns(self):
Hook called by SearchEditor
def update_widgets(self):
Subclass can have an 'update_widgets', and this method will be called when a signal is emitted by 'Filter' or 'Clear' buttons and also when a list item is selected.
def _executer_query(self, query, having, conn):
Undocumented
def _get_available_stock(self, sellable_view):
Undocumented
API Documentation for Stoqlib, generated by pydoctor at 2009-07-14 16:00:32.