- Timestamp:
- 23 Sep 2022, 13:18:58 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.edocons/trunk/src/kofacustom/edocons/applicants/browser.py
r17095 r17106 184 184 185 185 def display_fileupload(self, filename): 186 if filename[1] == 'res_stat' \ 187 and self.target is not None \ 188 and not self.target.startswith('tsc'): 186 if self.target is not None and not self.target.startswith('tsc'): 189 187 return False 190 if filename[1] == 'testimonial' \191 and self.target is not None \192 and not self.target.startswith('tsc'):193 return False194 return True195 188 196 189 @property … … 221 214 222 215 def display_fileupload(self, filename): 223 if filename[1] == 'res_stat' \ 224 and self.target is not None \ 225 and not self.target.startswith('tsc'): 216 if self.target is not None and not self.target.startswith('tsc'): 226 217 return False 227 if filename[1] == 'testimonial' \228 and self.target is not None \229 and not self.target.startswith('tsc'):230 return False231 return True232 218 233 219 @property … … 261 247 and not store.getFileByContext(self.context, attr=u'res_stat.pdf'): 262 248 return _('No statement of result pdf file uploaded.') 249 if self.target is not None \ 250 and self.target.startswith('tscf') \ 251 and not store.getFileByContext(self.context, attr=u'not_reg.pdf'): 252 return _('No notification of result pdf file uploaded.') 263 253 #if self.target is not None \ 264 254 # and self.target.startswith('tsc') \ … … 269 259 class ResultStatement(AdditionalFile): 270 260 grok.name('res_stat') 271 272 class NotificationRegistrationForm(AdditionalFile):273 grok.name('not_reg')274 261 262 class Testimonial(AdditionalFile): 263 grok.name('testimonial') 264 265 class NotificationResult(AdditionalFile): 266 grok.name('not_res') 267 268 class DocumentUploadForm(AdditionalFile): 269 grok.name('docupload') 270 275 271 class OtherDocument1(AdditionalFile): 276 grok.name('doc_1') 277 278 class OtherDocument2(AdditionalFile): 279 grok.name('doc_2') 280 281 class OtherDocument3(AdditionalFile): 282 grok.name('doc_3') 272 grok.name('doc_1') 273 274 class OtherDocument4(AdditionalFile): 275 grok.name('doc_2')
Note: See TracChangeset for help on using the changeset viewer.