Changeset 3348


Ignore:
Timestamp:
18 Mar 2008, 17:49:35 (17 years ago)
Author:
joachim
Message:

increase speed of student_studycourse editing, should speed up admitStudent about 15 - 20 %

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTables.py

    r3043 r3348  
    912912            ld['department'] = cb_path[-3]
    913913            ld['end_level'] = getattr(certificate_doc,'end_level','999')
     914            ld['study_mode'] = getattr(certificate_doc,'study_mode','')
    914915            d[cb.getId] = ld
    915916        return d
     
    920921        if doc is None:
    921922            return None
    922         if cached_data.has_key(doc.study_course):
    923             return cached_data[doc.study_course]['department']
     923        if self._v_certificates.has_key(doc.study_course):
     924            return self._v_certificates[doc.study_course]['department']
    924925        certificate_res = self.portal_catalog(id = doc.study_course)
    925926        if len(certificate_res) != 1:
     
    931932        if doc is None:
    932933            return None
    933         if cached_data.has_key(doc.study_course):
    934             return cached_data[doc.study_course]['faculty']
     934        if self._v_certificates.has_key(doc.study_course):
     935            return self._v_certificates[doc.study_course]['faculty']
    935936        certificate_res = self.portal_catalog(id = doc.study_course)
    936937        if len(certificate_res) != 1:
     
    942943        if doc is None:
    943944            return None
    944         if cached_data.has_key(doc.study_course):
    945             return cached_data[doc.study_course]['end_level']
     945        if self._v_certificates.has_key(doc.study_course):
     946            return self._v_certificates[doc.study_course]['end_level']
    946947        certificate_res = self.portal_catalog(id = doc.study_course)
    947948        if len(certificate_res) != 1:
     
    11781179        if event_type not in ('sys_modify_object'):
    11791180            return
     1181        if pt == 'StudentStudyCourse' and mt == 'CPS Proxy Folder':
     1182            if not hasattr(self,'_v_certificates'):
     1183                self._v_certificates = self.fill_certificates_dict()
    11801184        if mt == 'CPS Proxy Folder':
    11811185            return
Note: See TracChangeset for help on using the changeset viewer.