[Zope-CMF] List of null strings in Subject

Loren Stafford lstafford@morphics.com
Thu, 4 Oct 2001 11:09:02 -0700


I just changed the CMF Metadata Subject configuration to show both a
suggested vocabulary and allow subjects not in the suggested vocabulary.
This results in the display of a textarea of type Lines. After updating
Metadata where no items are entered into the textarea (because the subject
is selected from the suggested vocabulary), the resource receives as one of
its Subjects a value of [''], which shows up in the textarea thus:

        <textarea name="subject:lines" rows="3"
               cols="20">['']
        </textarea><br>

Update Meadata one more time and you get:

        <textarea name="subject:lines" rows="3"
               cols="20">["['']", '']
       </textarea><br>

This is a familiar problem to anyone who has worked with Lines textareas in
Zope, and most of us have developed workarounds. I think CMF needs to
include a workaround too.

Should I submit this as a bug report?

-- Loren