class core.project.manager.ProjectManager(items=None, item_proxy=None, autoload=['entry_points'])[source]

Bases: openalea.core.manager.GenericManager

clear()[source]

Clear the list of projects.

clear_namespace(interpreter, project)[source]
close(name=None, proj_path=None)[source]

Close current project.

TODO:not yet implemented
create(name, projectdir=None, **kwargs)[source]

Create new project and return it.

Use:
>>> project1 = project_manager.create('project1')
>>> project2 = project_manager.create('project2', '/path/to/project')
Parameters:
  • name -- name of project to create (str)
  • path -- path where project will be saved. By default, path is the user path of all projects ($HOME/.openalea/projects/).
Returns:

Project

default()[source]
Returns:a default empty project
discover(group=None, config_name='oaproject.cfg')[source]

Discover projects from your disk and put them in self.projects.

Projects are not loaded, only metadata are.

Use:
>>> project_manager.discover()
>>> list_of_projects = project_manager.projects

To discover new projects, you can add path into self.repositories

project_manager.repositories.append('path/to/search/projects')
project_manager.discover()
generate_item_id(item)[source]
instantiate(item)[source]
load(name, projectdir=None, **kwargs)[source]

Load existing project

Use:
>>> project1 = project_manager.load('project1')
>>> project2 = project_manager.load('project2', '/path/to/project') 
Parameters:
  • name -- name of project to load. Must be a string.
  • projectdir -- path of project to load. Must be a path (see module path.py). By default, try to guess with name only. If there are various projects with the same name, return the first.
Returns:

Project

load_default()[source]
load_items(group=None)[source]
load_settings()[source]
notify(sender, event=None)[source]
patch_item(item)[source]
static search_path()[source]

Return a list of all path containing projects

update_namespace(interpreter)[source]

Definition: Update namespace

write_settings()[source]

Add a new path to the settings.

cproject[source]
defaultdir[source]
core.project.manager.get_criteria(project)[source]
core.project.manager.main()[source]

Previous topic

<no title>

Next topic

<no title>

This Page