[Stoq-devel] [Bug 3189] Ao tentar utilizar o duplo clique do mouse para exibir detalhes nada acontece

bugzilla-daemon at async.com.br bugzilla-daemon at async.com.br
Tue Feb 27 10:22:35 BRT 2007


http://bugs.async.com.br/show_bug.cgi?id=3189


Johan Dahlin <jdahlin at async.com.br> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #3885|review?(jdahlin at async.com.br|review-
               Flag|)                           |




--- Comment #16 from Johan Dahlin <jdahlin at async.com.br>  2007-02-27 10:22:34 BRT ---
(From update of attachment 3885)
>Index: stoqlib/gui/wizards/receivingwizard.py

>+    def on_orders__row_activated(self, klist, purchase_order_view):
>+        run_dialog(PurchaseDetailsDialog, self, self.conn,
>+                   model=purchase_order_view.purchase)

>Index: stoqlib/gui/search/receivingsearch.py

>+    def _on_klist__row_activated(self, klist, receiving_order):
>+        order = ReceivingOrder.get(receiving_order.id, connection=self.conn)

pode apagar, nem precisa.

>+        run_dialog(ReceivingOrderDetailsDialog, self, self.conn, order)

manda receving_order diretamente.

>Index: stoqlib/gui/base/search.py

>+        self.klist.connect('row_activated', self._on_klist__row_activated)

>+    def _on_klist__row_activated(self, klist, obj):
>+        # It is necessary to have this function here.
>+        # If not, then cause error on child's who do not implement it.
>+        # must be override on child when necessary
>+        """Override this method on child when it's needed to perform
>+        double-click action.
>+        """

Agora todas as subclasses vai ter um conexão para desse callback mas só uma vai
usar.
E melhor que mudar o connect() para stoqlib/gui/search/receivingsearch.py e
apagar as
mudanças aqui.


-- 
Configure bugmail: http://bugs.async.com.br/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Stoq-devel mailing list