[Zope3-Users] Re: zope.schema Question
Tim Cook
timothywayne.cook at gmail.com
Mon Jul 7 09:19:57 EDT 2008
On Mon, 2008-07-07 at 07:07 -0300, Tim Cook wrote:
> So once I remove all those characters I can get back to the task at
> hand.
Hmmmm, well those characters were a problem. However, I still get the
File
"/home/tim/buildout-eggs/zope.schema-3.4.0-py2.4.egg/zope/schema/_bootstrapfields.py", line 165, in _validate
raise WrongType(value, self._type)
zope.schema._bootstrapinterfaces.WrongType:
(<openehr.rm.datastructures.itemstructure.itemtree.ItemTree object at
0x7f72c659b5d0>, <type 'unicode'>)
error.
It occurs at the point where the ItemTree object is assigned to
Activity.description. The ItemTree.items attribute is a List. Printed
it looks like this:
[(['include', ([(['archetype_id/value', (['/disposition\\.v1draft/'],
{})], {})], {})], {})] <type 'list'>
All of my source files have the unicode declaration:
# -*- coding: utf-8 -*- as the first line.
Do those strings inside the list have to be marked as unicode? for
example:
[([u'include', ([([u'archetype_id/value', ([u'/disposition\\.v1draft/'],
{})], {})], {})], {})]
If so; if I remove the unicode declaration will that prevent this error?
Thanks,
--Tim
--
Timothy Cook, MSc
Health Informatics Research & Development Services
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
Skype ID == timothy.cook
**************************************************************
*You may get my Public GPG key from popular keyservers or *
*from this link http://timothywayne.cook.googlepages.com/home*
**************************************************************
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://mail.zope.org/pipermail/zope3-users/attachments/20080707/30ba3ad2/attachment.bin
More information about the Zope3-users
mailing list