def updateProps(self, lastvalue):
name = self.context.name
for pc in self.getPropcontainers(self.context.__parent__.__parent__,[]):
for prop in pc.values():
if prop.name == name:
list=prop.props[lastvalue]
list.remove(self.context.__parent__)
prop.props[lastvalue]=list
if prop.props.has_key(self.context.value):
prop.props[self.context.value].append(self.context.__parent__)
else:
prop.props[self.context.value] = [self.context.__parent__]
ForbiddenAttribute: ('remove', )
В чём проблема?