Changeset 381


Ignore:
Timestamp:
16 Aug 2006, 08:47:48 (18 years ago)
Author:
joachim
Message:

added check for existing course, Title now displays correctly in
CertificateCourses?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/Widgets.py

    r373 r381  
    124124            err = 0
    125125            c_ids = [c.id for c in self.portal_catalog({'meta_type': "Course"})]
    126             if value not in c_ids:
     126            if hasattr(self.aq_parent,value):
     127                err = 'Course %s already exists' % (value)
     128            elif value not in c_ids:
    127129                err = 'Course %s does not exist' % (value)
    128130            if err:
Note: See TracChangeset for help on using the changeset viewer.