Changeset 4098


Ignore:
Timestamp:
29 Apr 2009, 08:05:56 (16 years ago)
Author:
Henrik Bettermann
Message:
  • implement date fileds in portal base configuration
  • ois: use date1-3 fields for principal's signature on academic_report_slip
Location:
WAeUP_SRP/trunk
Files:
1 added
13 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/profiles/aaua/properties.xml

    r3689 r4098  
    77 <property name="static_dir" type="string"></property>
    88 <property name="institution_title" type="string">Adekunle Ajasin University</property>
     9 <property name="date1" type="date">2000/01/01 01:00</property>
     10 <property name="date2" type="date">2000/01/01 01:00</property>
     11 <property name="date3" type="date">2000/01/01 01:00</property>
     12 <property name="date4" type="date">2000/01/01 01:00</property>
     13 <property name="date5" type="date">2000/01/01 01:00</property>
     14 <property name="date6" type="date">2000/01/01 01:00</property>
    915</site>
  • WAeUP_SRP/trunk/profiles/aaue/properties.xml

    r3764 r4098  
    77 <property name="static_dir" type="string"></property>
    88 <property name="institution_title" type="string">Ambrose Alli University, Ekpoma, Nigeria</property>
     9 <property name="date1" type="date">2000/01/01 01:00</property>
     10 <property name="date2" type="date">2000/01/01 01:00</property>
     11 <property name="date3" type="date">2000/01/01 01:00</property>
     12 <property name="date4" type="date">2000/01/01 01:00</property>
     13 <property name="date5" type="date">2000/01/01 01:00</property>
     14 <property name="date6" type="date">2000/01/01 01:00</property> 
    915</site>
  • WAeUP_SRP/trunk/profiles/fceokene/properties.xml

    r3725 r4098  
    77 <property name="static_dir" type="string">static/</property>
    88 <property name="institution_title" type="string">Federal College of Education Okene</property>
     9 <property name="date1" type="date">2000/01/01 01:00</property>
     10 <property name="date2" type="date">2000/01/01 01:00</property>
     11 <property name="date3" type="date">2000/01/01 01:00</property>
     12 <property name="date4" type="date">2000/01/01 01:00</property>
     13 <property name="date5" type="date">2000/01/01 01:00</property>
     14 <property name="date6" type="date">2000/01/01 01:00</property> 
    915</site>
  • WAeUP_SRP/trunk/profiles/fceoyo/properties.xml

    r3714 r4098  
    77 <property name="static_dir" type="string">static/</property>
    88 <property name="institution_title" type="string">Federal College of Education Oyo</property>
     9 <property name="date1" type="date">2000/01/01 01:00</property>
     10 <property name="date2" type="date">2000/01/01 01:00</property>
     11 <property name="date3" type="date">2000/01/01 01:00</property>
     12 <property name="date4" type="date">2000/01/01 01:00</property>
     13 <property name="date5" type="date">2000/01/01 01:00</property>
     14 <property name="date6" type="date">2000/01/01 01:00</property> 
    915</site>
  • WAeUP_SRP/trunk/profiles/futminna/properties.xml

    r3763 r4098  
    77 <property name="static_dir" type="string"></property>
    88 <property name="institution_title" type="string">Federal University of Technology</property>
     9 <property name="date1" type="date">2000/01/01 01:00</property>
     10 <property name="date2" type="date">2000/01/01 01:00</property>
     11 <property name="date3" type="date">2000/01/01 01:00</property>
     12 <property name="date4" type="date">2000/01/01 01:00</property>
     13 <property name="date5" type="date">2000/01/01 01:00</property>
     14 <property name="date6" type="date">2000/01/01 01:00</property> 
    915</site>
  • WAeUP_SRP/trunk/profiles/nau/properties.xml

    r3815 r4098  
    1212 <property name="static_dir" type="string">static/</property>
    1313 <property name="institution_title" type="string">Nnamdi Azikiwe University</property>
     14 <property name="date1" type="date">2000/01/01 01:00</property>
     15 <property name="date2" type="date">2000/01/01 01:00</property>
     16 <property name="date3" type="date">2000/01/01 01:00</property>
     17 <property name="date4" type="date">2000/01/01 01:00</property>
     18 <property name="date5" type="date">2000/01/01 01:00</property>
     19 <property name="date6" type="date">2000/01/01 01:00</property> 
    1420</site>
  • WAeUP_SRP/trunk/profiles/ois/properties.xml

    r3689 r4098  
    77 <property name="static_dir" type="string"></property>
    88 <property name="institution_title" type="string">Olashore International School</property>
     9 <property name="date1" type="date">2008/12/12 01:00</property>
     10 <property name="date2" type="date">2009/04/04 01:00</property>
     11 <property name="date3" type="date">2000/01/01 01:00</property>
     12 <property name="date4" type="date">2000/01/01 01:00</property>
     13 <property name="date5" type="date">2000/01/01 01:00</property>
     14 <property name="date6" type="date">2000/01/01 01:00</property>
    915</site>
  • WAeUP_SRP/trunk/profiles/uniben/properties.xml

    r4011 r4098  
    1212 <property name="static_dir" type="string">static/</property>
    1313 <property name="institution_title" type="string">University of Benin</property>
     14 <property name="date1" type="date">2000/01/01 01:00</property>
     15 <property name="date2" type="date">2000/01/01 01:00</property>
     16 <property name="date3" type="date">2000/01/01 01:00</property>
     17 <property name="date4" type="date">2000/01/01 01:00</property>
     18 <property name="date5" type="date">2000/01/01 01:00</property>
     19 <property name="date6" type="date">2000/01/01 01:00</property> 
    1420</site>
  • WAeUP_SRP/trunk/profiles/unilorin/properties.xml

    r3689 r4098  
    77 <property name="static_dir" type="string"></property>
    88 <property name="institution_title" type="string">University of Ilorin</property>
     9 <property name="date1" type="date">2000/01/01 01:00</property>
     10 <property name="date2" type="date">2000/01/01 01:00</property>
     11 <property name="date3" type="date">2000/01/01 01:00</property>
     12 <property name="date4" type="date">2000/01/01 01:00</property>
     13 <property name="date5" type="date">2000/01/01 01:00</property>
     14 <property name="date6" type="date">2000/01/01 01:00</property> 
    915</site>
  • WAeUP_SRP/trunk/skins/cps_custom/config_form.pt

    r3000 r4098  
    9898        </th>
    9999        <td>
    100           <input name="static_dir" id="portal_session" value=""
     100          <input name="static_dir" id="static_dir" value=""
    101101                 tal:attributes="value pprops/static_dir" />
    102102        </td>
     
    116116        </td>
    117117      </tr>
    118 
     118      <tr>
     119        <th>
     120          <label>
     121            Date 1
     122          </label>
     123        </th>
     124        <td>
     125          <input type="text" name="date1" id="date1" value="" size="30"
     126                 tal:attributes="value pprops/date1" />
     127        </td>
     128      </tr>     
     129      <tr>
     130        <th>
     131          <label>
     132            Date 2
     133          </label>
     134        </th>
     135        <td>
     136          <input name="date2" id="date2" value="" size="30"
     137                 tal:attributes="value pprops/date2" />
     138        </td>
     139      </tr>     
     140      <tr>
     141        <th>
     142          <label>
     143            Date 3
     144          </label>
     145        </th>
     146        <td>
     147          <input name="date3" id="date3" value="" size="30"
     148                 tal:attributes="value pprops/date3" />
     149        </td>
     150      </tr>     
     151     
    119152    </table>
    120153    <p>
  • WAeUP_SRP/trunk/skins/cps_custom/reconfig.py

    r3000 r4098  
    1919    static_dir=form.get('static_dir'),
    2020    institution_title=form.get('institution_title'),
     21    date1=form.get('date1'),
     22    date2=form.get('date2'),
     23    date3=form.get('date3'),
     24    date4=form.get('date4'),
     25    date5=form.get('date5'),
     26    date6=form.get('date6'),
    2127    )
    2228
  • WAeUP_SRP/trunk/skins/waeup_ois/academic_report_slip.pt

    r4077 r4098  
    1212                                       term_complete info/complete1;
    1313                                       term options/term;
    14                                        sem_series python:(('Term One','normal1','complete1','score_calc_average_1','yga1','counter1'),
    15                                                           ('Term Two','normal2','complete2','score_calc_average_2','yga2','counter2'),
    16                                                           ('Term Three','normal3','complete3','score_calc_average_3','yga3','counter3'));
     14                                       sem_series python:(('Term One','normal1','complete1','score_calc_average_1','yga1','counter1','date1'),
     15                                                          ('Term Two','normal2','complete2','score_calc_average_2','yga2','counter2','date2'),
     16                                                          ('Term Three','normal3','complete3','score_calc_average_3','yga3','counter3','date3'));
    1717                                       sem python:sem_series[int(term)-1];
    1818                                       ">
     
    7171                <tr >
    7272                    <td width=50%>&nbsp;</td> 
    73                     <td width=20%>Date: n/a</td>
     73                    <td width=20%>Date: <span tal:content="python:info[sem[6]]"/>
     74                    </td>
    7475                    <td width=30% align='center'>
    7576                    <img tal:attributes="src string:${static_base_url}butler.jpg"  alt="Signature"/>
  • WAeUP_SRP/trunk/skins/waeup_ois/getStudyLevelInfo.py

    r4036 r4098  
    1818"""
    1919
     20import DateTime
     21
    2022info = context.waeup_tool.getAccessInfo(context)
    2123student_id = info['student_id']
     
    2426
    2527mtool = context.portal_membership
     28pprops = context.portal_properties
    2629member = mtool.getAuthenticatedMember()
    2730member_id = str(member)
     
    177180info['app_doc'] = student.application.getContent()
    178181
     182if pprops.session == info['session']:
     183    info['date1'] = DateTime.DateTime(pprops.date1).strftime('%d/%m/%Y')
     184    info['date2'] = DateTime.DateTime(pprops.date2).strftime('%d/%m/%Y')
     185    info['date3'] = DateTime.DateTime(pprops.date3).strftime('%d/%m/%Y')
     186else:
     187    info['date1'] = 'n/a'
     188    info['date2'] = 'n/a'
     189    info['date3'] = 'n/a'
     190
     191
    179192return info
Note: See TracChangeset for help on using the changeset viewer.