Changeset 2140


Ignore:
Timestamp:
21 Aug 2007, 16:02:50 (17 years ago)
Author:
Henrik Bettermann
Message:

used PIN list fixed
size of reg_no widget changed

Location:
WAeUP_SRP/trunk
Files:
5 edited

Legend:

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

    r2139 r2140  
    337337    </property>
    338338    <property name="hidden_readonly_layout_modes"/>
    339     <property name="size_max">20000</property>
     339    <property name="size_max">20480</property>
    340340    <property name="display_external_editor">False</property>
    341341    <property name="display_width">100</property>
  • WAeUP_SRP/trunk/profiles/default/layouts/student_firsttime_login.xml

    r1958 r2140  
    3434  </property>
    3535  <property name="hidden_readonly_layout_modes"/>
    36   <property name="display_width">10</property>
    37   <property name="size_max">10</property>
     36  <property name="display_width">13</property>
     37  <property name="size_max">13</property>
    3838  <property name="catalog">returning_import</property>
    3939  <property name="reference">student</property>
  • WAeUP_SRP/trunk/skins/waeup_pins/batch_view.pt

    r1540 r2140  
    3737              <a tal:condition="pin/student_url" href="" tal:content="pin/student"
    3838                 tal:attributes="href pin/student_url"></a>
    39               <span tal:condition="not: pin/student_url" tal:content="pin/student" />
     39              <span tal:condition="python: not pin['student_url'] and not pin['student'].startswith('disabled')" tal:content="pin/student" />
    4040            </td>
    4141          </tr>
  • WAeUP_SRP/trunk/skins/waeup_pins/pins_view.pt

    r1064 r2140  
    2525            <td tal:content="pin/pin" />
    2626            <td tal:content="pin/student_id" />
    27             <td tal:condition="pin/student_url">
     27            <td>
    2828              <a tal:condition="pin/student_url" href="" tal:content="pin/student"
    2929                 tal:attributes="href pin/student_url"></a>
    30               <span tal:condition="not: pin/student_url" tal:content="pin/student" />
     30              <span tal:condition="python: not pin['student_url'] and not pin['student'].startswith('disabled')" tal:content="pin/student" />
    3131            </td>
    3232          </tr>
  • WAeUP_SRP/trunk/skins/waeup_pins/search_pins.py

    r1853 r2140  
    6464            else:
    6565                item['pin'] = "%s%s****%s" % (i.prefix_batch,pin[-10:-7],pin[-3:])
    66         if len(sno)==10 or '/' in sno:
     66       
     67        if sno.startswith('disabled'):
     68            item['student_url'] = None
     69            item['student_id'] = sno
     70        elif len(sno)==10 or '/' in sno:
    6771            #res = context.portal_catalog(SearchableText=sno,portal_type='StudentApplication')
    6872            res = context.students_catalog(jamb_reg_no=sno.upper())
    6973            if len(res) > 0:
    70                 if sno.startswith('disabled'):
    71                     item['student_url'] = None
    72                 else:
    73                     item['student_url'] = "%s/campus/students/%s/application" % (context.portal_url(),res[0].id)
     74                item['student_url'] = "%s/campus/students/%s/application" % (context.portal_url(),res[0].id)
    7475                item['student_id'] = res[0].id
    7576            else:
     
    7778                item['student_id'] = ''
    7879        elif sno:
    79             if sno.startswith('disabled'):
    80                 item['student_url'] = None
    81                 item['student_id'] = ''
    82             else:
    83                 item['student_url'] = '%s/campus/students/%s' % (context.portal_url(),item['student'])
    84                 item['student_id'] = item['student']
     80            item['student_url'] = '%s/campus/students/%s' % (context.portal_url(),item['student'])
     81            item['student_id'] = item['student']
    8582        else:
    8683            item['student_url'] = ''
Note: See TracChangeset for help on using the changeset viewer.