[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container/tests - test_contents.py:1.22

Steve Alexander steve@cat-box.net
Fri, 13 Jun 2003 13:41:42 -0400


Update of /cvs-repository/Zope3/src/zope/app/browser/container/tests
In directory cvs.zope.org:/tmp/cvs-serv28622/src/zope/app/browser/container/tests

Modified Files:
	test_contents.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/container/tests/test_contents.py 1.21 => 1.22 ===
--- Zope3/src/zope/app/browser/container/tests/test_contents.py:1.21	Thu Jun 12 05:30:49 2003
+++ Zope3/src/zope/app/browser/container/tests/test_contents.py	Fri Jun 13 13:41:12 2003
@@ -28,7 +28,6 @@
 from zope.app.interfaces.copypastemove import IObjectMover
 
 from zope.app.traversing import traverse
-from zope.app.traversing import IObjectName
 from zope.app.interfaces.copypastemove import IObjectMover
 from zope.app.interfaces.copypastemove import IObjectCopier
 from zope.app.interfaces.container import IPasteTarget
@@ -36,7 +35,6 @@
 from zope.app.interfaces.container import ICopySource
 from zope.app.interfaces.container import IPasteNamesChooser
 
-from zope.app.traversing.adapters import ObjectName
 from zope.app.copypastemove import ObjectMover
 from zope.app.copypastemove import ObjectCopier
 from zope.app.container.copypastemove import PasteTarget
@@ -198,7 +196,6 @@
         provideAdapter(IContainer, IPasteTarget, PasteTarget)
         provideAdapter(IContainer, IMoveSource, MoveSource)
         provideAdapter(IContainer, ICopySource, CopySource)
-        provideAdapter(None, IObjectName, ObjectName)
         provideAdapter(IContainer, IPasteNamesChooser, PasteNamesChooser)
 
         provideAdapter(IAnnotations, IPrincipalClipboard, PrincipalClipboard)