Commit 54b2a831 authored by Jim Fulton's avatar Jim Fulton

Fixed bug in new methods for supporting ZClass registration.

parent ce63a28b
...@@ -187,23 +187,23 @@ class ProductRegistryMixin: ...@@ -187,23 +187,23 @@ class ProductRegistryMixin:
values=filter( values=filter(
lambda d, product=product, id=id: lambda d, product=product, id=id:
not (d['product']==product and d['id']==id), not (d['product']==product and d['id']==id),
list(self._getProductRegistryData(type)) list(self.aq_acquire('_getProductRegistryData')(type))
) )
data['product']=product data['product']=product
data['id']=id data['id']=id
values.append(data) values.append(data)
self._setProductRegistryData(type, tuple(values)) self.aq_acquire('_setProductRegistryData')(type, tuple(values))
def _manage_remove_product_data(self, type, product, id): def _manage_remove_product_data(self, type, product, id):
values=filter( values=filter(
lambda d, product=product, id=id: lambda d, product=product, id=id:
not (d['product']==product and d['id']==id), not (d['product']==product and d['id']==id),
self._getProductRegistryData(type) self.aq_acquire('_getProductRegistryData')(type)
) )
self._setProductRegistryData(type, tuple(values)) self.aq_acquire('_setProductRegistryData')(type, tuple(values))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment