Changeset 796 for ZMS/trunk/_confmanager.py
- Timestamp:
- 16.11.2009 16:10:24 (3 years ago)
- File:
-
- 1 edited
-
ZMS/trunk/_confmanager.py (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ZMS/trunk/_confmanager.py
r794 r796 311 311 if action: 312 312 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: 314 314 _fileutil.exportObj(ob,filepath) 315 315 atime = mtime … … 322 322 action = 'add' 323 323 l.append({'action':action,'filepath':filepath,'meta_type':meta_type}) 324 if filepath in ids :324 if filepath in ids or '*' in ids: 325 325 _fileutil.mkDir(filepath) 326 326 l.extend( self.svnCopy(ob,filepath,ids)) … … 353 353 elif filename != '.svn': 354 354 if ob is None: 355 if filepath in ids :355 if filepath in ids or '*' in ids: 356 356 node.manage_addFolder( id, 'New Folder') 357 357 ob = getattr( node, id, None) … … 366 366 if filename.endswith('.dtml'): 367 367 meta_type = 'DTML Method' 368 if filepath in ids :368 if filepath in ids or '*' in ids: 369 369 node.manage_addDTMLMethod( id=id, title='New DTML Method') 370 370 elif filename.endswith('.py'): 371 371 meta_type = 'Script (Python)' 372 if filepath in ids :372 if filepath in ids or '*' in ids: 373 373 PythonScript.manage_addPythonScript( node, id) 374 374 elif filename.lower().endswith('.gif') or \ … … 376 376 filename.lower().endswith('.png'): 377 377 meta_type = 'Image' 378 if filepath in ids :378 if filepath in ids or '*' in ids: 379 379 node.manage_addImage( id=id, file='', title='') 380 380 else: 381 381 meta_type = 'File' 382 if filepath in ids :382 if filepath in ids or '*' in ids: 383 383 node.manage_addFile( id=id, file='', title='') 384 384 ob = getattr( node, id, None) … … 393 393 if action: 394 394 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: 396 396 file = open(filepath) 397 397 data = file.read() … … 414 414 meta_type = ob.meta_type 415 415 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: 417 417 node.manage_delObjects( ids=[id]) 418 418 return l
Note: See TracChangeset
for help on using the changeset viewer.
