[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/OFS/Services/AuthenticationService/Views/Browser - EditUser.py:1.3

Jim Fulton jim@zope.com
Tue, 16 Jul 2002 19:41:45 -0400


Update of /cvs-repository/Zope3/lib/python/Zope/App/OFS/Services/AuthenticationService/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv19928/Zope/App/OFS/Services/AuthenticationService/Views/Browser

Modified Files:
	EditUser.py 
Log Message:

Renamed (changed service type id) if all services with names ending in
"Service". Container services were given a plural form 
(e.g. "RoleService" => "Roles"), but other services just lost the
suffix (e.g. "AuthenticationService" => "Authentication").

Fixed bug in ZopeSecurityPolicy that caused placeless role-permission
grants to be ignored for placefully assigned roles.

Also changed grant lookup order. Now placeless grants are checked
*before* placeful grants.

Finished the implementation of placeful principal role grants
(re)started at the EuroPython sprint.

Fixed a bug in service directives that caused service component lookup
to fail for unpriviledged users. This caused authentication using
Stephan's authentication service to fail in mysterious ways.

Now you can create users with Stephan's auth service, and assign them
roles using principal-role grants.

Added code to the ZMI (boring) standard_macros template to display the
user, which, BTW is available in request.user.



=== Zope3/lib/python/Zope/App/OFS/Services/AuthenticationService/Views/Browser/EditUser.py 1.2 => 1.3 ===
         return self.request.response.redirect(self.request.URL[-1])
 
     def getAvailableRoles(self):
-        service = getService(self.context, "RoleService")
+        service = getService(self.context, "Roles")
         return service.getRoles()