journals.management.commands.repair_issue_path module

class journals.management.commands.repair_issue_path.Command(stdout=None, stderr=None, no_color=False, force_color=False)[source]

Bases: django.core.management.base.BaseCommand

Verify path of issue publications and deposits; if wrong, repair.

This command was written to repair the incorrect folder structure of SciPostPhys volume 5 issue 6, volume 6 issues 1, 2 and 3 (2019-08-08).

help = 'Repairs the paths of an issue, including its publications and deposits'
add_arguments(parser)[source]

Entry point for subclassed commands to add custom arguments.

handle(*args, **kwargs)[source]

The actual logic of the command. Subclasses must implement this method.