Commit 5a5f8cc5 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Override om_icons to display PDF.png.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1377 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dfd5c797
......@@ -164,6 +164,19 @@ class PDFTemplate(ZopePageTemplate):
# pt = getattr(self,self.pt)
# return pt._exec(self, bound_names, args, kw)
def om_icons(self):
"""Return a list of icon URLs to be displayed by an ObjectManager"""
icons = ({'path': 'misc_/ERP5Form/PDF.png',
'alt': self.meta_type, 'title': self.meta_type},)
if not self._v_cooked:
self._cook()
if self._v_errors:
icons = icons + ({'path': 'misc_/PageTemplates/exclamation.gif',
'alt': 'Error',
'title': 'This template has an error'},)
return icons
InitializeClass(PDFTemplate)
class FSPDFTemplate(FSPageTemplate, PDFTemplate):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment