Script Reference

The scripts.pfpopulate Script

Populate database and storages.

publiforge.scripts.pfpopulate.main()[source]

Main function.

class publiforge.scripts.pfpopulate.Populate(args, conf_uri)[source]

Class to populate database and storages.

all(files=())[source]

Check settings, initialize database and create storages.

Parameters:files – (list, optional) List of files on command-line.
Returns:(boolean)

The scripts.pfpbackup Script

Backup site into a XML file.

publiforge.scripts.pfbackup.main()[source]

Main function.

class publiforge.scripts.pfbackup.Backup(args)[source]

Class to backup site.

save(conf_uri, filename)[source]

Save asked elements.

Parameters:
  • conf_uri – (string) Configuration file of the instance.
  • filename – (string) Name of backup file.
Returns:

(boolean)

class publiforge.scripts.pfbackup.DummyRequest(settings)[source]

Dummy request for processors.