Changeset 1510


Ignore:
Timestamp:
27 Feb 2007, 15:59:04 (18 years ago)
Author:
joachim
Message:

M profiles/default/vocabularies/verdicts.xml
added "N/A"
M skins/waeup_student/getSessionResults.py
check vocabulary for key
M skins/waeup_student/study_level_view.pt
add "Refresh List" button
AM skins/waeup_student/refresh_level.py

Location:
WAeUP_SRP/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/default/vocabularies/verdicts.xml

    r1463 r1510  
    1717 <item key="J" msgid="">temporary withdrawn from the university</item>
    1818 <item key="K" msgid="">unregistered student</item>
     19 <item key="N/A" msgid="">"N/A"</item>
    1920</object>
  • WAeUP_SRP/trunk/skins/waeup_student/getSessionResults.py

    r1497 r1510  
    66import DateTime
    77current = DateTime.DateTime()
     8try:
     9    from Products.zdb import set_trace
     10except:
     11    def set_trace():
     12        pass
    813pr = context.portal_registration
    9 
    1014request = context.REQUEST
    1115returning = context.returning_import
     
    2024    return None
    2125info = {}
    22 #from Products.zdb import set_trace
    23 #set_trace()
    2426requested_id = context.getStudentId()
    2527if requested_id and not context.isStaff() and member_id != requested_id:
     
    98100
    99101
    100 if student_from_cat.verdict:
    101     verdict_voc = context.portal_vocabularies.verdicts
     102verdict_voc = context.portal_vocabularies.verdicts
     103if verdict_voc.has_key(student_from_cat.verdict):
    102104    info['verdict'] = verdict_voc.get(student_from_cat.verdict).upper()
    103105else:
  • WAeUP_SRP/trunk/skins/waeup_student/study_level_view.pt

    r1496 r1510  
    9090                       (cpsmcat('description_confirm_delete'), )"
    9191                       />
    92                 <input tal:condition="python: 0"
    93                        type="submit" name="id_rename_form:method"
    94                        class="context" value="Change Object ID" i18n:attributes="value"
     92                <input tal:condition="python: 1"
     93                       type="submit" name="refresh_level:method"
     94                       class="context" value="Refresh List"
    9595                       />
    9696              </span>
Note: See TracChangeset for help on using the changeset viewer.