Changeset 451


Ignore:
Timestamp:
07/14/06 15:47:40 (13 years ago)
Author:
tarmo
Message:

Fixed problem if collections contain non-pieces with file
attachments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Material.py

    r446 r451  
    203203            for res in coll.getResources(): 
    204204                if res and hasattr(res,'file') and res.file: 
    205                     if res.isImage(): 
     205                    if hasattr(res,'isImage') and res.isImage(): 
    206206                        images.append(res.UID()) 
    207207        # Add anything that the user's done himself 
     
    210210            if res.UID() not in images: 
    211211                if res and hasattr(res,'file') and res.file: 
    212                     if res.isImage(): 
     212                    if hasattr(res,'isImage') and res.isImage(): 
    213213                        images.append(res.UID()) 
    214214        return ['']+images 
Note: See TracChangeset for help on using the changeset viewer.