[Zope-dev] Re: [Zope-2.6.0b1] Property Problem

Yusei Tahara yusei@domen.cx
Thu, 17 Oct 2002 02:20:41 +0900


Hello.

> > > and Folder title attribute is "string" not "ustring".
> > 
> > so change it.
> 
> Hmm the 'title' property of Folder is not deletable.
Yes..

But, ustring is not best solution for me.

Because, utf8 is not common encoding in japan.There are three
japanese encodings, and "euc-jp" is always used for web
application.Native python string is only type for using "euc-jp"
correctly.

So, I need to use string type for japanese in zope2.6 very much.

I read property and zpublisher source code, and then I found resolution
in my own way.


------------------ OFS/dtml/properties.dtml ----------------------

 about 2 line

 <dtml-if "this().getProperty('management_page_charset','utf-8')=='utf-8'"><dtml-var "u' '"></dtml-if>

 about 250 line

  <td colspan=2 align="left" valign="top">
  <dtml-if "this().getProperty('management_page_charset','utf-8')=='utf-8'">
    <input type="text" name="value:utf8:ustring" size="30" />
  <dtml-else>
    <input type="text" name="value:string" size="30" />
  </td>

-------------------------------------------------------------------

This code avoid to encode non latin-1 encoding charctor to latin-1.
And it can use unicode without interruption.

ofcourse, it also needs to implement this logic in other input form
tags like text or lines field and so on.

I hope to solve this problem before zope2.6 release.This is really
important things for i18n.

Sorry to my bad English.

Thank you very much.

-- 
Yusei Tahara			"So it goes"
yusei@domen.cx