[Zope3-checkins] CVS: Zope3/src/zope/app/dav/tests -
test_propfind.py:1.16
Garrett Smith
garrett at mojave-corp.com
Fri Mar 5 23:17:54 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/dav/tests
In directory cvs.zope.org:/tmp/cvs-serv15646/src/zope/app/dav/tests
Modified Files:
test_propfind.py
Log Message:
Merged changes from garrett-widgets2-branch:
- Changed the way widgets are looked up to use interfaces instead of
names.
- Refactor of zope/app/form/utility.py -- see
http://dev.zope.org/Zope3/WidgetsAndMultiwayAdapters
for details.
- Moved configuration of vocab widgets to its own zcml file
(zope/app/browser/form/vocabularywidget.zcml).
- Removed 'propertyNames' and 'getValue' from widgets. This is replaced
by accessing the widget attributes directly.
- Deleted depreated methods from widget interface: haveData and getData.
=== Zope3/src/zope/app/dav/tests/test_propfind.py 1.15 => 1.16 ===
--- Zope3/src/zope/app/dav/tests/test_propfind.py:1.15 Wed Mar 3 12:06:31 2004
+++ Zope3/src/zope/app/dav/tests/test_propfind.py Fri Mar 5 23:17:23 2004
@@ -40,7 +40,9 @@
from zope.app.attributeannotations import AttributeAnnotations
from zope.app.dav import propfind
-from zope.app.dav.interfaces import IDAVSchema, IDAVNamespace
+from zope.app.dav.interfaces import IDAVSchema
+from zope.app.dav.interfaces import IDAVNamespace
+from zope.app.dav.interfaces import IDAVWidget
from zope.app.dav.widget import TextDAVWidget, SequenceDAVWidget
import zope.app.location
@@ -135,14 +137,10 @@
[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)
More information about the Zope3-Checkins
mailing list