Script Reference

The scripts.pfpopulate Script

Populate database and storages.

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)
publiforge.scripts.pfpopulate.main()[source]

Main function.

The scripts.pfpbackup Script

Backup site into a XML file.

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.

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

Main function.