Changeset 796 for ZMS/trunk/ZMSMetaobjManager.py
- Timestamp:
- 16.11.2009 16:10:24 (3 years ago)
- File:
-
- 1 edited
-
ZMS/trunk/ZMSMetaobjManager.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ZMS/trunk/ZMSMetaobjManager.py
r794 r796 105 105 # Globals. 106 106 # -------- 107 valid_types = ['amount','autocomplete','boolean','color','date','datetime','dialog','dictionary','file','float','identifier','image','int','list','multiautocomplete','multiselect','password','richtext','select','string','text','time','url','xml'] 108 valid_xtypes = ['constant','delimiter','hint','interface','method','resource'] 109 valid_datatypes = ['amount','autocomplete','boolean','color','constant','date','datetime','delimiter','dialog','dictionary','file','float','hint','identifier','image','int','interface','list','method','multiautocomplete','multiselect','password','resource','richtext','select','string','text','time','url','xml'] 110 valid_objtypes = [ 'ZMSDocument', 'ZMSObject', 'ZMSTeaserElement', 'ZMSRecordSet', 'ZMSResource', 'ZMSReference', 'ZMSLibrary', 'ZMSPackage', 'ZMSModule'] 107 valid_types = ['amount','autocomplete','boolean','color','date','datetime','dialog','dictionary','file','float','identifier','image','int','list','multiautocomplete','multiselect','password','richtext','select','string','text','time','url','xml'] 108 valid_xtypes = ['constant','delimiter','hint','interface','method','resource'] 109 valid_datatypes = valid_types+valid_xtypes 110 valid_datatypes.sort() 111 valid_objtypes = [ 'ZMSDocument', 'ZMSObject', 'ZMSTeaserElement', 'ZMSRecordSet', 'ZMSResource', 'ZMSReference', 'ZMSLibrary', 'ZMSPackage', 'ZMSModule'] 111 112 valid_zopetypes = [ 'DTML Method', 'DTML Document', 'External Method', 'Page Template', 'Script (Python)', 'Z SQL Method'] 112 113 … … 299 300 if action: 300 301 l.append({'action':action,'filepath':filepath,'mrevision':mrevision,'filemrevision':filemrevision,'meta_type':self.meta_type}) 301 if filepath in ids :302 if filepath in ids or '*' in ids: 302 303 xml = self.exportMetaobjXml([id]) 303 304 _fileutil.exportObj(xml,filepath) … … 317 318 file = open(filepath) 318 319 # Execute action. 319 if filepath in ids :320 if filepath in ids or '*' in ids: 320 321 ob.metaobj_manager.importMetaobjXml( file) 321 322 elif filepath.endswith(suffix): … … 345 346 filepath = path+'/'+filename 346 347 # Execute action. 347 if filepath in ids :348 if filepath in ids or '*' in ids: 348 349 self.delMetaobj(id) 349 350 elif not os.path.exists( filepath):
Note: See TracChangeset
for help on using the changeset viewer.
