Changeset 1240 in products


Ignore:
Timestamp:
Aug 13, 2009 2:41:11 PM (15 years ago)
Author:
koval
Message:

added enable-source-behaviour option to manifestimporter section

Location:
quintagroup.transmogrifier/trunk/quintagroup/transmogrifier
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.transmogrifier/trunk/quintagroup/transmogrifier/manifest.py

    r430 r1240  
    5858        self.fileskey = defaultMatcher(options, 'files-key', name, 'files') 
    5959        self.typekey = options.get('type-key', '_type').strip() 
     60        self.enable_source_behaviour = options.get('enable-source-behaviour', 'true') == 'true' and True or False 
    6061 
    6162        # communication with logger 
     
    9697 
    9798        # now we yield items that were defined in manifests but not generated by 
    98         # previous sections - it is posible 
    99         if self.manifests: 
     99        # previous sections - it is possible 
     100        if self.manifests and self.enable_source_behaviour: 
    100101            containers = self.manifests.keys() 
    101102            containers.sort() 
     
    111112                    self.storage.append(path) 
    112113                    yield {pathkey: path, self.typekey: manifest[id_]} 
    113          
     114 
    114115        # cleanup 
    115116        if VALIDATIONKEY in self.anno: 
  • quintagroup.transmogrifier/trunk/quintagroup/transmogrifier/manifest.txt

    r430 r1240  
    3838... [manifestimporter] 
    3939... blueprint = quintagroup.transmogrifier.manifestimporter 
     40... enable-source-behaviour = true 
    4041... 
    4142... [printer] 
Note: See TracChangeset for help on using the changeset viewer.