Creating and Using Projects

A project object must have a pre-existing manifest. If the project is new, the manifest must be created before the project object is instantiated. The WMS serialises the form data in the user interface to create a new manifest. In the Workspace, the manifest would have to be done programmatically, but, in general, the Workspace will already have a manifest in an existing project folder.

Once a manifest is associated the project, the project object can be instantiated using

project_name = Project(manifest, templates_dir, workspace_dir)

Thereafter, project methods can be called with code like project_name.save().