Changeset 2344 for WAeUP_SRP/base


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/base
Files:
2 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>
Note: See TracChangeset for help on using the changeset viewer.