biweeklybudget.flaskapp.views.payperiods module¶
-
class
biweeklybudget.flaskapp.views.payperiods.PayPeriodView[source]¶ Bases:
flask.views.MethodViewRender the single PayPeriod GET /payperiod/YYYY-MM-DD view using the
payperiod.htmltemplate.-
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.MethodViewRender the top-level GET /payperiods view using
payperiods.htmltemplate-
methods= {'GET'}¶
-
-
class
biweeklybudget.flaskapp.views.payperiods.PeriodForDateView[source]¶ Bases:
flask.views.MethodViewRender 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.FormHandlerViewHandle POST /forms/sched_to_trans
-
methods= {'POST'}¶
-
-
class
biweeklybudget.flaskapp.views.payperiods.SkipSchedTransFormHandler[source]¶ Bases:
biweeklybudget.flaskapp.views.formhandlerview.FormHandlerViewHandle POST /forms/skip_sched_trans
-
methods= {'POST'}¶
-