[Stoq-devel] [Bug 3233] No cadastro e na pesquisa de usuário a situação do mesmo não é atualizada
bugzilla-daemon at async.com.br
bugzilla-daemon at async.com.br
Tue Sep 18 15:33:48 BRT 2007
http://bugs.async.com.br/show_bug.cgi?id=3233
Johan Dahlin <jdahlin at async.com.br> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #4364|review?(silvio at async.com.br)|review-
Flag| |
--- Comment #2 from Johan Dahlin <jdahlin at async.com.br> 2007-09-18 15:33:47 BRT ---
(From update of attachment 4364)
>Index: stoqlib/gui/slaves/userslave.py
> def setup_proxies(self):
>+ self._setup_widgets()
> self.proxy = self.add_proxy(self.model,
> UserStatusSlave.proxy_widgets)
>
>+ def _setup_widgets(self):
>+ is_active = self.model.is_active
>+ self.active_check.set_active(is_active)
>+ self.inactive_check.set_active(not is_active)
>
>+ def on_active_check__content_changed(self, widget):
>+ self.model.is_active = widget.get_active()
Precisa isso mesmo, pensei kiwi jah fez isso.
>Index: stoqlib/domain/person.py
>+ def _get_status_str(self):
>+ """Retuns the status description of a user"""
Returns
Ninguem chama esse metodo, como eu vi...
>Index: ../stoq/stoq/gui/admin/admin.py
> def _edit_user(self):
>- user = self.results.get_selected()
>- model = run_person_role_dialog(UserEditor, self, self.conn, user)
>- if finish_transaction(self.conn, model):
>- self.results.update(model)
>+ trans = new_transaction()
>+ user = trans.get(self.results.get_selected())
>+ model = run_person_role_dialog(UserEditor, self, trans, user)
>+ finish_transaction(trans, model)
>+ trans.close()
>
Tirou self.results.update(model), por que?
--
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