[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services -
auth.py:1.4.8.1 role.py:1.4.8.1 view.py:1.24.6.2
Jim Fulton
jim at zope.com
Fri Sep 12 15:15:43 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/services
In directory cvs.zope.org:/tmp/cvs-serv13470/src/zope/app/browser/services
Modified Files:
Tag: parentgeddon-branch
auth.py role.py view.py
Log Message:
Can't have the tests passing, can we?
=== Zope3/src/zope/app/browser/services/auth.py 1.4 => 1.4.8.1 ===
--- 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 Fri Sep 12 15:15:12 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.4.8.1 ===
--- 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 Fri Sep 12 15:15:12 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('.')
=== Zope3/src/zope/app/browser/services/view.py 1.24.6.1 => 1.24.6.2 ===
--- Zope3/src/zope/app/browser/services/view.py:1.24.6.1 Mon Sep 8 14:21:26 2003
+++ Zope3/src/zope/app/browser/services/view.py Fri Sep 12 15:15:12 2003
@@ -20,7 +20,6 @@
from zope.app.component.interfacefield import InterfaceField
from zope.app.form.utility import setUpWidgets
from zope.app.i18n import ZopeMessageIDFactory as _
-from zope.app.interfaces.container import IRemoveSource
from zope.app.interfaces.services.registration import ActiveStatus
from zope.app.interfaces.services.registration import RegisteredStatus
from zope.app.interfaces.services.registration import UnregisteredStatus
@@ -172,8 +171,7 @@
conf.status = UnregisteredStatus
parent = getParent(conf)
name = getName(conf)
- remover = zapi.getAdapter(parent, IRemoveSource)
- remover.removeObject(name)
+ del parent[name]
s = _("Deleted: ${cache_names}")
s.mapping = {'cache_names': ", ".join(todo)}
More information about the Zope3-Checkins
mailing list