refactoring of browser/form.py - prepare for using cybertools.composer.schema instead of zope.formlib

git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@1995 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2007-09-03 17:23:17 +00:00
parent c793032aab
commit a049b73f0e

View file

@ -709,12 +709,12 @@ that in turns calls formlibs ``setUpWidgets()``.
The new technique uses the ``fields`` and ``data`` attributes...
>>> for f in view.fields:
... print f.name, f.fieldType, f.required, f.voc
title text True
description textarea False
data textarea False
contentType dropdown True
linkUrl text False
... print f.name, f.fieldType, f.required, f.vocabulary
title text True None
description textarea False None
data textarea False None
contentType dropdown True <...SimpleVocabulary object...>
linkUrl text False None
The object is changed via a FormController adapter created for
a NodeView.