# HG changeset patch # User KarstenBock@gmx.net # Date 1316777417 -7200 # Node ID 180cbd2b5da8834d2e83cfc7357318ff54aff7fa # Parent 4cf150131139ea56a72e0cee1fc4042dfb1bbb0d Fixed bugs in the container functions. diff -r 4cf150131139 -r 180cbd2b5da8 components/container.py --- a/components/container.py Fri Sep 23 12:58:32 2011 +0200 +++ b/components/container.py Fri Sep 23 13:30:17 2011 +0200 @@ -70,8 +70,8 @@ if len(container.children) >= (slot_or_type + 1): return container.children[slot_or_type] else: - for item in container.children: - if child and child.type == slot_or_type: + for child in container.children: + if child and child.item_type == slot_or_type: return child return None @@ -85,8 +85,8 @@ item.container = None item.slot = -1 else: - for item in container.children: - if child and child.type == slot_or_type: + for child in container.children: + if child and child.item_type == slot_or_type: container.children[child.slot] = None child.container = None child.slot = -1