Changeset 1752


Ignore:
Timestamp:
8 May 2007, 07:38:10 (18 years ago)
Author:
joachim
Message:

create -> add /import

Location:
WAeUP_SRP/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/WAeUPTool.py

    r1749 r1752  
    252252    ###)
    253253
    254     security.declareProtected(ModifyPortalContent,'createStudent') ###(
    255     def createStudent(self,dict):
     254    security.declareProtected(ModifyPortalContent,'addStudent') ###(
     255    def addStudent(self,dict):
    256256        students_folder = self.portal_url.getPortalObject().campus.students
    257257        sid = self.waeup_tool.generateStudentId('?')
     
    696696    ###)
    697697
    698     security.declareProtected(ModifyPortalContent,'create_student') ###(
    699     def create_student(self,dict):
     698    security.declareProtected(ModifyPortalContent,'import_student') ###(
     699    def import_student(self,dict):
    700700        "create a students data"
    701701        logger = logging.getLogger('WAeUPTool.create_student')
     
    729729            sub_doc.edit(mapping = d)
    730730            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)
    736733        student_obj.manage_setLocalRoles(sid, ['Owner',])
    737734        return sid,''
     
    763760        for widget in layout.keys():
    764761            validators[widget] = layout[widget].validate
    765         creator = getattr(self, 'create_%s' % name,None)
     762        creator = getattr(self, 'import_%s' % name,None)
    766763        if creator is None:
    767764            logger.error('No creator function create_%s' % name)
  • WAeUP_SRP/trunk/profiles/default/layouts/student_session_results_search.xml

    r1747 r1752  
    107107 <widget name="secret" meta_type="Secret Widget">
    108108  <property name="title">Secret Widget</property>
     109  <property name="fields">
     110   <element value="secret"/>
     111  </property>
    109112  <property name="check_fields">
    110113   <element value="Firstname"/>
  • WAeUP_SRP/trunk/profiles/default/layouts/student_study_course.xml

    r1735 r1752  
    1919  <property name="hidden_layout_modes"/>
    2020  <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>
    2134 </widget>
    2235 <widget name="current_level" meta_type="Select Widget">
     
    6477  </row>
    6578  <row>
     79   <cell name="current_session"/>
     80  </row>
     81  <row>
    6682   <cell name="current_verdict"/>
    6783  </row>
  • WAeUP_SRP/trunk/skins/waeup_student/add_student.py

    r1728 r1752  
    6262dict = {}
    6363dict.update(ds)
    64 sid,password = context.waeup_tool.createStudent(dict)
     64sid,password = context.waeup_tool.addStudent(dict)
    6565dict['sid'] = sid
    6666dict['password'] = password
Note: See TracChangeset for help on using the changeset viewer.