[Zope3-checkins] CVS: Zope3/src/zope/app/browser/security - permissionwidget.py:1.11

Stephan Richter srichter at cosmos.phy.tufts.edu
Thu Aug 7 21:15:05 EDT 2003


Update of /cvs-repository/Zope3/src/zope/app/browser/security
In directory cvs.zope.org:/tmp/cvs-serv25289/browser/security

Modified Files:
	permissionwidget.py 
Log Message:
I18ned some more. Wow, the RegistrationWidget was tricky, but I fixed it.
I made the RegistrationWidget inherit from RadioWidget, which should have
been done this way in the first place.

I also noticed that there are still occurences where the interface field
attributes are not message-id'ed.


=== Zope3/src/zope/app/browser/security/permissionwidget.py 1.10 => 1.11 ===
--- Zope3/src/zope/app/browser/security/permissionwidget.py:1.10	Thu Aug  7 13:40:53 2003
+++ Zope3/src/zope/app/browser/security/permissionwidget.py	Thu Aug  7 20:14:31 2003
@@ -64,7 +64,9 @@
 
         ts = getService(self.context.context, Translation)
         sel_perm = _('---select permission---')
-        sel_perm = ts.translate(sel_perm, "zope")
+        trans = ts.translate(sel_perm, "zope", context=self.request)
+        if trans is not None:
+            sel_perm = trans
         
         options = ['<option value=\"\">'+sel_perm+'</option>']
         for permission in permissions:




More information about the Zope3-Checkins mailing list