Changeset 3326


Ignore:
Timestamp:
12 Mar 2008, 22:28:34 (17 years ago)
Author:
Henrik Bettermann
Message:

some beautifying

Location:
WAeUP_SRP/base
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/WAeUPImport.py

    r3325 r3326  
    103103            info = {}
    104104            info['imported_from'] = ''
    105             info['import_line_nr'] = 0
     105            info['import_record_no'] = 0
    106106            info['imported_by'] = self.imported_by
    107107            info['import_date'] = self.import_date.strftime("%d/%m/%y %H:%M:%S")
  • WAeUP_SRP/base/WAeUPTool.py

    r3325 r3326  
    15641564            data_string = ", ".join("%s: %s" % (k,v) for k,v in mapping.items())
    15651565            info['error'] = error
    1566             info['import_line_nr'] = count + 1
     1566            info['import_record_no'] = count + 1
    15671567            mapping.update(info)
    15681568            log_list = []
  • WAeUP_SRP/base/skins/waeup_upload/download_errors.py

    r3325 r3326  
    1919request = context.REQUEST
    2020setheader = request.RESPONSE.setHeader
    21 set_trace()
     21#set_trace()
    2222data = context.getContent()['getErrors']()
    2323filename = context.getId().replace('.csv','_errors.csv')
  • WAeUP_SRP/base/skins/waeup_upload/uploads_form.pt

    r3325 r3326  
    9292                <td colspan="3" tal:content="python: key[2]" />
    9393              </tr>
     94             
     95             
     96              <tr>
     97                <td>&nbsp;</td>
     98                <td>&nbsp;</td>
     99                <td>&nbsp;</td>
     100                <td colspan="3">&nbsp;</td>
     101              </tr>             
     102             
     103             
    94104            </span>
    95105            </table>
    96106         
    97           <br />
    98107         
    99108          <font color='red'>Please see error message for further information. If there are errors in the headline of the import file
     
    180189          <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content">     
    181190            <tr>
    182               <th>Download</th>
    183191              <th>File in Archive</th>
    184192              <th>Data Layout</th>
     
    188196              <th>Import Date</th>
    189197              <th>Message</th>
     198              <th>Downloads</th>
    190199            </tr>           
    191200            <tr tal:repeat="row info/imported"
    192201                tal:attributes="class python:test(repeat['row'].even(), 'even ajaxtd', 'odd ajaxtd')">
    193               <td> <a href="view" tal:attributes="href string:${row/url}/download_pending">pending</a> <br />
    194                               <a href="view" tal:attributes="href string:${row/url}/download_errors">errors</a>  </td>
    195202              <td tal:content="string:${row/id}.done" ></td>
    196203              <td tal:content="row/import_layout"></td>
     
    200207              <td tal:content="row/import_date" ></td>
    201208              <td tal:content="row/msg"></td>
     209              <td nowrap> <a href="view" tal:attributes="href string:${row/url}/download_pending">all pendings</a> <br /><br />
     210                              <a href="view" tal:attributes="href string:${row/url}/download_errors">only errors</a>  </td>
    202211            </tr>
    203212          </table>
Note: See TracChangeset for help on using the changeset viewer.