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

Class StorageResetForm

app/forms/storage.py:119–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

117
118
119class StorageResetForm(StarletteForm):
120 name = HiddenField(_l("Storage name"), validators=[DataRequired()])
121 confirm = StringField(_l("Confirmation"), validators=[DataRequired()])
122 submit = SubmitField(_l("Reset"), name="reset_storage")
123
124 def validate_confirm(self, field):
125 if field.data != self.name.data: # type: ignore
126 raise ValidationError(_("Storage name confirmation did not match."))
127
128
129class StorageProjectForm(StarletteForm):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected