Ejemplo n.º 1
0
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")
Ejemplo n.º 2
0
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')
Ejemplo n.º 3
0
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')
Ejemplo n.º 4
0
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')
Ejemplo n.º 5
0
 def load_all(self):
     # TODO flush the templates first
     register_templates_in_directory(self.templates_path, self.bundle_name)
Ejemplo n.º 6
0
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')