Changeset 430 for WAeUP_SRP/trunk/skins/waeup_custom/getContentInfo.py
- Timestamp:
- 26 Aug 2006, 14:47:10 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_custom/getContentInfo.py
r361 r430 220 220 if doc is None: 221 221 doc = proxy.getContent() 222 if doc.portal_type == 'Course': 223 info['credits'] = doc.credits 224 info['semester'] = doc.semester 225 info['passmark'] = doc.passmark 226 elif doc.portal_type == 'CertificateCourse': 227 core = 'core' 228 if not doc.core_or_elective: 229 core = elective 230 info['core_or_elective'] = core 222 231 info['time'] = doc.modified() 223 232 info['doc'] = doc … … 233 242 except: 234 243 size = 0 235 236 244 if size and size < 1024: 237 245 info['size'] = '1 K'
Note: See TracChangeset for help on using the changeset viewer.