コード例 #1
0
ファイル: fabfile.py プロジェクト: mohalfaki/bungeni-portal
def portal_check():
    """
    Check missing packages for portal.buildout
    """

    tasks = bungeni.PortalTasks()
    __check(tasks)
コード例 #2
0
ファイル: fabfile.py プロジェクト: mohalfaki/bungeni-portal
def portal_setup():
    """
    Checkout and bootstrap portal source
    """

    tasks = bungeni.PortalTasks()
    tasks.setup()
コード例 #3
0
ファイル: fabfile.py プロジェクト: mohalfaki/bungeni-portal
def portal_build_opt():
    """
    Build the portal with (-N)
    """

    tasks = bungeni.PortalTasks()
    tasks.build_opt()
コード例 #4
0
ファイル: fabfile.py プロジェクト: mohalfaki/bungeni-portal
def portal_bootstrap():
    """
    Bootstrap the installation
    """

    tasks = bungeni.PortalTasks()
    tasks.bootstrap_instance()
コード例 #5
0
ファイル: fabfile.py プロジェクト: mohalfaki/bungeni-portal
def portal_build():
    """
    Build the portal
    """

    tasks = bungeni.PortalTasks()
    tasks.build()
コード例 #6
0
ファイル: fabfile.py プロジェクト: mohalfaki/bungeni-portal
def portal_local_config():
    """
    Generate a local buildout configuration.
    This is relevant only if you are using a local cache
    """

    tasks = bungeni.PortalTasks()
    tasks.local_config()
コード例 #7
0
def portal_install():
    """
    Setup and builds the portal
    """

    tasks = bungeni.PortalTasks()
    tasks.setup()
    tasks.local_config()
    tasks.build()
    enable_country_theme()
コード例 #8
0
ファイル: fabfile.py プロジェクト: mohalfaki/bungeni-portal
def portal_install():
    """
    Setup and builds the portal
    Revision used is based on the 'release' parameter in setup.ini
    """

    tasks = bungeni.PortalTasks()
    tasks.setup()
    tasks.local_config()
    tasks.build()
    enable_demo_theme()
コード例 #9
0
def config_ini(which_ini):
    """
    Config deployment ini files : bungeni, plone, portal
    """

    tasks = None
    if which_ini == "bungeni":
        tasks = bungeni.BungeniTasks()
    elif which_ini == "plone":
        tasks = bungeni.PloneTasks()
    elif which_ini == "portal":
        tasks = bungeni.PortalTasks()
    else:
        abort("Nothing to do!option must be one of: bungeni, plone or portal")
        return
    tasks.deploy_ini()
    tasks.update_deployini()
コード例 #10
0
ファイル: fabfile.py プロジェクト: mohalfaki/bungeni-portal
def portal_update():
    """
    Update the portal
    """
    tasks = bungeni.PortalTasks()
    tasks.update()
コード例 #11
0
def portal_update(version="default"):
    """
    Update the portal
    """
    tasks = bungeni.PortalTasks()
    tasks.update(version)