def chmbe_bundle_registration(): """ Register things from skel into the Naaya bundle """ from Products.NaayaCore.FormsTool import bundlesupport templates_path = os.path.join(os.path.dirname(__file__), "skel", "forms") bundlesupport.register_templates_in_directory(templates_path, "CHMBE") bundlesupport.register_templates_in_directory(templates_path, "CHM3-BE")
def semide_bundle_registration(): """ Register things from skel into the CHM bundle """ from Products.NaayaCore.FormsTool.bundlesupport import \ register_templates_in_directory def forms_path(skel_name): return os.path.join(os.path.dirname(__file__), skel_name, 'forms') register_templates_in_directory(forms_path('skel'), 'SEMIDE')
def semide_bundle_registration(): """ Register things from skel into the CHM bundle """ from Products.NaayaCore.FormsTool.bundlesupport import \ register_templates_in_directory def forms_path(skel_name): return os.path.join(os.path.dirname(__file__), skel_name, 'forms') register_templates_in_directory(forms_path('skel'), 'SEMIDE')
def naaya_bundle_registration(): """ Register things from skel into the Naaya bundle """ from Products.NaayaCore.FormsTool import bundlesupport templates_path = os.path.join(os.path.dirname(__file__), 'skel', 'forms') bundlesupport.register_templates_in_directory(templates_path, 'Naaya')
def load_all(self): # TODO flush the templates first register_templates_in_directory(self.templates_path, self.bundle_name)
def ew_bundle_registration(): """ Register things from skel into the EW bundle """ from Products.NaayaCore.FormsTool import bundlesupport templates_path = os.path.join(os.path.dirname(__file__), 'skel', 'forms') bundlesupport.register_templates_in_directory(templates_path, 'EW')