[Checkins] [zopefoundation/zope.app.schema] 0fb6c2: Heads up.

GitHub noreply at github.com
Tue Mar 12 13:28:31 UTC 2013


  Branch: refs/heads/monolithic-zope3-jhauser-filefieldwidget
  Home:   https://github.com/zopefoundation/zope.app.schema
  Commit: 0fb6c20befda47aaae58223f0b305d0175b42dd5
      https://github.com/zopefoundation/zope.app.schema/commit/0fb6c20befda47aaae58223f0b305d0175b42dd5
  Author: Roger Ineichen <roger at projekt01.ch>
  Date:   2005-01-21 (Fri, 21 Jan 2005)

  Changed paths:
    A fields.zcml

  Log Message:
  -----------
  Heads up.

The IFile refactoring requieres a new field/widget
for the subobject Mime in the IFile.contents field.

I decide to add a SchemaWidget (Iinput) which can handle 
subobjects like the ObjectWidget does. 
See the difference to ObjectWidget described below.

Start adding a schema input widget.
The schema input widget allowes to define a interface and a factory id.
The factory is used for storing the attributes given form the schema.
This powerfull field is used for defining fields of subobjects with 
the schema of the subobject. We will use this in the IFile.contents field.

I think in a long therm we ca replace the IObject field and ObjectWidget
with this new field/widget. This pattern supports all requiered declaration
in the interface/schema where the Object field requieres a separate view 
for rendering subwidgets with additional CustomWidgetFacotires.
The factory in the SchemaWidget is aquiered via the registred IFactory
of a content type. "getUtility(IFactory, factoryId)".





More information about the checkins mailing list