timApp.modules.feedback package#

Submodules#

timApp.modules.feedback.feedback_main module#

TIM feedback-plugin.

class timApp.modules.feedback.feedback_main.FeedbackAnswerModel(info: tim_common.pluginserver_flask.InfoModel, markup: PluginMarkup, state: Optional[PluginState], taskID: str, input: PluginInput)[source]#

Bases: tim_common.pluginserver_flask.GenericAnswerModel[timApp.modules.feedback.feedback_main.FeedbackInputModel, timApp.modules.feedback.feedback_main.FeedbackMarkupModel, timApp.modules.feedback.feedback_main.FeedbackStateModel]

class timApp.modules.feedback.feedback_main.FeedbackHtmlModel(info: tim_common.pluginserver_flask.InfoModel | None, markup: ~PluginMarkup, state: Optional[~PluginState], taskID: str, anonymous: bool, current_user_id: str, doLazy: tim_common.pluginserver_flask.Laziness, preview: bool, review: bool, targetFormat: str, taskIDExt: str, user_id: str, userPrint: bool, viewmode: bool, access: str | marshmallow.utils._Missing = <marshmallow.missing>)[source]#

Bases: tim_common.pluginserver_flask.GenericHtmlModel[timApp.modules.feedback.feedback_main.FeedbackInputModel, timApp.modules.feedback.feedback_main.FeedbackMarkupModel, timApp.modules.feedback.feedback_main.FeedbackStateModel]

get_component_html_name() str[source]#

Gets the name of the Angular component as it should be in HTML.

get_static_html() str[source]#

Renders a static version of the plugin.

This is meant to be a static lightweight lookalike version of the plugin.

class timApp.modules.feedback.feedback_main.FeedbackInputModel(user_answer: str, correct: bool, feedback: str, correct_answer: str, nosave: bool | marshmallow.utils._Missing = <marshmallow.missing>)[source]#

Bases: object

Model for the information that is sent from browser (plugin AngularJS component).

correct: bool#
correct_answer: str#
feedback: str#
nosave: bool | marshmallow.utils._Missing = <marshmallow.missing>#
user_answer: str#
class timApp.modules.feedback.feedback_main.FeedbackMarkupModel(accessDuration: int | None | marshmallow.utils._Missing = <marshmallow.missing>, accessEndText: str | None | marshmallow.utils._Missing = <marshmallow.missing>, anonymous: bool | None | marshmallow.utils._Missing = <marshmallow.missing>, answerLimit: int | None | marshmallow.utils._Missing = <marshmallow.missing>, automd: bool | None | marshmallow.utils._Missing = <marshmallow.missing>, buttonNewTask: str | None | marshmallow.utils._Missing = <marshmallow.missing>, cache: bool | None | marshmallow.utils._Missing = <marshmallow.missing>, deadline: Union[tim_common.markupmodels.PluginDateTime, datetime.datetime, NoneType, marshmallow.utils._Missing] = <marshmallow.missing>, fields: list[str] | None | marshmallow.utils._Missing = <marshmallow.missing>, floatHeader: str | None | marshmallow.utils._Missing = <marshmallow.missing>, floatSize: tuple[int, int] | None | marshmallow.utils._Missing = <marshmallow.missing>, header: str | None | marshmallow.utils._Missing = <marshmallow.missing>, headerText: str | None | marshmallow.utils._Missing = <marshmallow.missing>, hideBrowser: bool | marshmallow.utils._Missing | None = <marshmallow.missing>, initNewAnswer: str | None | marshmallow.utils._Missing = <marshmallow.missing>, lazy: bool | marshmallow.utils._Missing = <marshmallow.missing>, maxHeight: str | None | marshmallow.utils._Missing = <marshmallow.missing>, minHeight: str | None | marshmallow.utils._Missing = <marshmallow.missing>, pointsRule: tim_common.markupmodels.PointsRule | None | marshmallow.utils._Missing = <marshmallow.missing>, pointsText: str | None | marshmallow.utils._Missing = <marshmallow.missing>, postprogram: str | marshmallow.utils._Missing = <marshmallow.missing>, postoutput: str | marshmallow.utils._Missing = <marshmallow.missing>, showPoints: bool | None | marshmallow.utils._Missing = <marshmallow.missing>, starttime: Union[tim_common.markupmodels.PluginDateTime, datetime.datetime, NoneType, marshmallow.utils._Missing] = <marshmallow.missing>, showInView: bool | marshmallow.utils._Missing = <marshmallow.missing>, stem: str | None | marshmallow.utils._Missing = <marshmallow.missing>, triesText: str | None | marshmallow.utils._Missing = <marshmallow.missing>, useCurrentUser: bool | None | marshmallow.utils._Missing = <marshmallow.missing>, texafterprint: str | None | marshmallow.utils._Missing = <marshmallow.missing>, texbeforeprint: str | None | marshmallow.utils._Missing = <marshmallow.missing>, texprint: str | None | marshmallow.utils._Missing = <marshmallow.missing>, hidden_keys: list[str] | marshmallow.utils._Missing = <marshmallow.missing>, button: str | None | marshmallow.utils._Missing = <marshmallow.missing>, buttonText: str | None | marshmallow.utils._Missing = <marshmallow.missing>, allowUnsavedLeave: bool | marshmallow.utils._Missing | None = <marshmallow.missing>, disableUnchanged: bool | marshmallow.utils._Missing | None = <marshmallow.missing>, footer: str | marshmallow.utils._Missing = <marshmallow.missing>, forceBrowser: bool | marshmallow.utils._Missing | None = <marshmallow.missing>, globalField: bool | marshmallow.utils._Missing | None = <marshmallow.missing>, readonly: bool | marshmallow.utils._Missing | None = <marshmallow.missing>, lang: str | None | marshmallow.utils._Missing = <marshmallow.missing>, resetText: str | marshmallow.utils._Missing | None = <marshmallow.missing>, connectionErrorMessage: str | marshmallow.utils._Missing = <marshmallow.missing>, undo: tim_common.markupmodels.UndoInfo | marshmallow.utils._Missing | None = <marshmallow.missing>, area: str | marshmallow.utils._Missing = <marshmallow.missing>, choice: Union[Any, marshmallow.utils._Missing] = <marshmallow.missing>, correctsInRow: int | marshmallow.utils._Missing = <marshmallow.missing>, dragSource: str | marshmallow.utils._Missing = <marshmallow.missing>, matchElement: Union[Any, marshmallow.utils._Missing] = <marshmallow.missing>, nextTask: str | marshmallow.utils._Missing = <marshmallow.missing>, points_array: list[float] | marshmallow.utils._Missing = <marshmallow.missing>, practiceID: str | marshmallow.utils._Missing = <marshmallow.missing>, questionItems: Union[Any, marshmallow.utils._Missing] = <marshmallow.missing>, showAnswers: bool | marshmallow.utils._Missing = <marshmallow.missing>, shuffle: bool | marshmallow.utils._Missing = <marshmallow.missing>)[source]#

Bases: tim_common.markupmodels.GenericMarkupModel

area: str | marshmallow.utils._Missing = <marshmallow.missing>#
choice: Union[Any, marshmallow.utils._Missing] = <marshmallow.missing>#
correctsInRow: int | marshmallow.utils._Missing = <marshmallow.missing>#
dragSource: str | marshmallow.utils._Missing = <marshmallow.missing>#
matchElement: Union[Any, marshmallow.utils._Missing] = <marshmallow.missing>#
nextTask: str | marshmallow.utils._Missing = <marshmallow.missing>#
points_array: list[float] | marshmallow.utils._Missing = <marshmallow.missing>#
practiceID: str | marshmallow.utils._Missing = <marshmallow.missing>#
questionItems: Union[Any, marshmallow.utils._Missing] = <marshmallow.missing>#
showAnswers: bool | marshmallow.utils._Missing = <marshmallow.missing>#
shuffle: bool | marshmallow.utils._Missing = <marshmallow.missing>#
validate_points_array(value: list[float]) None[source]#
class timApp.modules.feedback.feedback_main.FeedbackStateModel(user_answer: str, correct: bool, feedback: str, correct_answer: str)[source]#

Bases: object

Model for the information that is stored in TIM database for each answer.

correct: bool#
correct_answer: str#
feedback: str#
user_answer: str#
timApp.modules.feedback.feedback_main.answer(args: timApp.modules.feedback.feedback_main.FeedbackAnswerModel) tim_common.pluginserver_flask.PluginAnswerResp[source]#
timApp.modules.feedback.feedback_main.render_static_feedback(m: timApp.modules.feedback.feedback_main.FeedbackHtmlModel) str[source]#
timApp.modules.feedback.feedback_main.reqs() tim_common.pluginserver_flask.PluginReqs[source]#

Module contents#