[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/form/browser/tests/test_textwidget.py TestCase for the rendering of bytesarea field demonstrating it works with the default display widget. Change as well to unicode the value for the textarea testcase to see th difference

Julien Anguenot ja at nuxeo.com
Tue Jul 26 10:19:45 EDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dmitry Vasiliev wrote:
> Julien Anguenot wrote:
> 
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Dmitry Vasiliev wrote:
>>
>>> Julien Anguenot wrote:
>>>
>>>
>>>> Log message for revision 37406:
>>>>  TestCase for the rendering of bytesarea field demonstrating it works
>>>> with the default display widget. Change as well to unicode the value
>>>> for the textarea testcase to see th difference
>>>>
>>>> Changed:
>>>>  U   Zope3/trunk/src/zope/app/form/browser/tests/test_textwidget.py
>>>>
>>>> -=-
>>>> Modified:
>>>> Zope3/trunk/src/zope/app/form/browser/tests/test_textwidget.py
>>>> ===================================================================
>>>
>>>
>>> [SKIP]
>>>
>>>
>>>>     # Rendering with the default DisplayWidget for this widget
>>>>     def testRender(self):
>>>> +        value = u"""
>>>> +        texttexttexttexttexttextexttexttexttexttextйййййййййййййййй
>>>> +        texttexttexttexttextteйййййxttexttexttexttexttexttexttextte
>>>> +        texttexttexttexttexttexttexttexttexttexttexttexttexttexttext
>>>> +        """
>>>
>>>
>>>
>>> You need to declare file encoding because the non-ASCII characters.
>>>
>>
>>
>> I put it on top of the file. I didn't find any file with encoding
>> declared so it might not be the right place within Zope3 source code ?
> 
> 
> If you don't like it you can use the \uXXXX form for non-ASCII characters.
> 

It's not a problem with the syntax itself. We are using it a lot with
CPS. Was just wondering if there's a code convention for Zope3 related
to this.

	J.

- --
Julien Anguenot | Nuxeo R&D (Paris, France)
CPS Platform : http://www.cps-project.org
Zope3 / ECM   : http://www.z3lab.org
mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFC5kaBGhoG8MxZ/pIRAtXlAJ9LyiOhoxPruGigprW02GFyU5R/cwCdHnEC
TLit+iX/SdtFSVi++e74KDA=
=v1td
-----END PGP SIGNATURE-----


More information about the Zope3-Checkins mailing list