oarepo_config.workflows.simplified.individual
oarepo_config.workflows.simplified.individual
Individual (non-community) workflow configuration for OARepo.
IndividualWorkflow
dataclass
Bases: BaseWorkflowSettings
Workflow configuration for deposits outside of communities.
Source code in oarepo_config/workflows/simplified/individual.py
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 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 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 | |
code: str = 'individual'
class-attribute
instance-attribute
Unique code identifier for this workflow.
label: LazyString = _('Individual Submission Workflow')
class-attribute
instance-attribute
Human-readable label for this workflow.
authenticated_draft_creation: bool = True
class-attribute
instance-attribute
Allow authenticated users to create drafts in this workflow.
Overrides the base-class default of False; any authenticated user can
create a draft unless more-specific role or need restrictions are configured
via draft_creation_roles or
draft_creation_needs.
publish_without_review: bool = False
class-attribute
instance-attribute
Allow draft owners to publish without submitting a review request.
When enabled, draft owners can publish directly, subject to
publish_without_review_states.
publish_without_review_roles: list[str] = dataclasses.field(default_factory=list)
class-attribute
instance-attribute
Roles that allow a draft owner to publish without a review request.
Users must still be owners of the draft record. If the list is non-empty,
publish_without_review is ignored.
publish_without_review_needs: list[str] = dataclasses.field(default_factory=list)
class-attribute
instance-attribute
Permission needs that allow a draft owner to publish without a review request.
Users must still be owners of the draft record. If the list is non-empty,
publish_without_review is ignored.
publish_without_review_states: list[str] = dataclasses.field(default_factory=lambda: ['draft'])
class-attribute
instance-attribute
Record workflow states in which publication without review is allowed.
review_required: bool = False
class-attribute
instance-attribute
Require a review request before publication.
If publish_without_review is False and review_required
is False, records can only be published through a community workflow.
reviewer_roles: list[str] = dataclasses.field(default_factory=list)
class-attribute
instance-attribute
Roles that allow users to review and curate records.
Users with these roles are also granted read access to draft records.
reviewer_needs: list[str] = dataclasses.field(default_factory=list)
class-attribute
instance-attribute
Permission needs that allow users to review and curate records.
Users with these needs are also granted read access to draft records.
self_review_enabled: bool = False
class-attribute
instance-attribute
Allow the record owner to approve their own review request.
Normally, submitting a record for review prevents the owner from approving it
themselves. When set to True, the review request is still created on
submission, but the owner is permitted to accept it.
This is primarily useful when invenio-checks is active: checks are tied
to an open request, so the request must exist even when no external reviewer
is needed. With this option the owner can see and act on the check results
without waiting for a curator.
Has no effect when publish_without_review is True, because in
that case user can bypass the review request and publish the record directly.
record_owners_with_correct_roles(record_owner_generator: RecordOwners) -> list[Generator]
Return the record owner generator with the correct roles/needs.