fsi.models.course_notification_template
Attributes
Classes
This is kind of a dummy db model for using as the template for |
|
Mixin providing a meta/content JSON pair. Meta is a JSON column loaded |
|
Mixin providing a meta/content JSON pair. Meta is a JSON column loaded |
|
Mixin providing a meta/content JSON pair. Meta is a JSON column loaded |
|
Mixin providing a meta/content JSON pair. Meta is a JSON column loaded |
|
Mixin providing a meta/content JSON pair. Meta is a JSON column loaded |
Functions
|
|
|
|
|
Module Contents
- fsi.models.course_notification_template.NotificationType: TypeAlias = Literal['info', 'reservation', 'reminder', 'cancellation'][source]
- fsi.models.course_notification_template.NOTIFICATION_TYPES: tuple[NotificationType, Ellipsis] = ('info', 'reservation', 'reminder', 'cancellation')[source]
- fsi.models.course_notification_template.template_type_choices(request: FsiRequest | None = None) tuple[tuple[str, str], Ellipsis] [source]
- fsi.models.course_notification_template.get_template_default(context: Any, type: str | None = None) str [source]
- fsi.models.course_notification_template.template_name(type: NotificationType | Literal['invitation'], request: FsiRequest | None = None) str [source]
- class fsi.models.course_notification_template.CourseInvitationTemplate[source]
This is kind of a dummy db model for using as the template for CourseInviteMailLayout. If needed, this can be replaced with a real model without changing too much code.
- class fsi.models.course_notification_template.CourseNotificationTemplate[source]
Bases:
onegov.core.orm.Base
,onegov.core.orm.mixins.ContentMixin
,onegov.core.orm.mixins.TimestampMixin
Mixin providing a meta/content JSON pair. Meta is a JSON column loaded with each request, content is a JSON column loaded deferred (to be shown only in the detail view).
- course_event: relationship[CourseEvent][source]
- class fsi.models.course_notification_template.InfoTemplate[source]
Bases:
CourseNotificationTemplate
Mixin providing a meta/content JSON pair. Meta is a JSON column loaded with each request, content is a JSON column loaded deferred (to be shown only in the detail view).
- class fsi.models.course_notification_template.SubscriptionTemplate[source]
Bases:
CourseNotificationTemplate
Mixin providing a meta/content JSON pair. Meta is a JSON column loaded with each request, content is a JSON column loaded deferred (to be shown only in the detail view).
- class fsi.models.course_notification_template.ReminderTemplate[source]
Bases:
CourseNotificationTemplate
Mixin providing a meta/content JSON pair. Meta is a JSON column loaded with each request, content is a JSON column loaded deferred (to be shown only in the detail view).
- class fsi.models.course_notification_template.CancellationTemplate[source]
Bases:
CourseNotificationTemplate
Mixin providing a meta/content JSON pair. Meta is a JSON column loaded with each request, content is a JSON column loaded deferred (to be shown only in the detail view).