[Zope3-checkins] CVS: Zope3/src/zope/app/browser - onlinehelp.py:1.8 traversal.zcml:1.6 objectname.py:NONE
Steve Alexander
steve@cat-box.net
Fri, 13 Jun 2003 13:41:42 -0400
Update of /cvs-repository/Zope3/src/zope/app/browser
In directory cvs.zope.org:/tmp/cvs-serv28622/src/zope/app/browser
Modified Files:
onlinehelp.py traversal.zcml
Removed Files:
objectname.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/browser/onlinehelp.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/browser/onlinehelp.py:1.7 Fri Jun 6 17:35:15 2003
+++ Zope3/src/zope/app/browser/onlinehelp.py Fri Jun 13 13:41:11 2003
@@ -21,7 +21,7 @@
from zope.publisher.browser import BrowserView
from zope.app.traversing import getRoot
from zope.app.context import ContextWrapper
-from zope.app.traversing import getParents, objectName
+from zope.app.traversing import getParents, getName
from zope.proxy import removeAllProxies
class OnlineHelpTopicView(BrowserView):
@@ -63,7 +63,7 @@
for iface in ifaces:
for topic in help.getTopicsForInterfaceAndView(iface, klass):
parents = getParents(topic)
- path = map(objectName, parents[:-1]+[topic])
+ path = map(getName, parents[:-1]+[topic])
url = getView(obj, 'absolute_url', self.request)()
url += '/++help++/'+'/'.join(path)
topics.append(FindResult(url, topic))
=== Zope3/src/zope/app/browser/traversal.zcml 1.5 => 1.6 ===
--- Zope3/src/zope/app/browser/traversal.zcml:1.5 Fri Jun 13 12:46:01 2003
+++ Zope3/src/zope/app/browser/traversal.zcml Fri Jun 13 13:41:11 2003
@@ -63,20 +63,4 @@
allowed_interface="zope.app.interfaces.browser.absoluteurl.IAbsoluteURL"
/>
-<browser:page
- for="*"
- name="object_name"
- class=".objectname.ObjectNameView"
- permission="zope.Public"
- allowed_interface="zope.app.interfaces.traversing.IObjectName"
- />
-
-<browser:page
- for="zope.app.interfaces.content.folder.IRootFolder"
- name="object_name"
- class=".objectname.SiteObjectNameView"
- permission="zope.Public"
- allowed_interface="zope.app.interfaces.traversing.IObjectName"
- />
-
</zopeConfigure>
=== Removed File Zope3/src/zope/app/browser/objectname.py ===