Changeset 772


Ignore:
Timestamp:
05/24/11 15:29:34 (3 years ago)
Author:
brent
Message:

Added import for Manifest error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 4.0/enpraxis.educommons/trunk/enpraxis/educommons/utilities/edumetadata.py

    r506 r772  
    2222 
    2323from xml.dom import minidom 
     24from collective.imstransport.IMS_exceptions import ManifestError 
    2425 
    2526ec_namespace = 'http://cosl.usu.edu/xsd/eduCommonsv1.2' 
     
    4041                ot = self.getTextValue(objectType_nodes[0]) 
    4142                if ot: 
    42                     if ot not in ['Course', 'FSSFile', 'Document', 'File', 'Image', 'Link']: 
     43                    if ot not in ['Course', 'Large File', 'Document', 'File', 'Image', 'Link']: 
    4344                        raise ManifestError, '"%s" is not a recognized object type.' %ot 
    4445                    md['type'] = '%s' %ot 
Note: See TracChangeset for help on using the changeset viewer.