Changeset 364 for WAeUP_SRP/trunk
- Timestamp:
- 11 Aug 2006, 05:51:59 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Academics.py
r361 r364 40 40 security = ClassSecurityInfo() 41 41 42 ##security.declareProtected(View,"Title")43 ##def Title(self):44 ##"""compose title"""45 ## return "AcademicsFolder of %s" % (self.title) 42 security.declareProtected(View,"Title") 43 def Title(self): 44 """compose title""" 45 return "Academics Section" 46 46 47 47 security.declareProtected(ModifyPortalContent,"loadFacultiesFromCSV")###( -
WAeUP_SRP/trunk/Students.py
r362 r364 104 104 d['entry_session'] = "200%s" % (cs - cl) 105 105 sc.getContent().edit(mapping=d) 106 # 107 # Level 108 # 109 level = student.get('StudentLevel') 110 l = getattr(sc,level,None) 111 if l is None: 112 #self.log('Creating Department %(DeptCode)s = %(Description)s' % dep) 113 logger.info('Creating Level %(StudentLevel)s for %(fullname)s' % student) 114 sc.invokeFactory('StudyLevel', level) 115 l = getattr(sc, level) 116 certificate = certs[certcode] 117 cert_level = getattr(certificate,level,None) 118 if cert_level is None: 119 logger.info('Level %(level)s not in %(certcode)s' % vars()) 120 l.getContent().edit(mapping={'Title': "Level %s" % level}) 121 l.invokeFactory('Semester','first') 122 l.invokeFactory('Semester','second') 123 first_s = getattr(l,'first') 124 first_s.getContent().edit(mapping={'Title': 'First Semester'}) 125 second_s = getattr(l,'second') 126 second_s.getContent().edit(mapping={'Title': 'Second Semester'}) 106 127 else: 107 128 em = 'Faculty with ID %(MatricNo)s %(fullname)s already exists' % student … … 113 134 return self.students.folder_contents() 114 135 ###) 136 137 security.declareProtected(View,"Title") 138 def Title(self): 139 """compose title""" 140 return "Students Section" 115 141 116 142 InitializeClass(StudentsFolder) … … 223 249 """compose title""" 224 250 content = self.getContent() 225 return "Personal Data for %s %s" % (content.firstname,content.lastname) 251 #return "Personal Data for %s %s" % (content.firstname,content.lastname) 252 return "Personal Data" 226 253 227 254 … … 243 270 security = ClassSecurityInfo() 244 271 245 ##security.declareProtected(View,"Title")246 ##def Title(self):247 ##"""compose title"""248 ##content = self.getContent()249 ## return "StudyCourse Data for %s %s" % (content.firstname,content.lastname) 272 security.declareProtected(View,"Title") 273 def Title(self): 274 """compose title""" 275 content = self.getContent() 276 return "Course Major" 250 277 251 278 -
WAeUP_SRP/trunk/profiles/default/actionicons.xml
r354 r364 178 178 title="Import CertCourses" priority="4" 179 179 icon_expr="actionicon_submit.png"/> 180 <action-icon category="import" 181 action_id="import_fulltime_students" 182 title="Import Fulltime Students" priority="1" 183 icon_expr="actionicon_submit.png"/> 180 184 </action-icons> -
WAeUP_SRP/trunk/profiles/default/actions.xml
r354 r364 107 107 <action title="Students" action_id="view_students" category="navigation" 108 108 condition_expr="" url_expr="string:${portal_url}/campus/students" 109 visible=" False">109 visible="True"> 110 110 <permission>View</permission> 111 111 </action> -
WAeUP_SRP/trunk/profiles/default/types/StudentPersonal.xml
r308 r364 17 17 <property name="cps_display_as_document_in_listing">True</property> 18 18 <property name="schemas"> 19 <element value="metadata"/> 20 <element value="common"/> 19 21 <element value="student_personal"/> 20 22 </property> 21 23 <property name="layouts"> 24 <element value="common"/> 22 25 <element value="student_personal"/> 23 26 </property> 24 <property name="layout_clusters"/> 27 <property name="layout_clusters"> 28 <element value="metadata:metadata"/> 29 </property> 25 30 <property name="flexible_layouts"/> 26 31 <property name="storage_methods"/> 27 32 <property name="cps_is_portlet">False</property> 28 <alias from="(Default)" to="temporary_view_all"/> 29 <alias from="view" to="temporary_view_all"/> 30 <action title="Standard View" action_id="view" category="object" 31 condition_expr="" url_expr="string:${object_url}/temporary_view_all" 32 visible="True"> 33 <alias from="(Default)" to="cpsdocument_view"/> 34 <alias from="view" to="cpsdocument_view"/> 35 <action title="View" action_id="view" category="object" condition_expr="" 36 url_expr="string:${object_url}/cpsdocument_view" visible="True"> 33 37 <permission value="View"/> 34 38 </action> … … 39 43 </action> 40 44 <action title="action_metadata" action_id="metadata" category="object" 41 condition_expr="python:member and 'Manager' in member.getRoles()" 42 url_expr="string:${object_url}/cpsdocument_metadata" visible="True"> 43 <permission value="University Manage"/> 44 </action> 45 condition_expr="" url_expr="string:${object_url}/cpsdocument_metadata" 46 visible="True"/> 45 47 </object> -
WAeUP_SRP/trunk/profiles/default/types/StudentsFolder.xml
r362 r364 32 32 <property name="storage_methods"/> 33 33 <property name="cps_is_portlet">False</property> 34 <alias from="(Default)" to="temporary_view_all"/> 35 <alias from="view" to="temporary_view_all"/> 36 <action title="Standard View" action_id="view" category="object" 37 condition_expr="" url_expr="string:${object_url}/temporary_view_all" 38 visible="True"> 34 <alias from="(Default)" to="academics_contents"/> 35 <alias from="view" to="academics_contents"/> 36 <action title="View" action_id="view" category="object" condition_expr="" 37 url_expr="string:${object_url}/academics_contents" visible="True"> 39 38 <permission value="View"/> 40 39 </action> … … 67 66 condition_expr="" url_expr="string:${object/absolute_url}/folder_contents" 68 67 visible="False"/> 69 <action title=" import fulltime students" action_id="import_fulltime"68 <action title="Import Fulltime Students" action_id="import_fulltime_students" 70 69 category="import" condition_expr="" 71 70 url_expr="string:${object_url}/loadFullTimeStudentsFromCSV"
Note: See TracChangeset for help on using the changeset viewer.