No warning messages for partial msds
This commit is contained in:
@@ -259,7 +259,13 @@ class Converter:
|
|||||||
|
|
||||||
def is_valid_msd(self, msd):
|
def is_valid_msd(self, msd):
|
||||||
"""Verify if the Msd code is in the standard JOS set."""
|
"""Verify if the Msd code is in the standard JOS set."""
|
||||||
return msd.code in self.specifications.codes_map[msd.language]
|
code_map = self.specifications.codes_map[msd.language]
|
||||||
|
if msd.code in code_map:
|
||||||
|
return True
|
||||||
|
for msd_code in code_map:
|
||||||
|
if msd_code.startswith(msd.code):
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|
||||||
def check_valid_msd(self, msd, require_valid_flag):
|
def check_valid_msd(self, msd, require_valid_flag):
|
||||||
"""If the Msd code is not valid, raise an exception or give a warning."""
|
"""If the Msd code is not valid, raise an exception or give a warning."""
|
||||||
|
|||||||
Reference in New Issue
Block a user