Changeset 5567


Ignore:
Timestamp:
14 Oct 2010, 06:10:25 (14 years ago)
Author:
Henrik Bettermann
Message:

student_study_level.xml: all fields read-only

admitStudents.py: change default value for entry_level

Location:
WAeUP_SRP/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/layouts/student_study_level.xml

    r4394 r5567  
    1515  <property name="label">Session</property>
    1616  <property name="label_edit">Session</property>
    17   <property name="readonly_layout_modes"/>
     17  <property name="readonly_layout_modes">
     18     <element value="edit"/>
     19     <element value="create"/>
     20  </property>
    1821  <property name="hidden_layout_modes"/>
    1922  <property name="hidden_readonly_layout_modes"/>
  • WAeUP_SRP/trunk/skins/waeup_student/admitStudents.py

    r5563 r5567  
    3838
    3939if not entry_session:
    40     entry_session  = context.getSessionId()[0]
     40    brains = aq_applicants(In('status',('admitted'),))
     41else:
     42    brains = aq_applicants(In('status',('admitted'),) & Eq('entry_session',entry_session))
    4143
    42 brains = aq_applicants(In('status',('admitted'),) & Eq('entry_session',entry_session))
    4344total = len(brains)
    4445logger.info("found %d students" % (total))
Note: See TracChangeset for help on using the changeset viewer.