Changeset 9826


Ignore:
Timestamp:
5 Jan 2013, 14:07:47 (12 years ago)
Author:
Henrik Bettermann
Message:

Rename delCertCourse. This method can delete more than one certificate course.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r9822 r9826  
    22512251            data['course'] = self.context.course
    22522252            parent.addCertCourse(**data)
    2253             parent.delCertCourse(data['course'].code, level=old_level)
     2253            parent.delCertCourses(data['course'].code, level=old_level)
    22542254            self.flash(_('Form has been saved.'))
    22552255            old_code = "%s_%s" % (data['course'].code, old_level)
  • main/waeup.kofa/trunk/src/waeup/kofa/university/batching.py

    r9706 r9826  
    395395    def delEntry(self, row, site):
    396396        parent = self.getParent(row, site)
    397         parent.delCertCourse(row['course'].code, row['level'])
    398         return
     397        parent.delCertCourses(row['course'].code, row['level'])
     398        return
  • main/waeup.kofa/trunk/src/waeup/kofa/university/certificate.py

    r9824 r9826  
    7474        self._p_changed = True
    7575
    76     def delCertCourse(self, code, level=None):
     76    def delCertCourses(self, code, level=None):
    7777        """Delete certificate courses.
    7878
  • main/waeup.kofa/trunk/src/waeup/kofa/university/certificate.txt

    r8920 r9826  
    106106      the 'real' course in the department container.
    107107
    108    .. method:: delCertCourse(code)
     108   .. method:: delCertCourses(code)
    109109
    110110      Remove a certificate course from a certificate.
  • main/waeup.kofa/trunk/src/waeup/kofa/university/course.py

    r9824 r9826  
    9090            continue
    9191        reduced_results.append(certcourse)
    92     # Now we can apply delCertCourse
     92    # Now we can apply delCertCourses
    9393    for certcourse in reduced_results:
    9494        cert = certcourse.__parent__
    95         cert.delCertCourse(code)
     95        cert.delCertCourses(code)
    9696    return
    9797
Note: See TracChangeset for help on using the changeset viewer.