get_items issue

3 views
Skip to first unread message

Thomas Bellos

unread,
Sep 4, 2009, 9:33:36 AM9/4/09
to porcupi...@googlegroups.com

I have noticed an issue regarding get_items() method of datatypes.Composition class.

 

The scenario:

 

If you append any objects into a composite datatype and you later need to call get_items() (within the same execution thread),

you get an exception.

 

After looking into it, the problem occurs because get_items() expects object ids instead of instances.

 

Maybe a check could be included to see if the value is a string or an instance and act accordingly

 

Thomas

 

 

tkouts

unread,
Sep 7, 2009, 1:55:27 PM9/7/09
to porcupine-users
This seems reasonable. In the mean time if the event handler is
activated when creating new objects you
can safely use the "value" attribute of the datatype (it always
contains instances).

I'll include a fix.

Thanks,
Tassos
Reply all
Reply to author
Forward
0 new messages