[Zope3-checkins] SVN: ldapauth/trunk/browser/source.py Eliminate
DeprecationWarning regarding trustedRemoveSecurityProxy().
Derrick Hudson
dman at dman13.dyndns.org
Sat Feb 12 17:39:03 EST 2005
Log message for revision 29127:
Eliminate DeprecationWarning regarding trustedRemoveSecurityProxy().
Changed:
U ldapauth/trunk/browser/source.py
-=-
Modified: ldapauth/trunk/browser/source.py
===================================================================
--- ldapauth/trunk/browser/source.py 2005-02-12 16:04:58 UTC (rev 29126)
+++ ldapauth/trunk/browser/source.py 2005-02-12 22:39:03 UTC (rev 29127)
@@ -17,7 +17,7 @@
"""
from zope.exceptions import NotFoundError
-from zope.security.proxy import trustedRemoveSecurityProxy
+from zope.security.proxy import removeSecurityProxy
from zope.app import zapi
from zope.app.size.interfaces import ISized
@@ -46,7 +46,7 @@
self.error = _("Error, No LDAP server or connection found")
for principal in principals:
- info = trustedRemoveSecurityProxy(principal)
+ info = removeSecurityProxy(principal)
zmi_icon = zapi.queryView(info, 'zmi_icon', request)
entry = {}
if zmi_icon is None:
@@ -90,7 +90,7 @@
self.error = _("Error, No LDAP server or connection found")
for principal in principals:
- info = trustedRemoveSecurityProxy(principal)
+ info = removeSecurityProxy(principal)
zmi_icon = zapi.queryView(info, 'zmi_icon', request)
entry = {}
if zmi_icon is None:
More information about the Zope3-Checkins
mailing list