[Zope3-checkins] SVN: ldapauth/trunk/manager.py using
removeSecurityProxy
Nicolas Evrard
nicoe at altern.org
Fri Aug 20 21:45:38 EDT 2004
Log message for revision 27203:
using removeSecurityProxy
Changed:
U ldapauth/trunk/manager.py
-=-
Modified: ldapauth/trunk/manager.py
===================================================================
--- ldapauth/trunk/manager.py 2004-08-20 22:46:26 UTC (rev 27202)
+++ ldapauth/trunk/manager.py 2004-08-21 01:45:38 UTC (rev 27203)
@@ -20,7 +20,7 @@
from ldap.modlist import addModlist
from zope.interface import implements
-from zope.security.proxy import trustedRemoveSecurityProxy
+from zope.security.proxy import removeSecurityProxy
from interfaces import ILDAPManager
@@ -41,7 +41,7 @@
# Lack the verification of the schema.
def addPrincipal(self, ldap_principal):
- source = trustedRemoveSecurityProxy(self.context)
+ source = removeSecurityProxy(self.context)
l = self.__connect(source)
dn = self._createdn(ldap_principal, source)
modification = addModlist(
@@ -53,10 +53,10 @@
# TODO later
def editPrincipal(self, ldap_principal):
- source = trustedRemoveSecurityProxy(self.context)
+ source = removeSecurityProxy(self.context)
def deletePrincipal(self, ldap_principal):
- source = trustedRemoveSecurityProxy(self.context)
+ source = removeSecurityProxy(self.context)
l = self.__connect(source)
dn = self._createdn(ldap_principal, source)
l.delete_s(dn)
More information about the Zope3-Checkins
mailing list