- Timestamp:
- 30 Jun 2006, 06:43:03 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 3 added
- 1 deleted
- 4 edited
- 19 copied
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Academics.py
r279 r280 46 46 faculties = csv.DictReader(open("%s/import/faculty.csv" % i_home,"rb")) 47 47 except: 48 logger.error('Error reading faculty.csv') 48 49 return 49 50 l = self.portal_catalog({'meta_type': "Faculty"}) … … 91 92 deps = csv.DictReader(open("%s/import/departments.csv" % i_home,"rb")) 92 93 except: 94 logger.error('Error reading departments.csv') 93 95 return 94 96 l = self.portal_catalog({'meta_type': "Faculty"}) … … 122 124 courses = csv.DictReader(open("%s/import/courses.csv" % i_home,"rb")) 123 125 except: 126 logger.error('Error reading courses.csv') 124 127 return 125 128 l = self.portal_catalog({'meta_type': "Faculty"}) … … 163 166 dict['code'] = course_id 164 167 dict['org_code'] = course.get('CourseCode') 165 dict['credits'] = course.get('Credits')168 dict['credits'] = icourse.get('Credits') 166 169 dict['semester'] = course.get('Semester') 167 170 dict['session'] = course.get('Session') 168 171 dict['category'] = course.get('Category') 169 dict['passmark'] = course.get('PassMark')172 dict['passmark'] = int(course.get('PassMark')) 170 173 c.getContent().edit(mapping=dict) 171 174 ###) … … 179 182 certificates = csv.DictReader(open("%s/import/certificates.csv" % i_home,"rb")) 180 183 except: 184 logger.error('Error reading certificates.csv') 181 185 return 182 186 f_ids = [f.id for f in self.portal_catalog({'meta_type': "Faculty"})] … … 241 245 cert_courses = csv.DictReader(open("%s/import/course_level_courses.csv" % i_home,"rb")) 242 246 except: 247 logger.error('Error reading course_level_courses.csv') 243 248 return 244 249 d_ids = [d.id for d in self.portal_catalog({'meta_type': "Department"})] … … 367 372 if ce: 368 373 return "%s" % ce.credits 369 return 0374 return "0" 370 375 371 376 security.declareProtected(View,"passmark") … … 374 379 ce = self.getCourseEntry(self.id) 375 380 if ce: 376 return "%s" % ce.passmark 377 return "No such course" 381 return "%s" % ce.passmark.split(',')[0] 382 return "0" 383 384 security.declareProtected(View,"coursepath") 385 def coursepath(self): 386 """coursepath from course""" 387 ce = self.getCourseEntry(self.id) 388 if ce: 389 return ce.getPath() 390 return "?" 378 391 379 392 -
WAeUP_SRP/trunk/profiles/default/skins.xml
r274 r280 5 5 <object name="waeup_default" meta_type="Filesystem Directory View" 6 6 directory="WAeUP_SRP/skins/waeup_default"/> 7 <object name="waeup_ faculty" meta_type="Filesystem Directory View"8 directory="WAeUP_SRP/skins/waeup_ faculty"/>7 <object name="waeup_academics" meta_type="Filesystem Directory View" 8 directory="WAeUP_SRP/skins/waeup_academics"/> 9 9 <object name="waeup_student" meta_type="Filesystem Directory View" 10 10 directory="WAeUP_SRP/skins/waeup_student"/> … … 12 12 <layer name="waeup_default" insert-after="custom"/> 13 13 <layer name="waeup_student" insert-after="cps_default"/> 14 <layer name="waeup_ faculty" insert-after="cps_default"/>14 <layer name="waeup_academics" insert-after="cps_default"/> 15 15 </skin-path> 16 16 <skin-path name="CPSSkins-macroless"> 17 17 <layer name="waeup_default" insert-after="custom"/> 18 18 <layer name="waeup_student" insert-after="cps_default"/> 19 <layer name="waeup_ faculty" insert-after="cps_default"/>19 <layer name="waeup_academics" insert-after="cps_default"/> 20 20 </skin-path> 21 21 </object> -
WAeUP_SRP/trunk/profiles/default/types/Certificate.xml
r274 r280 34 34 <property name="storage_methods"/> 35 35 <property name="cps_is_portlet">False</property> 36 <alias from="(Default)" to="temporary_view_all"/> 37 <alias from="view" to="temporary_view_all"/> 38 <action title="Standard View" action_id="view" category="object" 39 condition_expr="" url_expr="string:${object_url}/temporary_view_all" 40 visible="True"> 36 <alias from="(Default)" to="certificate_view"/> 37 <alias from="view" to="certificate_view"/> 38 <action title="View" action_id="view" category="object" condition_expr="" 39 url_expr="string:${object_url}/certificate_view" visible="True"> 41 40 <permission value="View"/> 42 41 </action> -
WAeUP_SRP/trunk/profiles/default/types/StudyLevel.xml
r279 r280 40 40 <action title="Register for Next Year" action_id="add_level" 41 41 category="object" 42 condition_expr="python:member and 'Student' in member.getRoles()"42 condition_expr="python:member and 'Student' in member.getRoles()" 43 43 url_expr="string:${object_url}/register_level" visible="True"/> 44 44 <action title="action_metadata" action_id="metadata" category="object" 45 45 condition_expr="python:member and 'Manager' in member.getRoles()" 46 url_expr="string:${object_url}/cpsdocument_metadata" visible=" True"/>46 url_expr="string:${object_url}/cpsdocument_metadata" visible="False"/> 47 47 <action title="delegate" action_id="localroles" category="object" 48 48 condition_expr="" url_expr="string:${object_url}/folder_localrole_form" -
WAeUP_SRP/trunk/skins/waeup_academics/level_view_form.pt
r279 r280 29 29 </tr> 30 30 <tr tal:repeat="course courses"> 31 <td tal:content="course/id">31 <td> <a href="coures" tal:content="course/id" tal:attributes="href course/coursepath"></a> 32 32 </td> 33 33 <td tal:content="course/Title"></td>
Note: See TracChangeset for help on using the changeset viewer.