from Products.Five.browser import BrowserView from Products.Five.skin.standardmacros import Macros as BaseMacros from zope.app.pagetemplate import ViewPageTemplateFile class IVAWMMacros(BrowserView): template = ViewPageTemplateFile('templates/wordmaps/wordmaps_toolbox.zpt') def __getitem__(self, key): return self.template.macros[key] class IVAKBMacros(BrowserView): template = ViewPageTemplateFile('templates/main/printer_macro.zpt') def __getitem__(self, key): return self.template.macros[key] class IVAPageMacros(BrowserView): template = ViewPageTemplateFile('templates/main/page_macro.pt') def __getitem__(self, key): return self.template.macros[key] class MinimalPageMacros(BrowserView): template = ViewPageTemplateFile('templates/main/minimal_page.zpt') def __getitem__(self, key): return self.template.macros[key] class IVABlogMacros(BrowserView): template = ViewPageTemplateFile('templates/main/blog_macro.zpt') def __getitem__(self, key): return self.template.macros[key] class IVAWebtopMacros(BrowserView): template = ViewPageTemplateFile('templates/webtop/wt_macros.zpt') def __getitem__(self, key): return self.template.macros[key] class IVAMainMacros(BrowserView): template = ViewPageTemplateFile('templates/main/main_macro.zpt') def __getitem__(self, key): return self.template.macros[key] class IVACalendarMacros(BrowserView): template = ViewPageTemplateFile('templates/main/calendar.zpt') def __getitem__(self, key): return self.template.macros[key] class StandardMacros(BrowserView, BaseMacros): macro_pages = ('iva_page_macro',)