Changeset 2344


Ignore:
Timestamp:
10 Oct 2007, 21:33:35 (17 years ago)
Author:
Henrik Bettermann
Message:

some fixes in Widgets.py and in application_pde.xml

DateTime? Widgets must never been required!

Location:
WAeUP_SRP
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/Widgets.py

    r2342 r2344  
    13871387            do = 0
    13881388            err ='You are not a Student. PIN neither checked nor used.'
    1389             s_logger.info('%s tried to use scratch card %s' % (s_id,pin_str))
     1389            s_logger.info('%s tried to use scratch card %s' % (member_id,pin_str))
    13901390        elif len(b) > 1 and b.find('-') > -1:
    13911391            do = 0
     
    17441744            if not os.path.exists(base_path):
    17451745                os.mkdir(base_path)
    1746             full_path = os.path.join(base_path, file_name)
     1746            full_path = os.path.join(base_path, filename)
    17471747            pict = open(full_path,"w")
    17481748            fileupload.seek(0)
     
    17861786    id_field = ""
    17871787    show_image = False
    1788    
     1788
    17891789    def getImageInfo(self, datastructure): ###(
    17901790        """Get the file info from the datastructure."""
  • WAeUP_SRP/base/skins/waeup_layout/widget_passport_render.pt

    r2243 r2344  
    2222  </span>
    2323  <tal:block condition="python: mode == 'edit'">
    24     <metal:block use-macro="here/widget_file_render/macros/file_size_max_view" />
     24   
    2525    <metal:block define-macro="image_title_edit">
    2626      <span tal:condition="python:0">
     
    3131    <img tal:condition="python:not empty_file and not session_file"
    3232         tal:replace="structure image_tag" />
     33         
    3334    <metal:block define-macro="image_edit">
    3435      <metal:block use-macro="here/widget_file_render/macros/file_edit">
     
    4546      </metal:block>
    4647    </metal:block>
     48  <metal:block use-macro="here/widget_file_render/macros/file_size_max_view" />
     49 
    4750  </tal:block>
    4851</tal:block>
  • WAeUP_SRP/fceokene/profiles/default/applicants_catalog.xml

    r2113 r2344  
    1010 <column value="lastname"/>
    1111 <column value="lga"/>
     12 <column value="jamb_age"/>
     13 <column value="jamb_state"/>
     14 <column value="jamb_lga"/>
    1215 <column value="email"/>
    1316 <column value="phone"/>
  • WAeUP_SRP/fceokene/profiles/default/layouts/application_pde.xml

    r2340 r2344  
    6868    <property name="hidden_readonly_layout_modes"/>
    6969    <property name="css_class_expr">string:row</property>
    70   </widget>   
     70  </widget>
     71
     72
    7173  <widget name="date_of_birth" meta_type="DateTime Widget">
    7274    <property name="title">Date of Birth</property>
     
    7779    <property name="label_edit">Date of Birth (dd/mm/yyyy)</property>
    7880    <property name="description"></property>
    79     <property name="is_required">True</property>
     81    <property name="is_required">False</property>
    8082    <property name="help"></property>
    8183    <property name="is_i18n">False</property>
     
    8991    <property name="hidden_readonly_layout_modes"/>
    9092    <property name="css_class_expr">string:row</property>
    91     <property name="is_i18n">False</property>
    92   </widget>
     93  </widget>
     94
     95
    9396  <widget name="department" meta_type="String Widget">
    9497    <property name="title">Department</property>
     
    388391    <property name="css_class_expr">string:row</property>
    389392  </widget>
    390   <widget name="passport" meta_type="No Zodb Image Widget">
     393  <widget name="passport" meta_type="Application Image Widget">
    391394    <property name="title">Passport Photograph</property>
    392395    <property name="fields">
     
    689692   <cell name="lastname" ncols="2"/>
    690693  </row>
    691 
    692694  <row>
    693695   <cell name="jamb_age" ncols="2"/>
     
    696698   <cell name="date_of_birth" ncols="2"/>
    697699  </row>
    698  
     700
     701
     702
     703
    699704  <row>
    700705   <cell name="jamb_state" ncols="2"/>
     
    706711   <cell name="lga" ncols="2"/>
    707712  </row>
    708    
     713
    709714  <row>
    710715   <cell name="email" ncols="2"/>
     
    734739   <cell name="passport" ncols="2"/>
    735740  </row>
     741
    736742 </table>
    737743</object>
Note: See TracChangeset for help on using the changeset viewer.