Changeset 1184 for WAeUP_SRP/trunk/skins


Ignore:
Timestamp:
3 Jan 2007, 13:30:58 (18 years ago)
Author:
joachim
Message:

optimize performance (already in custom)

Location:
WAeUP_SRP/trunk/skins/waeup_student
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_student/getStudentWorkflowInfo.py

    r1161 r1184  
    2727#info['student'] = student
    2828info['url'] = student.absolute_url()
    29 info['review_state'] = wf.getInfoFor(student,'review_state',None)
     29review_state = info['review_state'] = wf.getInfoFor(student,'review_state',None)
     30info['returning'] = review_state in  ('returning',
     31                                           'school_fee_pin_entered',
     32                                           'courses_registered',
     33                                           'courses_validated',
     34                                           )
    3035return info
  • WAeUP_SRP/trunk/skins/waeup_student/portlet_student_workflow_display.pt

    r1174 r1184  
    33           condition="context/isStudent">       
    44
    5 <table class="registration" tal:condition="python:info and info['review_state'] in ('application_pin_entered',
    6                                                                                      'admission_applied',
    7                                                                                      'pume_passed',
    8                                                                                      'pume_failed',
    9                                                                                      'admitted',
    10                                                                                      'admission_rejected',
    11                                                                                      'objection_raised',
    12                                                                                      'clearance_pin_entered',
    13                                                                                      'clearance_requested',
    14                                                                                      'cleared_and_validated',
    15                                                                                      'deferred',
    16                                                                                      )">
     5<table class="registration" tal:condition="not:info/returning">
    176  <span tal:condition="python:path('info/review_state')=='application_pin_entered'">
    187  <tr><td class="active">
     
    113102</table>
    114103
    115 <table class="registration" tal:condition="python:info and info['review_state'] in ('returning',
    116                                                                                     'school_fee_pin_entered',
    117                                                                                     'courses_registered',
    118                                                                                     'courses_validated',
    119                                                                                     )">
     104<table class="registration" tal:condition="info/returning">
    120105  <span tal:condition="python:info['review_state']=='returning'">
    121106  <tr><td class="active">
Note: See TracChangeset for help on using the changeset viewer.