Changeset 12446 for main/waeup.ikoba/trunk/src/waeup/ikoba/documents
- Timestamp:
- 12 Jan 2015, 09:18:36 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/fileviewlets.py
r12444 r12446 43 43 tab_redirect = '#tab2' 44 44 45 @property 46 def download_filename(self): 47 return u"%s.pdf" % self.context.document_id[:9] 48 45 49 46 50 class PDFScanDisplay(FileDisplay): … … 55 59 download_name = u'file.pdf' 56 60 61 @property 62 def download_filename(self): 63 return u"%s.pdf" % self.context.document_id[:9] 64 57 65 58 66 class PDFScanImage(UtilityView, Image): … … 64 72 download_name = u'file.pdf' 65 73 74 @property 75 def download_filename(self): 76 return u"%s" % self.context.document_id[:9] 77 66 78 def update(self): 67 79 if self.context.state != PUBLISHED:
Note: See TracChangeset for help on using the changeset viewer.