Ignore:
Timestamp:
16.11.2009 16:10:24 (3 years ago)
Author:
cmeier
Message:

zms-2.12.1-04

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ZMS/trunk/_confmanager.py

    r794 r796  
    311311            if action: 
    312312              l.append({'action':action,'filepath':filepath,'mtime':mtime,'filemtime':filemtime,'meta_type':meta_type}) 
    313               if filepath in ids: 
     313              if filepath in ids or '*' in ids: 
    314314                _fileutil.exportObj(ob,filepath) 
    315315                atime = mtime 
     
    322322              action = 'add' 
    323323              l.append({'action':action,'filepath':filepath,'meta_type':meta_type}) 
    324               if filepath in ids: 
     324              if filepath in ids or '*' in ids: 
    325325                _fileutil.mkDir(filepath) 
    326326            l.extend( self.svnCopy(ob,filepath,ids)) 
     
    353353          elif filename != '.svn': 
    354354            if ob is None: 
    355               if filepath in ids: 
     355              if filepath in ids or '*' in ids: 
    356356                node.manage_addFolder( id, 'New Folder') 
    357357              ob = getattr( node, id, None) 
     
    366366            if filename.endswith('.dtml'): 
    367367              meta_type = 'DTML Method' 
    368               if filepath in ids: 
     368              if filepath in ids or '*' in ids: 
    369369                node.manage_addDTMLMethod( id=id, title='New DTML Method') 
    370370            elif filename.endswith('.py'): 
    371371              meta_type = 'Script (Python)' 
    372               if filepath in ids: 
     372              if filepath in ids or '*' in ids: 
    373373                PythonScript.manage_addPythonScript( node, id) 
    374374            elif filename.lower().endswith('.gif') or \ 
     
    376376                 filename.lower().endswith('.png'): 
    377377              meta_type = 'Image' 
    378               if filepath in ids: 
     378              if filepath in ids or '*' in ids: 
    379379                node.manage_addImage( id=id, file='', title='') 
    380380            else: 
    381381              meta_type = 'File' 
    382               if filepath in ids: 
     382              if filepath in ids or '*' in ids: 
    383383                node.manage_addFile( id=id, file='', title='') 
    384384            ob = getattr( node, id, None) 
     
    393393          if action: 
    394394            l.append({'action':action,'filepath':filepath,'mtime':mtime,'filemtime':filemtime,'meta_type':meta_type}) 
    395             if filepath in ids: 
     395            if filepath in ids or '*' in ids: 
    396396              file = open(filepath) 
    397397              data = file.read() 
     
    414414          meta_type = ob.meta_type 
    415415          l.append({'action':action,'filepath':filepath,'mtime':mtime,'filemtime':filemtime,'meta_type':meta_type}) 
    416           if filepath in ids: 
     416          if filepath in ids or '*' in ids: 
    417417            node.manage_delObjects( ids=[id]) 
    418418      return l 
Note: See TracChangeset for help on using the changeset viewer.