[Zope3-checkins] CVS: Zope3/src/zope/app/dav/tests - test_propfind.py:1.12.2.1

Garrett Smith garrett at mojave-corp.com
Thu Feb 26 00:11:29 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/dav/tests
In directory cvs.zope.org:/tmp/cvs-serv25181/src/zope/app/dav/tests

Modified Files:
      Tag: garrett-widgets2-branch
	test_propfind.py 
Log Message:
Yet another branch for widgets refactoring (YABFWR).


=== Zope3/src/zope/app/dav/tests/test_propfind.py 1.12 => 1.12.2.1 ===
--- Zope3/src/zope/app/dav/tests/test_propfind.py:1.12	Wed Feb 25 18:02:24 2004
+++ Zope3/src/zope/app/dav/tests/test_propfind.py	Thu Feb 26 00:10:55 2004
@@ -42,7 +42,7 @@
 from zope.app.attributeannotations import AttributeAnnotations
 
 from zope.app.dav import propfind
-from zope.app.interfaces.dav import IDAVSchema
+from zope.app.interfaces.dav import IDAVSchema, IDAVWidget
 from zope.app.dav.widget import TextDAVWidget, SequenceDAVWidget
 from zope.app.dav.globaldavschemaservice import provideInterface
 
@@ -138,16 +138,13 @@
                        [AbsoluteURL])
         ps.provideView(None, 'PROPFIND', IHTTPRequest,
                        [propfind.PROPFIND])
-        ztapi.browserView(IText, 'view', [TextDAVWidget])
-        ztapi.browserView(ITextLine, 'view', [TextDAVWidget])
-        ztapi.browserView(IDatetime, 'view', [TextDAVWidget])
-        ztapi.browserView(ISequence, 'view', [SequenceDAVWidget])
-        ztapi.setDefaultViewName(IText, 'view')
-        ztapi.setDefaultViewName(ITextLine, 'view')
-        ztapi.setDefaultViewName(IDatetime, 'view')
-        ztapi.setDefaultViewName(ISequence, 'view')
+        ztapi.browserViewProviding(IText, TextDAVWidget, IDAVWidget)
+        ztapi.browserViewProviding(ITextLine, TextDAVWidget, IDAVWidget)
+        ztapi.browserViewProviding(IDatetime, TextDAVWidget, IDAVWidget)
+        ztapi.browserViewProviding(ISequence, SequenceDAVWidget, IDAVWidget)
         ztapi.provideAdapter(IAnnotatable, IAnnotations, AttributeAnnotations)
-        ztapi.provideAdapter(IAnnotatable, IZopeDublinCore, ZDCAnnotatableAdapter)
+        ztapi.provideAdapter(IAnnotatable, IZopeDublinCore, 
+            ZDCAnnotatableAdapter)
         provideInterface('DAV:', IDAVSchema)
         provideInterface('http://www.purl.org/dc/1.1', IZopeDublinCore)
 




More information about the Zope3-Checkins mailing list