Changeset 1449 in products
- Timestamp:
- Dec 8, 2009 8:31:41 AM (14 years ago)
- Location:
- quintagroup.transmogrifier/branches/plone-2.1/quintagroup.transmogrifier
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.transmogrifier/branches/plone-2.1/quintagroup.transmogrifier
- Property svn:mergeinfo set to /quintagroup.transmogrifier/trunk:1447-1448
-
quintagroup.transmogrifier/branches/plone-2.1/quintagroup.transmogrifier/quintagroup/transmogrifier/exportimport.py
r1429 r1449 104 104 # this function is also called when adding Plone site, so call standard handler 105 105 path = '' 106 prefix = 'structure' 106 107 if 'reader' in transmogrifier._raw: 107 108 path = transmogrifier._raw['reader'].get('path', '') 108 if not context.readDataFile('.objects.xml', subdir=os.path.join(path, 'structure')): 109 prefix = transmogrifier._raw['reader'].get('prefix', 'structure') 110 if not context.readDataFile('.objects.xml', subdir=os.path.join(path, prefix)): 109 111 try: 110 112 from Products.GenericSetup.interfaces import IFilesystemImporter -
quintagroup.transmogrifier/branches/plone-2.1/quintagroup.transmogrifier/quintagroup/transmogrifier/propertymanager.py
r1433 r1449 124 124 if sub.nodeName == 'element': 125 125 if len(sub.childNodes) > 0: 126 value = sub.childNodes[0].nodeValue 126 value = sub.childNodes[0].nodeValue.strip() 127 127 if isinstance(value, unicode): 128 128 value = value.encode(self._encoding) … … 256 256 doc = minidom.parseString(data) 257 257 root = doc.documentElement 258 for child in root.childNodes: 258 children = [k for k in root.childNodes] 259 for child in children: 259 260 if child.nodeName != 'property': 260 261 continue
Note: See TracChangeset
for help on using the changeset viewer.