def __init__(self, store, model=None, visual_mode=False, product_type=Product.TYPE_COMMON): self._product_type = product_type SellableEditor.__init__(self, store, model, visual_mode=visual_mode) # This can't be done in setup_slaves() as we need to access # self.main_dialog when setting up the quality test slave self._add_extra_tabs()
def __init__(self, store, model=None, visual_mode=False, product_type=Product.TYPE_COMMON, template=None, wizard=None): """ :param product_type: one of the available :attr:`stoqlib.domain.product.Product.product_types` that will be used when creating a new one :param template: a product to use as a template when creating a new one. Some properties will be copied from it. """ self._template = template self._product_type = product_type self._wizard = wizard SellableEditor.__init__(self, store, model, visual_mode=visual_mode) # This can't be done in setup_slaves() as we need to access # self.main_dialog when setting up the quality test slave self._add_extra_tabs()
def __init__(self, store, model=None, visual_mode=False): SellableEditor.__init__(self, store, model, visual_mode=visual_mode) # This can't be done in setup_slaves() as we need to access # self.main_dialog when setting up the quality test slave self._add_extra_tabs()