コード例 #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
ファイル: __init__.py プロジェクト: eaudeweb/naaya.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')
コード例 #4
0
ファイル: __init__.py プロジェクト: pombredanne/trunk-eggs
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
ファイル: fsbundles.py プロジェクト: eaudeweb/trunk-eggs
 def load_all(self):
     # TODO flush the templates first
     register_templates_in_directory(self.templates_path, self.bundle_name)
コード例 #6
0
ファイル: __init__.py プロジェクト: eaudeweb/trunk-eggs
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')