Changeset 1752
- Timestamp:
- 8 May 2007, 07:38:10 (18 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/WAeUPTool.py
r1749 r1752 252 252 ###) 253 253 254 security.declareProtected(ModifyPortalContent,' createStudent') ###(255 def createStudent(self,dict):254 security.declareProtected(ModifyPortalContent,'addStudent') ###( 255 def addStudent(self,dict): 256 256 students_folder = self.portal_url.getPortalObject().campus.students 257 257 sid = self.waeup_tool.generateStudentId('?') … … 696 696 ###) 697 697 698 security.declareProtected(ModifyPortalContent,' create_student') ###(699 def create_student(self,dict):698 security.declareProtected(ModifyPortalContent,'import_student') ###( 699 def import_student(self,dict): 700 700 "create a students data" 701 701 logger = logging.getLogger('WAeUPTool.create_student') … … 729 729 sub_doc.edit(mapping = d) 730 730 self.portal_workflow.doActionFor(sub_obj,'close',dest_container=sub_obj) 731 ## entry_session = dict.get('entry_session') 732 ## wfaction = 'return' 733 ## if entry_session == self.getSessionId(): 734 ## wfaction = 'admit' 735 ## self.portal_workflow.doActionFor(student_obj,wfaction) 731 wfaction = 'return' 732 self.portal_workflow.doActionFor(student_obj,wfaction) 736 733 student_obj.manage_setLocalRoles(sid, ['Owner',]) 737 734 return sid,'' … … 763 760 for widget in layout.keys(): 764 761 validators[widget] = layout[widget].validate 765 creator = getattr(self, ' create_%s' % name,None)762 creator = getattr(self, 'import_%s' % name,None) 766 763 if creator is None: 767 764 logger.error('No creator function create_%s' % name) -
WAeUP_SRP/trunk/profiles/default/layouts/student_session_results_search.xml
r1747 r1752 107 107 <widget name="secret" meta_type="Secret Widget"> 108 108 <property name="title">Secret Widget</property> 109 <property name="fields"> 110 <element value="secret"/> 111 </property> 109 112 <property name="check_fields"> 110 113 <element value="Firstname"/> -
WAeUP_SRP/trunk/profiles/default/layouts/student_study_course.xml
r1735 r1752 19 19 <property name="hidden_layout_modes"/> 20 20 <property name="hidden_readonly_layout_modes"/> 21 </widget> 22 <widget name="current_session" meta_type="Select Widget"> 23 <property name="title">Current Study session</property> 24 <property name="fields"> 25 <element value="current_session"/> 26 </property> 27 <property name="is_required">False</property> 28 <property name="label">Current Session</property> 29 <property name="label_edit">Current Session</property> 30 <property name="readonly_layout_modes"/> 31 <property name="hidden_layout_modes"/> 32 <property name="hidden_readonly_layout_modes"/> 33 <property name="vocabulary">sessions</property> 21 34 </widget> 22 35 <widget name="current_level" meta_type="Select Widget"> … … 64 77 </row> 65 78 <row> 79 <cell name="current_session"/> 80 </row> 81 <row> 66 82 <cell name="current_verdict"/> 67 83 </row> -
WAeUP_SRP/trunk/skins/waeup_student/add_student.py
r1728 r1752 62 62 dict = {} 63 63 dict.update(ds) 64 sid,password = context.waeup_tool. createStudent(dict)64 sid,password = context.waeup_tool.addStudent(dict) 65 65 dict['sid'] = sid 66 66 dict['password'] = password
Note: See TracChangeset for help on using the changeset viewer.