Changeset 1449 in products


Ignore:
Timestamp:
Dec 8, 2009 8:31:41 AM (14 years ago)
Author:
piv
Message:

merge updates from trunk: r2486-2487

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  
    104104    # this function is also called when adding Plone site, so call standard handler 
    105105    path = '' 
     106    prefix = 'structure' 
    106107    if 'reader' in transmogrifier._raw: 
    107108        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)): 
    109111        try: 
    110112            from Products.GenericSetup.interfaces import IFilesystemImporter 
  • quintagroup.transmogrifier/branches/plone-2.1/quintagroup.transmogrifier/quintagroup/transmogrifier/propertymanager.py

    r1433 r1449  
    124124                if sub.nodeName == 'element': 
    125125                    if len(sub.childNodes) > 0: 
    126                         value = sub.childNodes[0].nodeValue 
     126                        value = sub.childNodes[0].nodeValue.strip() 
    127127                        if isinstance(value, unicode): 
    128128                            value = value.encode(self._encoding) 
     
    256256                doc = minidom.parseString(data) 
    257257                root = doc.documentElement 
    258                 for child in root.childNodes: 
     258                children = [k for k in root.childNodes] 
     259                for child in children: 
    259260                    if child.nodeName != 'property': 
    260261                        continue 
Note: See TracChangeset for help on using the changeset viewer.