Changeset 2576


Ignore:
Timestamp:
8 Nov 2007, 07:55:07 (17 years ago)
Author:
Henrik Bettermann
Message:

Uebergabe an Joachim, darf noch nicht ausgecheckt werden

Location:
WAeUP_SRP
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPTool.py

    r2575 r2576  
    640640
    641641    security.declareProtected(ModifyPortalContent,'admitOneStudent') ###(
    642     def admitOneStudent(self,brain,entry_session):
     642    def admitOneStudent(self,brain,entry_session,pin_password):
    643643        "create Datastructure for an admitted Student"
    644644        #import pdb;pdb.set_trace()
     
    655655        students_folder.invokeFactory('Student', student_id)
    656656        student_object = getattr(students_folder,student_id)
    657         #password = pin_parts[2]
    658         #self.makeStudentMember(student_id,password = password)
    659         self.makeStudentMember(student_id)
     657        if pin_password:
     658            password = pin_parts[2]
     659            self.makeStudentMember(student_id,password = password)
     660        else:
     661            self.makeStudentMember(student_id)
    660662        student_object.manage_setLocalRoles(student_id, ['Owner',])
    661663        #logger.info("creating %s reg_no %s" % (student_id,brain.reg_no))
     
    668670        da = {'Title': 'Application Data'}
    669671        da['jamb_reg_no'] = brain.reg_no
    670        
     672
    671673        sex = 'M'
    672674        if brain.sex:
     
    706708        da['hq_grade'] = brain.hq_grade
    707709        da['aos'] = brain.aos
    708        
     710
    709711        application.getContent().edit(mapping=da)
    710712        #self.portal_workflow.doActionFor(application,'close',dest_container=application)
     
    721723        dp['lastname'] = brain.lastname
    722724        dp['middlename'] = brain.middlenames   # different field names!
    723         dp['firstname'] = brain.firstname       
     725        dp['firstname'] = brain.firstname
    724726        personal.getContent().edit(mapping=dp)
    725727        #
  • WAeUP_SRP/base/skins/waeup_student/admitStudents.py

    r2575 r2576  
    2323
    2424entry_session = '07'
     25pin_password = False
    2526
    2627import logging
     
    5657    brain = aq_applicants(Eq('reg_no',reg_no))[0]
    5758    #logger.info("start creating  objects of student %s" % (brain.reg_no))
    58     sid = d['student_id'] = context.waeup_tool.admitOneStudent(brain,entry_session)
     59    sid = d['student_id'] = context.waeup_tool.admitOneStudent(brain,entry_session,pin_password)
    5960    if sid is not None:
    6061        d['reg_no'] = reg_no
     
    6364        admitted += 1
    6465    else:
    65         logger.info("could not create  objects of student %s with pin " % (reg_no,brain.pin))
     66        logger.info("could not create objects of student %s with pin " % (reg_no,brain.pin))
    6667
    6768msg = "finished admitting %d students" % (admitted)
  • WAeUP_SRP/base/skins/waeup_student/check_admission.py

    r2407 r2576  
    2222pr = context.portal_registration
    2323
    24 res,psm,ds = lt.renderLayout('student_application_fe',
     24res,psm,ds = lt.renderLayout('student_application',
    2525                             'student_application',
    2626                             context,
  • WAeUP_SRP/fceokene/profiles/default/layouts/student_application.xml

    r2573 r2576  
    1818   <element value="edit"/>
    1919  </property>
    20   <property name="hidden_layout_modes"/>
     20  <property name="hidden_layout_modes">
     21   <element value="create"/>
     22  </property>
    2123  <property name="hidden_readonly_layout_modes"/>
    2224  <property name="view_format">%d/%m/%Y</property>
     
    4547  <property name="label">Email Address</property>
    4648  <property name="label_edit">Email Address</property>
    47   <property name="readonly_layout_modes"/>
    48   <property name="hidden_layout_modes"/>
     49  <property name="readonly_layout_modes">
     50  </property>
     51  <property name="hidden_layout_modes">
     52   <element value="create"/>
     53  </property>
    4954  <property name="hidden_readonly_layout_modes"/>
    5055 </widget>
     
    5661  <property name="label">Mobile Phone No</property>
    5762  <property name="label_edit">Mobile Phone No</property>
    58   <property name="readonly_layout_modes"/>
    59   <property name="hidden_layout_modes"/>
     63  <property name="readonly_layout_modes">
     64   <element value="edit"/>
     65  </property>
     66  <property name="hidden_layout_modes">
     67   <element value="create"/>
     68  </property>
    6069  <property name="hidden_readonly_layout_modes"/>
    6170 </widget>
     
    99108  <property name="label">Age</property>
    100109  <property name="label_edit">Age</property>
    101   <property name="readonly_layout_modes"/>
     110  <property name="hidden_layout_modes">
     111   <element value="create"/>
     112  </property>
    102113  <property name="readonly_layout_modes">
    103114   <element value="edit"/>
     
    115126   <element value="edit"/>
    116127  </property>
    117   <property name="hidden_layout_modes"/>
     128  <property name="hidden_layout_modes">
     129   <element value="create"/>
     130  </property>
    118131  <property name="hidden_readonly_layout_modes"/>
    119132 </widget>
     
    129142   <element value="edit"/>
    130143  </property>
    131   <property name="hidden_layout_modes"/>
     144  <property name="hidden_layout_modes">
     145   <element value="create"/>
     146  </property>
    132147  <property name="hidden_readonly_layout_modes"/>
    133148 </widget>
     
    142157   <element value="edit"/>
    143158  </property>
    144   <property name="hidden_layout_modes"/>
     159  <property name="hidden_layout_modes">
     160   <element value="create"/>
     161  </property>
    145162  <property name="hidden_readonly_layout_modes"/>
    146163 </widget>
     
    155172   <element value="edit"/>
    156173  </property>
    157   <property name="hidden_layout_modes"/>
     174  <property name="hidden_layout_modes">
     175   <element value="create"/>
     176  </property>
    158177  <property name="hidden_readonly_layout_modes"/>
    159178 </widget>
     
    168187   <element value="edit"/>
    169188  </property>
    170   <property name="hidden_layout_modes"/>
     189  <property name="hidden_layout_modes">
     190   <element value="create"/>
     191  </property>
    171192  <property name="hidden_readonly_layout_modes"/>
    172193 </widget>
     
    194215   <element value="edit"/>
    195216  </property>
    196   <property name="hidden_layout_modes"/>
     217  <property name="hidden_layout_modes">
     218   <element value="create"/>
     219  </property>
    197220  <property name="hidden_readonly_layout_modes"/>
    198221 </widget>
     
    207230   <element value="edit"/>
    208231  </property>
    209   <property name="hidden_layout_modes"/>
     232  <property name="hidden_layout_modes">
     233   <element value="create"/>
     234  </property>
    210235  <property name="hidden_readonly_layout_modes"/>
    211236 </widget>
     
    221246   <element value="edit"/>
    222247  </property>
    223   <property name="hidden_layout_modes"/>
     248  <property name="hidden_layout_modes">
     249   <element value="create"/>
     250  </property>
    224251  <property name="hidden_readonly_layout_modes"/>
    225252  <property name="display_width">1</property>
     
    236263   <element value="edit"/>
    237264  </property>
    238   <property name="hidden_layout_modes"/>
     265  <property name="hidden_layout_modes">
     266   <element value="create"/>
     267  </property>
    239268  <property name="hidden_readonly_layout_modes"/>
    240269 </widget>
     
    265294     name="help">Upload passport photograph with red background</property>
    266295  <property name="readonly_layout_modes"/>
    267   <property name="hidden_layout_modes"/>
     296  <property name="hidden_layout_modes">
     297   <element value="create"/>
     298  </property>
    268299  <property name="hidden_readonly_layout_modes"/>
    269300  <property name="size_max">204800</property>
     
    290321  <property name="view_format">%d/%m/%Y</property>
    291322  <property name="time_setting">False</property>
    292 </widget> 
    293  
    294  
     323</widget>
     324
     325
    295326<widget name="date_of_birth" meta_type="DateTime Widget">
    296327 <property name="title">Date of Birth</property>
     
    309340  <property name="view_format">%d/%m/%Y</property>
    310341  <property name="time_setting">False</property>
    311 </widget> 
    312  
    313  
     342</widget>
     343
     344
    314345 <widget name="screening_type" meta_type="String Widget">
    315346  <property name="title">Screening Type</property>
     
    326357  </property>
    327358  <property name="hidden_readonly_layout_modes"/>
    328  </widget> 
    329  
     359 </widget>
     360
    330361 <widget name="screening_score" meta_type="String Widget">
    331362  <property name="title">Screening Score</property>
     
    342373  </property>
    343374  <property name="hidden_readonly_layout_modes"/>
    344  </widget>     
    345  
     375 </widget>
     376
    346377<widget name="screening_date" meta_type="DateTime Widget">
    347378 <property name="title">Screening Date</property>
     
    360391  <property name="view_format">%d/%m/%Y</property>
    361392  <property name="time_setting">False</property>
    362 </widget> 
    363  
     393</widget>
     394
    364395
    365396  <widget name="hq_type" meta_type="Select Widget">
     
    420451    <property name="sorted">True</property>
    421452    <property name="css_class_expr">string:row</property>
    422   </widget>     
    423  
     453  </widget>
     454
    424455 <table>
    425456  <row>
     457   <cell name="jamb_reg_no" ncols="3"/>
     458  </row>
     459  <row>
    426460   <cell name="app_ac_pin" ncols="3"/>
    427461  </row>
     
    436470  </row>
    437471  <row>
    438    <cell name="jamb_reg_no" ncols="3"/>
    439   </row>
    440   <row>
    441472   <cell name="jamb_firstname" ncols="3"/>
    442473  </row>
     
    455486  <row>
    456487   <cell name="date_of_birth" ncols="3"/>
    457   </row> 
     488  </row>
    458489  <row>
    459490   <cell name="jamb_state" ncols="3"/>
     
    478509  </row>
    479510
    480  
    481  
     511
     512
    482513  <row>
    483514   <cell name="hq_type" ncols="2"/>
     
    488519  <row>
    489520   <cell name="aos" ncols="2"/>
    490   </row> 
     521  </row>
    491522
    492523  <row>
    493524   <cell name="screening_type" ncols="3"/>
    494   </row> 
     525  </row>
    495526  <row>
    496527   <cell name="screening_application_date" ncols="3"/>
     
    501532  <row>
    502533   <cell name="screening_date" ncols="3"/>
    503   </row> 
    504  
    505  
     534  </row>
     535
     536
    506537  <row>
    507538   <cell name="passport" ncols="3"/>
    508539  </row>
    509  
     540
    510541  <row>
    511542   <cell name="objection_date" ncols="3"/>
    512543  </row>
    513  
     544
    514545 </table>
    515546</object>
Note: See TracChangeset for help on using the changeset viewer.