We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ecb4b4b commit 52e2a55Copy full SHA for 52e2a55
1 file changed
ted_sws/notice_packager/model/metadata.py
@@ -56,9 +56,9 @@
56
REVISION = "0"
57
58
59
-def validate_mets_type(v):
60
- if v not in METS_ACCEPTED_TYPES:
61
- raise ValueError('No such METS type: %s' % v)
+def validate_mets_type(mets_type):
+ if mets_type not in METS_ACCEPTED_TYPES:
+ raise ValueError('No such METS type: %s' % mets_type)
62
63
64
class NoticeMetadata(Metadata):
@@ -96,9 +96,9 @@ class MetsMetadata(Metadata):
96
notice_file_checksum_type: Optional[str] = METS_NOTICE_FILE_CHECKSUM_TYPE
97
98
@validator('type')
99
- def validate_notice_action_type(cls, v):
100
- validate_mets_type(v)
101
- return v
+ def validate_notice_action_type(cls, action_type):
+ validate_mets_type(action_type)
+ return action_type
102
103
104
class WorkMetadata(Metadata):
0 commit comments