Пример #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")
Пример #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')
Пример #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')
Пример #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')
Пример #5
0
 def load_all(self):
     # TODO flush the templates first
     register_templates_in_directory(self.templates_path, self.bundle_name)
Пример #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')