Skip to content

Clean schedule method #7

@adamcik

Description

@adamcik

''schedule()'' in [source:trunk/plan/common/views.py#L160] is currently by far the largest function in the entire application.

Firstly the code should be split into three parts, ''schedule_common()'', ''schedule'' and ''schedule_advanced''. Common should be called by the other two and return a dictionary with all data that both methods need. ''schedule'' will simply use these directly to return a template response, will advanced will collect some more data and setup some forms before doing the same.

Furthermore which variables get passed to the template should be cleaned up.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions