- Timestamp:
- 10 Mar 2008, 07:13:11 (17 years ago)
- Location:
- WAeUP_SRP
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/WAeUPTool.py
r3300 r3308 1412 1412 current = importer.current 1413 1413 import_date = importer.import_date 1414 imported_by = importer.imported_by 1414 1415 # 1415 1416 # not_imported … … 1636 1637 upload_doc = upload.getContent() 1637 1638 mapping = {} 1638 mapping['imported_at'] = DateTime.DateTime() 1639 #mapping['import_date'] = DateTime.DateTime() 1640 mapping['import_date'] = import_date 1641 mapping['imported_by'] = imported_by 1639 1642 mapping['import_message'] = msg 1640 1643 upload_doc.edit(mapping = mapping) -
WAeUP_SRP/base/skins/waeup_upload/uploads_form.pt
r3307 r3308 163 163 <table tal:condition="python: 1" class="contentListing" width="100%" summary="content layout" id="folder_content"> 164 164 <tr> 165 <th>File name</th>165 <th>File in Archive</th> 166 166 <th>Data Layout</th> 167 <th>By</th> 168 <th>Date</th> 167 <th>Uploaded By</th> 168 <th>Upload Date</th> 169 <th>Imported By</th> 169 170 <th>Import Date</th> 170 171 <th>Message</th> … … 177 178 <td tal:content="row/uploaded_by" ></td> 178 179 <td tal:content="row/upload_date" ></td> 179 <td tal:content="row/imported_at" ></td> 180 <td tal:content="row/imported_by" ></td> 181 <td tal:content="row/import_date" ></td> 180 182 <td tal:content="row/msg"></td> 181 183 </tr> -
WAeUP_SRP/base/skins/waeup_upload/uploads_index.py
r3307 r3308 76 76 row['imported'] = True 77 77 row['msg'] = import_message 78 if getattr(doc,'import ed_at',''):79 row['import ed_at'] = doc.imported_at.strftime("%d/%m/%y %H:%M:%S")78 if getattr(doc,'import_date',''): 79 row['import_date'] = doc.import_date.strftime("%d/%m/%y %H:%M:%S") 80 80 else: 81 row['import ed_at'] = ''81 row['import_date'] = '' 82 82 add_to = imported 83 83 else: … … 96 96 info['imported'] = imported 97 97 info['importable'] = importable 98 info['import_allowed'] = str(member) in ('admin','joachim',) 98 info['import_allowed'] = str(member) in ('admin','joachim',) 99 99 100 100 validate = "upload" in request.keys() -
WAeUP_SRP/uniben/profiles/default/layouts/upload.xml
r3297 r3308 71 71 <property name="display_external_editor">False</property> 72 72 </widget> 73 <widget name="imported_by" meta_type="String Widget"> 74 <property name="title">Imported By</property> 75 <property name="fields"> 76 <element value="imported_by"/> 77 </property> 78 <property name="label">Imported By</property> 79 <property name="label_edit">Imported By</property> 80 <property name="readonly_layout_modes"/> 81 <property name="hidden_layout_modes"> 82 <element value="create"/> 83 <element value="edit"/> 84 </property> 85 <property name="hidden_readonly_layout_modes"/> 86 <property name="css_class_expr">string:row</property> 87 </widget> 73 88 <widget name="uploaded_by" meta_type="String Widget"> 74 89 <property name="title">Uploaded By</property> … … 85 100 <property name="hidden_readonly_layout_modes"/> 86 101 <property name="css_class_expr">string:row</property> 87 </widget> 102 </widget> 88 103 <widget name="import_message" meta_type="String Widget"> 89 104 <property name="title">Import Message</property> … … 99 114 <property name="hidden_readonly_layout_modes"/> 100 115 <property name="css_class_expr">string:row</property> 101 </widget> 116 </widget> 102 117 <table> 103 118 <row> … … 114 129 </row> 115 130 <row> 131 <cell name="imported_by"/> 132 </row> 133 <row> 116 134 <cell name="import_date"/> 117 135 </row> 118 136 <row> 119 137 <cell name="import_message"/> 120 </row> 138 </row> 121 139 </table> 122 140 </object> -
WAeUP_SRP/uniben/profiles/default/schemas/upload.xml
r3292 r3308 6 6 <field name="filename" meta_type="CPS String Field"/> 7 7 <field name="uploaded_by" meta_type="CPS String Field"/> 8 <field name="imported_by" meta_type="CPS String Field"/> 8 9 <field name="import_date" meta_type="CPS DateTime Field"/> 9 10 <field name="import_message" meta_type="CPS String Field"/>
Note: See TracChangeset for help on using the changeset viewer.