@view_config(route_name='reset_password_with_code',
                 request_method='GET')
    def get_with_prefilled_code(self):
        code = self.request.matchdict['code']

        # If valid, we inject the supplied it into the form as a hidden field.
        # Otherwise, we 404.
        try:
            user = schemas.ResetCode().deserialize(self.schema, code)
        except colander.Invalid:
            raise httpexceptions.HTTPNotFound()
        else:
            # N.B. the form field for the reset code is called 'user'. See the
            # comment in `schemas.ResetPasswordSchema` for details.
            self.form.set_appstruct({'user': user})
            self.form.set_widgets({'user': deform.widget.HiddenWidget()})

        return {'form': self.form.render(), 'has_code': True}
returns a Deferred that fires once we've set this object up to
dataset/ETHPy150Open hypothesis/h/h/accounts/views.py/ResetPasswordController.get_with_prefilled_code--crossover with--dataset/ETHPy150Open meejah/txtorcon/txtorcon/torconfig.py/TorConfig.attach_protocol