-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
''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.