Changeset 1160
- Timestamp:
- 30 Dec 2006, 21:39:19 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 1 added
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTool.py
r1158 r1160 75 75 return None 76 76 ###) 77 77 78 78 security.declarePublic('findStudentByMatricelNo') ###( 79 79 def findStudentByMatricelNo(self,matric_no): … … 103 103 self.manage_setLocalRoles(sid, ['Owner',]) 104 104 ###) 105 105 106 106 security.declarePublic('makeStudentData') ###( 107 107 def makeStudentData(self,student_id,email=None,phone_nr=None): … … 115 115 res = self.returning_import(matric_no = st.matric_no) 116 116 if res: 117 student = res[0] 117 student = res[0] 118 118 logger.info('"%s", "creating Datastructure"' % student_id) 119 119 certcode_org = student.Coursemajorcode … … 134 134 student_obj.invokeFactory('StudentApplication','application') 135 135 application = student_obj.application 136 self.portal_workflow.doActionFor(application,' open',dest_container=application)136 self.portal_workflow.doActionFor(application,'close',dest_container=application) 137 137 da = {'Title': 'Application Data'} 138 138 student_obj.invokeFactory('StudentPersonal','personal') … … 144 144 student_obj.invokeFactory('StudentClearance','clearance') 145 145 clearance = student_obj.clearance 146 self.portal_workflow.doActionFor(clearance,' open',dest_container=clearance)146 self.portal_workflow.doActionFor(clearance,'close',dest_container=clearance) 147 147 dc = {'Title': 'Clearance/Eligibility Record'} 148 148 dc['matric_no'] = matric_no … … 196 196 ## self.portal_workflow.doActionFor(l,'open',dest_container=l) 197 197 ## l.getContent().edit(mapping={'Title': "Level %s" % level}) 198 198 199 199 security.declarePublic('getAccommodationInfo') ###( 200 200 def getAccommodationInfo(self,bed): … … 228 228 pm = self.portal_membership 229 229 member = pm.getAuthenticatedMember() 230 230 231 231 if str(member) not in ("henrik","joachim"): 232 232 return "not possible" … … 235 235 if len(res) < 1: 236 236 return "No Departments found" 237 237 238 238 deleted = [] 239 239 for dep in res: … … 243 243 deleted.append("deleted Courses in %s" % dep.getId) 244 244 return "\r".join(deleted) 245 ###) 246 245 ###) 246 247 247 248 248 InitializeClass(WAeUPTool) -
WAeUP_SRP/trunk/profiles/default/actions.xml
r1159 r1160 170 170 <permission>View</permission> 171 171 </action> 172 <action title="View Sess ionResults" action_id="display_session_results"172 <action title="View Sess. Results" action_id="display_session_results" 173 173 category="student" condition_expr="not:member" 174 174 url_expr="string:${portal_url}/display_session_results" visible="True"> 175 175 <permission>View</permission> 176 </action> 176 </action> 177 177 <action title="My Accommodation" action_id="reserve_accommodation" 178 178 category="student_navigation" condition_expr="member" -
WAeUP_SRP/trunk/skins/waeup_student/layout_search_session_edit.pt
r1151 r1160 71 71 <br /> 72 72 <input type="submit" class="standalone" name="cpsdocument_edit_button" 73 value="Save "73 value="Save and Login (not yet working)" 74 74 id="cpsdocument_edit_button" 75 75 tal:condition="not:creation" /> -
WAeUP_SRP/trunk/skins/waeup_student/session_results_anon_view.pt
r1151 r1160 52 52 </span> 53 53 </table> 54 <a href="" tal:attributes="href string:${context/absolute_url}/set_access_data?matric_no=${student/matric_no}">Continue to Email-entry</a> 54 <br /> 55 <a href="" tal:attributes="href string:${context/absolute_url}/set_access_data?matric_no=${student/matric_no}"> 56 Continue to Login! 57 </a> 55 58 </metal:main> 56 59 </metal:body> -
WAeUP_SRP/trunk/skins/waeup_student/set_access_data_form.pt
r1154 r1160 13 13 </metal:block> 14 14 <metal:block fill-slot="main"> 15 <h3>Enter Your Email Address and Choose a Password </h3>15 <h3>Enter Your Email Address and Choose a Password!</h3> 16 16 <br /> 17 17 <div tal:replace="structure rendered_main" />
Note: See TracChangeset for help on using the changeset viewer.