[Stoq-devel] [Bug 2810] - Tradução errada para títulos de editores...

bugzilla-daemon at async.com.br bugzilla-daemon at async.com.br
Fri Sep 1 18:56:59 BRT 2006


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





--- Comment #2 from Johan Dahlin <jdahlin at async.com.br>  2006-09-01 18:56 BRT ---
(From update of attachment 3507)
>Index: stoqlib/gui/wizards/personwizard.py

>         BaseWizard.__init__(self, conn,
>                             PersonRoleTypeStep(self, conn),
>-                            title=_('New %s') % self.get_role_name())
>+                            title=self.get_role_title())
> 
>     def get_role_name(self):
>         if not self.role_editor.model_name:
>@@ -214,6 +214,12 @@
>                              % self.role_editor)
>         return self.role_editor.model_name

You can remove this method now right? Or is it used any where?

> 
>+    def get_role_title(self):
>+        if not self.role_editor.title:
>+            raise ValueError('Editor %s must define a title attribute '
>+                             % self.role_editor)
>+        return self.role_editor.title

The rest looks good


More information about the Stoq-devel mailing list