1 """Plone Properties tool setup handlers.
2 """
3
4 from Products.CMFPlone.exportimport.propertiestool import \
5 SimpleItemWithPropertiesXMLAdapter as \
6 BaseAdapter
7
9
10 """Node im- and exporter for SimpleItemWithProperties.
11 """
13 """Import the object from the DOM node.
14 """
15 obj = self.context
16 self._initProperties(node)
17 properties = [child for child in node.childNodes \
18 if child.nodeName == 'property']
19 for property in properties:
20 if property.getAttribute('remove') == 'True':
21 obj._delProperty(property.getAttribute('name'))
22