[Zope3-checkins] CVS: Zope3/src/zope/app/onlinehelp -
__init__.py:1.13
Jim Fulton
jim at zope.com
Sun Sep 21 13:33:01 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/onlinehelp
In directory cvs.zope.org:/tmp/cvs-serv14395/src/zope/app/onlinehelp
Modified Files:
__init__.py
Log Message:
Changed to use __setitem__ rather than setObject
No-longer use context wrappers.
=== Zope3/src/zope/app/onlinehelp/__init__.py 1.12 => 1.13 ===
--- Zope3/src/zope/app/onlinehelp/__init__.py:1.12 Sun Aug 17 02:07:19 2003
+++ Zope3/src/zope/app/onlinehelp/__init__.py Sun Sep 21 13:32:31 2003
@@ -24,7 +24,6 @@
from zope.app.container.sample import SampleContainer
from zope.app.interfaces.traversing import IContainmentRoot
from zope.app.traversing import traverse
-from zope.app.context import ContextWrapper
from zope.app.interfaces.onlinehelp import IOnlineHelpTopic, IOnlineHelp
from zope.interface import implements
@@ -89,8 +88,8 @@
"See Zope.App.OnlineHelp.interfaces.IOnlineHelp"
parent = traverse(self, parent_path)
# Create and add topic
- id = parent.setObject(id, OnlineHelpTopic(title, doc_path, doc_type))
- topic = ContextWrapper(parent[id], parent, name=id)
+ parent[id] = OnlineHelpTopic(title, doc_path, doc_type)
+ topic = parent[id]
# Add topic to registry
if not self._registry.has_key((interface, view)):
self._registry[(interface, view)] = []
More information about the Zope3-Checkins
mailing list