Views
hypha.apply.determinations.views
¶
BatchDeterminationCreateView
¶
Bases: BaseStreamForm
, CreateView
wagtail_reference_index_ignore
class-attribute
instance-attribute
¶
submission_form_class
class-attribute
instance-attribute
¶
submission_form_class = BatchDeterminationForm
template_name
class-attribute
instance-attribute
¶
from_db
classmethod
¶
Deserialize form data when loading from database.
Parameters:
-
db
–Database connection
-
field_names
–List of field names being loaded
-
values
–Values for the fields
Returns:
-
–
Instance with deserialized form data
Source code in hypha/apply/stream_forms/models.py
deserialize_form_data
classmethod
¶
Convert stored form data back into Python objects.
Parameters:
-
instance
–Form instance
-
form_data
–Raw form data from database
-
form_fields
–Form field definitions
Returns:
-
–
Deserialized form data
Source code in hypha/apply/stream_forms/models.py
get_form_fields
¶
Generate form fields with applied logic and grouping.
Parameters:
-
draft
–Whether this is a draft form. When True, fields that are not marked as ApplicationMustIncludeFieldBlock will have their required flag set to False, allowing incomplete form submissions to be saved as drafts.
-
form_data
–Existing form data
-
user
–User completing the form
Returns:
-
–
OrderedDict of form fields
Source code in hypha/apply/stream_forms/models.py
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 |
|
dispatch
¶
Source code in hypha/apply/determinations/views.py
get_action
¶
get_submissions
¶
Source code in hypha/apply/determinations/views.py
get_form_kwargs
¶
Source code in hypha/apply/determinations/views.py
check_all_submissions_are_of_same_type
¶
Checks if all the submission as the new determination form attached to it.
Or all should be using the old determination forms.
We can not create batch determination with submissions using two different type of forms.
Source code in hypha/apply/determinations/views.py
get_form_class
¶
Source code in hypha/apply/determinations/views.py
get_defined_fields
¶
get_context_data
¶
Source code in hypha/apply/determinations/views.py
form_valid
¶
Source code in hypha/apply/determinations/views.py
DeterminationCreateOrUpdateView
¶
Bases: BaseStreamForm
, CreateOrUpdateView
wagtail_reference_index_ignore
class-attribute
instance-attribute
¶
submission_form_class
class-attribute
instance-attribute
¶
submission_form_class = DeterminationModelForm
template_name
class-attribute
instance-attribute
¶
get
¶
post
¶
from_db
classmethod
¶
Deserialize form data when loading from database.
Parameters:
-
db
–Database connection
-
field_names
–List of field names being loaded
-
values
–Values for the fields
Returns:
-
–
Instance with deserialized form data
Source code in hypha/apply/stream_forms/models.py
deserialize_form_data
classmethod
¶
Convert stored form data back into Python objects.
Parameters:
-
instance
–Form instance
-
form_data
–Raw form data from database
-
form_fields
–Form field definitions
Returns:
-
–
Deserialized form data
Source code in hypha/apply/stream_forms/models.py
get_form_fields
¶
Generate form fields with applied logic and grouping.
Parameters:
-
draft
–Whether this is a draft form. When True, fields that are not marked as ApplicationMustIncludeFieldBlock will have their required flag set to False, allowing incomplete form submissions to be saved as drafts.
-
form_data
–Existing form data
-
user
–User completing the form
Returns:
-
–
OrderedDict of form fields
Source code in hypha/apply/stream_forms/models.py
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 |
|
get_object
¶
dispatch
¶
Source code in hypha/apply/determinations/views.py
back_to_submission
¶
back_to_detail
¶
get_context_data
¶
Source code in hypha/apply/determinations/views.py
get_defined_fields
¶
get_form_kwargs
¶
Source code in hypha/apply/determinations/views.py
get_form_class
¶
Source code in hypha/apply/determinations/views.py
add_proposal_form_field
¶
Source code in hypha/apply/determinations/views.py
get_success_url
¶
form_valid
¶
Source code in hypha/apply/determinations/views.py
398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 |
|
should_redirect
classmethod
¶
Source code in hypha/apply/determinations/views.py
AdminDeterminationDetailView
¶
Bases: DetailView
get_object
¶
dispatch
¶
Source code in hypha/apply/determinations/views.py
ReviewerDeterminationDetailView
¶
Bases: DetailView
get_object
¶
dispatch
¶
Source code in hypha/apply/determinations/views.py
PartnerDeterminationDetailView
¶
Bases: DetailView
get_queryset
¶
dispatch
¶
Source code in hypha/apply/determinations/views.py
CommunityDeterminationDetailView
¶
Bases: DetailView
get_queryset
¶
dispatch
¶
Source code in hypha/apply/determinations/views.py
ApplicantDeterminationDetailView
¶
Bases: DetailView
get_object
¶
dispatch
¶
Source code in hypha/apply/determinations/views.py
DeterminationDetailView
¶
Bases: ViewDispatcher
community_view
class-attribute
instance-attribute
¶
community_view = CommunityDeterminationDetailView
applicant_view
class-attribute
instance-attribute
¶
applicant_view = ApplicantDeterminationDetailView
admin_check
¶
reviewer_check
¶
partner_check
¶
community_check
¶
finance_check
¶
contracting_check
¶
applicant_check
¶
dispatch
¶
Source code in hypha/apply/utils/views.py
DeterminationEditView
¶
Bases: BaseStreamForm
, UpdateView
wagtail_reference_index_ignore
class-attribute
instance-attribute
¶
submission_form_class
class-attribute
instance-attribute
¶
submission_form_class = DeterminationModelForm
template_name
class-attribute
instance-attribute
¶
from_db
classmethod
¶
Deserialize form data when loading from database.
Parameters:
-
db
–Database connection
-
field_names
–List of field names being loaded
-
values
–Values for the fields
Returns:
-
–
Instance with deserialized form data
Source code in hypha/apply/stream_forms/models.py
deserialize_form_data
classmethod
¶
Convert stored form data back into Python objects.
Parameters:
-
instance
–Form instance
-
form_data
–Raw form data from database
-
form_fields
–Form field definitions
Returns:
-
–
Deserialized form data
Source code in hypha/apply/stream_forms/models.py
get_form_fields
¶
Generate form fields with applied logic and grouping.
Parameters:
-
draft
–Whether this is a draft form. When True, fields that are not marked as ApplicationMustIncludeFieldBlock will have their required flag set to False, allowing incomplete form submissions to be saved as drafts.
-
form_data
–Existing form data
-
user
–User completing the form
Returns:
-
–
OrderedDict of form fields
Source code in hypha/apply/stream_forms/models.py
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 |
|
get_context_data
¶
Source code in hypha/apply/determinations/views.py
get_defined_fields
¶
get_form_kwargs
¶
Source code in hypha/apply/determinations/views.py
get_form_class
¶
Source code in hypha/apply/determinations/views.py
form_valid
¶
Source code in hypha/apply/determinations/views.py
get_form_for_stages
¶
Source code in hypha/apply/determinations/views.py
get_form_for_stage
¶
Source code in hypha/apply/determinations/views.py
get_fields_for_stages
¶
Source code in hypha/apply/determinations/views.py
get_fields_for_stage
¶
Source code in hypha/apply/determinations/views.py
outcome_choices_for_phase
¶
Outcome choices correspond to Phase transitions. We need to filter out non-matching choices. i.e. a transition to In Review is not a determination, while Needs more info or Rejected are.