Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 95 by
r...@jackiewicz.ca: RelationValue from_object changed and
invalid after Zope restart
http://code.google.com/p/dexterity/issues/detail?id=95
First of all this issue I believe deals with the z3c.relationfield
package but I am filing it under dexterity since it involves dexterity
content types and some dexterity developers work on z3c.relationfield.
The symptom that was noticed that when you restart zope, the
relationValue object that is stored in the a RelationList field is
changed and now stores an incorrect from_object. For example, if the
object exists at /x/y/object, after restart the from_object is said to
exist at /object, which further cause ovious errors when trying to
access the object since /object has never existed.
This affects both the Alpha 1 & 2 releases of dexterity
Steps to reproduce the problem:
1) Create two dexterity object, one with a similar (schema)field as below:
categories = RelationList(
title=_(u'Categories'),
value_type=RelationChoice(title=_(u'Related Category'),
source=ObjPathSourceBinder(object_provides=ICategory.__identifier__)),
required=False)
2) TTW add a relation to the object with the above field.
3) Restart zope.
4) Inspect the from_object of the RelationValue that was stored.
Expected Output:
Valid RelationValue object that is the same before zope was shutdown.
Ex: RelationValue.from_object (before shutdown)
<item at /x/y/object>
RelattionValue.from_object (after restart)
<item at /x/y/object>
Actual Output:
RelationValue.from_object (after restart)
<item at /object>
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings