Changeset 4525
- Timestamp:
- 31 Aug 2009, 08:55:31 (15 years ago)
- Location:
- WAeUP_SRP/trunk
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/Upload.py
r4392 r4525 122 122 data = open(importer.pending_path).read() 123 123 return importer.pending_fn,data 124 125 security.declareProtected(ModifyPortalContent,"getData") ###( 126 def getData(self): 127 """return data""" 128 data_path = "%s/import/%s" % (i_home,self.filename) 129 data = open(data_path).read() 130 return self.filename,data 124 131 125 security.declareProtected(ModifyPortalContent,"get Pending") ###(132 security.declareProtected(ModifyPortalContent,"getErrors") ###( 126 133 def getErrors(self): 127 134 """return import_errors""" -
WAeUP_SRP/trunk/skins/waeup_upload/uploads_form.pt
r4120 r4525 47 47 /> 48 48 </td> 49 <td tal:condition="nothing"> <a href="view" tal:attributes="href string:${row/url}"> <span tal:content="row/id" /></a> </td>50 <td tal:content="string:${row/id}.csv"></td>49 50 <td> <a href="view" tal:attributes="href string:${row/url}/download_data"> <span tal:content="string:${row/id}.csv" /> </a></td> 51 51 <td> 52 52 <select name="import_layout:record" tal:attributes="name string:${row/id}.import_layout:record"> … … 151 151 /> 152 152 </td> 153 <td tal:condition="nothing"> <a href="view" tal:attributes="href string:${row/url}"> <span tal:content="row/id" /></a> </td> 154 <td tal:content="string:${row/id}.csv" ></td> 153 <td> <a href="view" tal:attributes="href string:${row/url}/download_data"> <span tal:content="string:${row/id}.csv" /> </a></td> 155 154 <td tal:content="row/import_layout"></td> 156 155 <td tal:content="row/uploaded_by" ></td> 157 156 <td tal:content="row/upload_date" ></td> 158 <td tal:content="row/msg" ></td>159 157 </tr> 160 158 </table>
Note: See TracChangeset for help on using the changeset viewer.