[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services - auth.py:1.5 role.py:1.5

Jim Fulton jim at zope.com
Sun Sep 21 13:31:11 EDT 2003


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

Modified Files:
	auth.py role.py 
Log Message:
Changed to use __setitem__ rather than setObject


=== Zope3/src/zope/app/browser/services/auth.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/browser/services/auth.py:1.4	Thu Aug  7 13:41:03 2003
+++ Zope3/src/zope/app/browser/services/auth.py	Sun Sep 21 13:30:40 2003
@@ -23,7 +23,7 @@
 
     def action(self, id, title, description, login, password, roles):
         user = User(id, title, description, login, password)
-        self.context.setObject(id, user)
+        self.context[id] = user
         return self.request.response.redirect(self.request.URL[-2])
 
 class EditUser:


=== Zope3/src/zope/app/browser/services/role.py 1.4 => 1.5 ===
--- Zope3/src/zope/app/browser/services/role.py:1.4	Fri Aug  8 19:28:42 2003
+++ Zope3/src/zope/app/browser/services/role.py	Sun Sep 21 13:30:40 2003
@@ -25,7 +25,7 @@
     def action(self, id, title, description):
         "Add a contact"
         role = Role(id, title, description)
-        self.context.setObject(id, role)
+        self.context[id] = role
         self.request.response.redirect('.')
 
 




More information about the Zope3-Checkins mailing list