[ZCM] [ZC] 1004/ 4 Assign "text and tokens property types not available."

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Sun May 2 04:51:20 EDT 2004


Issue #1004 Update (Assign) "text and tokens property types not available."
 Status Accepted, Zope/bug+solution critical
To followup, visit:
  http://zope.org/Collectors/Zope/1004

==============================================================
= Assign - Entry #4 by ajung on May 2, 2004 4:51 am

 Supporters added: ajung


________________________________________
= Comment - Entry #3 by htrd on Apr 27, 2004 5:02 am

Patch looks good to me.
________________________________________
= Accept - Entry #2 by mjablonski on Apr 22, 2004 4:37 am

 Status: Pending => Accepted

 Supporters added: mjablonski

This problem still exists in 2.6 & 2.7 and should be fixed.
I don't think that there's a good reason not to show text/tokens if management_page_charset is set to ISO-XYZ or something like that.
________________________________________
= Request - Entry #1 by zybi on Aug 1, 2003 11:44 am


Uploaded:  "properties.dtml.patch"
 - http://zope.org/Collectors/Zope/1004/properties.dtml.patch/view
In the Properties form text and tokens property types are only available when management_page_charset is set to UTF-8. Below is an excerpt from lib/python/OFS/dtml/properties.dtml wchich shows source of the problem:

    <select name="type">
      <option>boolean</option>
      <option>date</option>
      <option>float</option>
      <option>int</option>
      <option>lines</option>
      <option>long</option>
      <option selected>string</option>
      <dtml-if "REQUEST['management_page_charset']=='UTF-8'">
          <option>ustring</option>
          <option>text</option>
          <option>tokens</option>
          <option>utext</option>
          <option>utokens</option>
          <option>ulines</option>
      </dtml-if>
      <option>selection</option>
      <option>multiple selection</option>
    </select>

Attached patch also corrects alphabetical ordering of the options.
==============================================================




More information about the Zope-Collector-Monitor mailing list