Changeset 12446 for main/waeup.ikoba/trunk/src/waeup/ikoba/customers
- Timestamp:
- 12 Jan 2015, 09:18:36 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/fileviewlets.py
r12444 r12446 92 92 mus = 1024 * 200 93 93 download_name = u'sample' 94 download_filename = download_name 94 95 tab_redirect = '#tab2' 95 96 … … 115 116 title = _(u'Sample Scan') 116 117 download_name = u'sample' 118 download_filename = download_name 117 119 118 120 … … 120 122 """Scan document. 121 123 """ 124 122 125 grok.name('sample') 123 126 grok.context(CustomerSampleDocument) 124 127 grok.require('waeup.viewCustomer') 125 128 download_name = u'sample' 129 download_filename = download_name 126 130 127 131 … … 141 145 download_name = u'sample.pdf' 142 146 tab_redirect = '#tab2' 147 148 @property 149 def download_filename(self): 150 return u"%s.pdf" % self.context.document_id[:9] 143 151 144 152 … … 161 169 download_name = u'sample.pdf' 162 170 171 @property 172 def download_filename(self): 173 return u"%s.pdf" % self.context.document_id[:9] 174 163 175 164 176 class PDFScanImage(Image): … … 170 182 download_name = u'sample.pdf' 171 183 184 @property 185 def download_filename(self): 186 return u"%s" % self.context.document_id[:9] 187 172 188 173 189 class PDFScanSlip(PDFScanDisplay):
Note: See TracChangeset for help on using the changeset viewer.