biweeklybudget.flaskapp.views.payperiods module¶
-
class
biweeklybudget.flaskapp.views.payperiods.
PayPeriodView
[source]¶ Bases:
flask.views.MethodView
Render the single PayPeriod GET /payperiod/YYYY-MM-DD view using the
payperiod.html
template.-
methods
= {'GET'}¶
-
suffix_for_period
(curr_pp, pp)[source]¶ Generate the suffix to use for the given pay period in the view
Parameters: - curr_pp (BiweeklyPayPeriod) – the current (today) pay period
- pp (BiweeklyPayPeriod) – the pay period in question
Returns: suffix for the pay period
Return type:
-
-
class
biweeklybudget.flaskapp.views.payperiods.
PayPeriodsView
[source]¶ Bases:
flask.views.MethodView
Render the top-level GET /payperiods view using
payperiods.html
template-
methods
= {'GET'}¶
-
-
class
biweeklybudget.flaskapp.views.payperiods.
PeriodForDateView
[source]¶ Bases:
flask.views.MethodView
Render a redirect from a given date to the pay period for that date
-
methods
= {'GET'}¶
-
-
class
biweeklybudget.flaskapp.views.payperiods.
SchedToTransFormHandler
[source]¶ Bases:
biweeklybudget.flaskapp.views.formhandlerview.FormHandlerView
Handle POST /forms/sched_to_trans
-
methods
= {'POST'}¶
-
-
class
biweeklybudget.flaskapp.views.payperiods.
SkipSchedTransFormHandler
[source]¶ Bases:
biweeklybudget.flaskapp.views.formhandlerview.FormHandlerView
Handle POST /forms/skip_sched_trans
-
methods
= {'POST'}¶
-