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

Method __init__

app/forms/storage.py:226–234  ·  view source on GitHub ↗
(
        self, request: Request, *args, associations: list["StorageProject"], **kwargs
    )

Source from the content-addressed store, hash-verified

224 confirm = StringField(_l("Confirmation"), validators=[DataRequired()])
225
226 def __init__(
227 self, request: Request, *args, associations: list["StorageProject"], **kwargs
228 ):
229 super().__init__(request, *args, **kwargs)
230 self.associations = associations
231 self._associations_by_id = {
232 str(association.id): association for association in associations
233 }
234 self.association = None
235
236 def validate_association_id(self, field):
237 association = self._associations_by_id.get(field.data)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected