[Zope-Checkins] CVS: Zope3/lib/python/Zope/App/Traversing/tests - testEtc.py:1.1.2.1.4.1 testNamespaceTrversal.py:1.1.2.1.4.1 testPresentation.py:1.1.2.1.4.2
Jim Fulton
jim@zope.com
Sun, 2 Jun 2002 10:35:24 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/Traversing/tests
In directory cvs.zope.org:/tmp/cvs-serv29793/lib/python/Zope/App/Traversing/tests
Modified Files:
Tag: Zope3InWonderland-branch
testEtc.py testNamespaceTrversal.py testPresentation.py
Log Message:
- Added template attribute to allow views to be created from a
template source file.
- Added beginnings of a Zope debugger. This required seperating site
and server configuration.
- Added the ability to specify a config file package in the
zopeConfigure directive. Made "config.zcml" a default for the file
attribute in the include directive.
- Fixed mapply to unwrap proxied objects. This was necessary once
views became wrapped in proxies. We need to investigate why they
weren't being wrapped before.
- I updated enough system page templates and zcml directives so that:
- Zope now starts. :)
- The root folder contents listing can be viewed.
Many more templates and zcml files need to be updated to reflect the
way views are now handled.
=== Zope3/lib/python/Zope/App/Traversing/tests/testEtc.py 1.1.2.1 => 1.1.2.1.4.1 ===
self.assertEqual(
- etc('ApplicationController', (), 'Services;etc', None, None),
+ etc('ApplicationController', (), 'etc::Services', None, None),
ApplicationController)
def testServices(self):
@@ -36,7 +36,7 @@
class C:
def getServiceManager(self): return 42
- self.assertEqual(etc('Services', (), 'Services;etc', C(), None), 42)
+ self.assertEqual(etc('Services', (), 'etc:Services', C(), None), 42)
=== Zope3/lib/python/Zope/App/Traversing/tests/testNamespaceTrversal.py 1.1.2.1 => 1.1.2.1.4.1 ===
from Zope.App.Traversing.Traverser import Traverser
traverser = Traverser(c)
- v = traverser.traverse('a;attribute')
+ v = traverser.traverse('attribute::a')
self.assertEqual(v, 1)
def testItem(self):
from Zope.App.Traversing.Traverser import Traverser
traverser = Traverser(c)
- v = traverser.traverse('a;item')
+ v = traverser.traverse('item::a')
self.assertEqual(v, 'avalue')
=== Zope3/lib/python/Zope/App/Traversing/tests/testPresentation.py 1.1.2.1.4.1 => 1.1.2.1.4.2 ===
ob = Content()
- v = view('foo', (), 'foo;view', ob, Request())
+ v = view('foo', (), 'view::foo', ob, Request())
self.assertEqual(v.__class__, View)
def testResource(self):
provideResource('foo', IPresentationType, Resource)
ob = Content()
- r = resource('foo', (), 'foo;resource', ob, Request())
+ r = resource('foo', (), 'resource::foo', ob, Request())
self.assertEqual(r.__class__, Resource)