MCPcopy Create free account
hub / github.com/hunvreus/devpush / AllowlistAddForm

Class AllowlistAddForm

app/forms/admin.py:26–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25
26class AllowlistAddForm(StarletteForm):
27 type = SelectField(
28 _l("Type"),
29 choices=[
30 ("email", _l("Email")),
31 ("domain", _l("Domain")),
32 ("pattern", _l("Pattern (regex)")),
33 ],
34 validators=[DataRequired()],
35 )
36 value = StringField(_l("Value"), validators=[DataRequired()])
37 submit = SubmitField(_l("Add"), name="allowlist_add")
38
39
40class AllowlistDeleteForm(StarletteForm):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected