[Zope3-checkins] CVS: Zope3/src/zope/app/onlinehelp - __init__.py:1.8
Steve Alexander
steve@cat-box.net
Fri, 13 Jun 2003 13:41:49 -0400
Update of /cvs-repository/Zope3/src/zope/app/onlinehelp
In directory cvs.zope.org:/tmp/cvs-serv28622/src/zope/app/onlinehelp
Modified Files:
__init__.py
Log Message:
Removed the @@object_name view, as used in some page templates, and
the ObjectName view and adapter also.
Extended IPhysicallyLocatable with a getName method.
Renamed the convenience function objectName to getName.
If you have page templates that use @@object_name, then you can replace it
with zope:name.
=== Zope3/src/zope/app/onlinehelp/__init__.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/onlinehelp/__init__.py:1.7 Tue Jun 3 11:45:10 2003
+++ Zope3/src/zope/app/onlinehelp/__init__.py Fri Jun 13 13:41:18 2003
@@ -20,7 +20,7 @@
"""
import os
from zope.app.container.sample import SampleContainer
-from zope.app.traversing import getParent, objectName
+from zope.app.traversing import getParent, getName
from zope.app.interfaces.traversing import IContainmentRoot
from zope.app.traversing.adapters import Traverser
import zope.app
@@ -95,7 +95,7 @@
"See Zope.App.OnlineHelp.interfaces.IOnlineHelp"
# Delete topic from tree
topic = Traverser(self).traverse(topic_path)
- name = objectName(topic)
+ name = getName(topic)
parent = getParent(topic)
del parent[name]
# unregister from registry