Just to follow up on this issue. I have created a bug report on
launchpad with a possible fix. However, I do not know for sure that
this doesn't have other negative consequences.
https://bugs.launchpad.net/zope3/+bug/301226
Cheers,
Tim
On Thu, 2008-10-09 at 18:08 -0700, Marius Gedminas
Hi
Betreff: Re: [Zope3-Users] WrongContainedType
[...]
By reading the source code.
Object field validation actually attempts to validate the
schema (IObjectId in this case) of the object you're trying
to store (the ObjectId object, in this case). If any of the
fields cannot
On Fri, 2008-10-10 at 11:07 +0200, Roger Ineichen wrote:
What do you think about a validateSchema=True/False option or something
like that?
Maybe it's just a requirement to fix the code?
The code at around line 466 in _field.py says
errors = _validate_fields(self.schema, value)
Hi Tim
Betreff: Re: [Zope3-Users] WrongContainedType
On Fri, 2008-10-10 at 11:07 +0200, Roger Ineichen wrote:
What do you think about a validateSchema=True/False option or
something like that?
Maybe it's just a requirement to fix the code?
The code at around line 466 in _field.py
On Fri, 2008-10-10 at 12:38 -0300, Tim Cook wrote:
Maybe it's just a requirement to fix the code?
The code at around line 466 in _field.py says
errors = _validate_fields(self.schema, value)
if errors:
raise WrongContainedType(errors)
errors is an empty list
On Fri, 2008-10-10 at 17:46 +0200, Roger Ineichen wrote:
I guess not, normaly such an error has an empty representation
and the list is not empty. Try to do errors[0] or type(errors[0])
and you probably see something.
If not I'm confused
Well, I'm confused anyway, but that isn't difficult.
Hi Tim
Betreff: Re: AW: [Zope3-Users] WrongContainedType
On Fri, 2008-10-10 at 17:46 +0200, Roger Ineichen wrote:
I guess not, normaly such an error has an empty
representation and the
list is not empty. Try to do errors[0] or type(errors[0]) and you
probably see something
Thanks for your help Roger,
On Fri, 2008-10-10 at 18:19 +0200, Roger Ineichen wrote:
The error (probably, not sure) means that the object you
like to store has a missing value. Can you check the
schema of this object and set required=False in all fields?
Did that in both schemas on my
On Fri, Oct 10, 2008 at 06:19:48PM +0200, Roger Ineichen wrote:
Hi Tim
Betreff: Re: AW: [Zope3-Users] WrongContainedType
On Fri, 2008-10-10 at 17:46 +0200, Roger Ineichen wrote:
I guess not, normaly such an error has an empty
representation and the
list is not empty. Try
On Fri, 2008-10-10 at 14:01 -0300, Tim Cook wrote:
The code for these are quite verbose and will certainly obscure the
commentary so I hope it's okay that I post links to the SVN within the
comments?
Well, that isn't very helpful I just discovered that the svn servers
will be down all
Hi Tim
Betreff: Re: AW: AW: [Zope3-Users] WrongContainedType
Thanks for your help Roger,
On Fri, 2008-10-10 at 18:19 +0200, Roger Ineichen wrote:
The error (probably, not sure) means that the object you
like to store
has a missing value. Can you check the schema of this
object
On Fri, 2008-10-10 at 21:17 +0200, Roger Ineichen wrote:
I do not fully understand what the codes does but this does not work:
ontObj.parentArchetype = ''
Because it will set an empty string but an IObjectRef is needed.
Thats' not valid, just let it be, don't set anything else then
an
On Fri, Oct 10, 2008 at 09:17:08PM +0200, Roger Ineichen wrote:
Also this doesn't work:
terminologiesAvailable=List(
title=_(uTerminologies),
description=_(uList of terminologies in this ontology.),
required=True,
value_type=TextLine(),
default=[],
Ouch, careful!
I am having difficulty understanding this error.
It occurs in the call:
ontObj.parentArchetype = ObjectRef(oid,u'openehr',u'ARCHETYPE')
The first parameter for ObjectRef is declared in the schema as:
refId = Object(
schema=IObjectId,
title = _(u'Id'),
description =
On Thu, Oct 09, 2008 at 08:42:21AM -0300, Tim Cook wrote:
I am having difficulty understanding this error.
It occurs in the call:
ontObj.parentArchetype = ObjectRef(oid,u'openehr',u'ARCHETYPE')
The first parameter for ObjectRef is declared in the schema as:
refId = Object(
15 matches
Mail list logo