[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/securitypolicy/browser/rolepermissionview.py fix bug: local roles have no translation, therefore we have to provide a default.

Dominik Huber dominik.huber at projekt01.ch
Fri Feb 18 17:47:26 EST 2005


Log message for revision 29213:
  fix bug: local roles have no translation, therefore we have to provide a default.

Changed:
  U   Zope3/trunk/src/zope/app/securitypolicy/browser/rolepermissionview.py

-=-
Modified: Zope3/trunk/src/zope/app/securitypolicy/browser/rolepermissionview.py
===================================================================
--- Zope3/trunk/src/zope/app/securitypolicy/browser/rolepermissionview.py	2005-02-18 20:57:09 UTC (rev 29212)
+++ Zope3/trunk/src/zope/app/securitypolicy/browser/rolepermissionview.py	2005-02-18 22:47:25 UTC (rev 29213)
@@ -33,7 +33,7 @@
         roles = getattr(self, '_roles', None)
         if roles is None:
             roles = [
-                (translate(role.title, context=self.request).strip(), role)
+                (translate(role.title, context=self.request, default=role.title).strip(), role)
                 for name, role in zapi.getUtilitiesFor(IRole)]
             roles.sort()
             roles = self._roles = [role for name, role in roles]



More information about the Zope3-Checkins mailing list