Changeset 587 for WAeUP_SRP/trunk


Ignore:
Timestamp:
28 Sep 2006, 22:32:26 (18 years ago)
Author:
joachim
Message:

changed layout in student_search

Location:
WAeUP_SRP/trunk
Files:
3 edited

Legend:

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

    r584 r587  
    44 <property name="layout_edit_method"></property>
    55 <property name="layout_view_method"></property>
    6  <property name="style_prefix">layout_application_</property>
     6 <property name="style_prefix">layout_search_</property>
    77 <property name="flexible_widgets"/>
    88 <property name="validate_values_expr"></property>
  • WAeUP_SRP/trunk/profiles/default/vocabularies/search_mode_voc.xml

    r584 r587  
    99 <item key="matric_no" msgid="">Matriculation Number</item>
    1010 <item key="jamb_id" msgid="">Jamb Id</item>
     11 <item key="review_state" msgid="">Review State</item>
    1112</object>
  • WAeUP_SRP/trunk/skins/waeup_student/searchStudents.py

    r584 r587  
    3232default = {'search_mode': 'name',
    3333        'review_state': 'admission_applied ',
    34         'search_string': 'yy'
     34        'search_string': ''
    3535        }
    3636       
     
    5555if state == " ----- ":
    5656    state = ''
     57if not term and what in ('student_edit','jamb_id','name','matric_no'):
     58    return context.students_manager_view(rendered = rend,
     59                             psm = "You must specify a search string",
     60                             #psm = "%s, %s" % (psm,ds),
     61                             students = items,
     62                             is_manager = is_manager,
     63                             )
    5764onlyreview = state and what == "review_state"
    5865items = []
     
    6471elif what == "student_id":
    6572    res = catalog(portal_type='Student',
    66                   id = student_id.strip())
     73                  id = term.strip())
    6774elif what == "jamb_id":
    6875    res = catalog(portal_type='StudentApplication',
Note: See TracChangeset for help on using the changeset viewer.