Changeset 3348
- Timestamp:
- 18 Mar 2008, 17:49:35 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTables.py
r3043 r3348 912 912 ld['department'] = cb_path[-3] 913 913 ld['end_level'] = getattr(certificate_doc,'end_level','999') 914 ld['study_mode'] = getattr(certificate_doc,'study_mode','') 914 915 d[cb.getId] = ld 915 916 return d … … 920 921 if doc is None: 921 922 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'] 924 925 certificate_res = self.portal_catalog(id = doc.study_course) 925 926 if len(certificate_res) != 1: … … 931 932 if doc is None: 932 933 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'] 935 936 certificate_res = self.portal_catalog(id = doc.study_course) 936 937 if len(certificate_res) != 1: … … 942 943 if doc is None: 943 944 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'] 946 947 certificate_res = self.portal_catalog(id = doc.study_course) 947 948 if len(certificate_res) != 1: … … 1178 1179 if event_type not in ('sys_modify_object'): 1179 1180 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() 1180 1184 if mt == 'CPS Proxy Folder': 1181 1185 return
Note: See TracChangeset for help on using the changeset viewer.