Changeset 788

Show
Ignore:
Timestamp:
02/19/07 05:53:09
Author:
mylan
Message:

Fixed id.extension - meta_type confusing bug.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • qPloneSkinDump/trunk/HISTORY.txt

    r787 r788  
     1qPloneSkinDump 0.7.2 
     2    - Fixed id.extension - meta_type confusing bug. 
     3 
    14qPloneSkinDump 0.7.1 
    25    - Fixed bug of dumping to new Skin Product objects with none ascii 
  • qPloneSkinDump/trunk/utils.py

    r787 r788  
    1717    'Page Template', 
    1818    'Script (Python)' ] 
     19_acceptable_meta_types = _write_custom_meta_type_list + ['Folder'] 
    1920ospJoin = os.path.join 
    2021 
     
    6667        meta_type = o.meta_type 
    6768        id = get_id(o) 
     69        if meta_type in _acceptable_meta_types: 
     70            # Adding to .objects all acceptable meta_types. 
     71            # Fixing bug of id-meta_type confusing. 
     72            obj_meta[id] = meta_type 
    6873        if meta_type == 'Folder': 
    6974            # very plone specific 
     
    8085            #writeProps( o, skinpath )      # write object's properties 
    8186            # extract content from object(depend on metatype) and write it to the file 
    82             if id.find('.') < 0 : obj_meta[id] = meta_type 
    8387            writeFileContent( o, skinpath, getData(o, meta_type) ) 
    8488            deletelist.append( o.getId() ) 
  • qPloneSkinDump/trunk/version.txt

    r787 r788  
    1 0.7.1 
     10.7.2