Exemplo n.º 1
0
def portal_check():
    """
    Check missing packages for portal.buildout
    """

    tasks = bungeni.PortalTasks()
    __check(tasks)
Exemplo n.º 2
0
def portal_setup():
    """
    Checkout and bootstrap portal source
    """

    tasks = bungeni.PortalTasks()
    tasks.setup()
Exemplo n.º 3
0
def portal_build_opt():
    """
    Build the portal with (-N)
    """

    tasks = bungeni.PortalTasks()
    tasks.build_opt()
Exemplo n.º 4
0
def portal_bootstrap():
    """
    Bootstrap the installation
    """

    tasks = bungeni.PortalTasks()
    tasks.bootstrap_instance()
Exemplo n.º 5
0
def portal_build():
    """
    Build the portal
    """

    tasks = bungeni.PortalTasks()
    tasks.build()
Exemplo n.º 6
0
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()
Exemplo n.º 7
0
def portal_install():
    """
    Setup and builds the portal
    """

    tasks = bungeni.PortalTasks()
    tasks.setup()
    tasks.local_config()
    tasks.build()
    enable_country_theme()
Exemplo n.º 8
0
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()
Exemplo n.º 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()
Exemplo n.º 10
0
def portal_update():
    """
    Update the portal
    """
    tasks = bungeni.PortalTasks()
    tasks.update()
Exemplo n.º 11
0
def portal_update(version="default"):
    """
    Update the portal
    """
    tasks = bungeni.PortalTasks()
    tasks.update(version)