Changeset 12241 for main/waeup.ikoba/trunk
- Timestamp:
- 15 Dec 2014, 08:13:03 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/documents/fileviewlets.py
r12240 r12241 56 56 57 57 58 class PDFScanImage( Image, UtilityView):58 class PDFScanImage(UtilityView, Image): 59 59 """Scan document. 60 60 """ … … 65 65 download_name = u'sample.pdf' 66 66 67 def render(self):67 def update(self): 68 68 if self.context.state != PUBLISHED: 69 69 self.flash(_('The document requested has not yet been published.'), 70 70 type="warning") 71 71 self.redirect(self.url(self.context)) 72 return 73 return super(PDFScanImage, self).render() 74 72 return
Note: See TracChangeset for help on using the changeset viewer.