@@ -70,8 +70,8 @@ def write_file(self, odml_document, filename):
70
70
71
71
report = validation .report ()
72
72
if report :
73
- msg += "The saved Document contains formal issues."
74
- msg += " Run 'odml.validation.Validation(doc)' to resolve them.\n %s" % report
73
+ msg += "The saved Document contains unresolved issues."
74
+ msg += " Run the Documents 'validate' method to access them.\n %s" % report
75
75
warnings .warn (msg )
76
76
77
77
with open (filename , 'w' ) as file :
@@ -164,8 +164,8 @@ def __init__(self, parser='XML', show_warnings=True):
164
164
def _validation_warning (self ):
165
165
report = Validation (self .doc ).report ()
166
166
if report :
167
- msg = "The loaded Document contains formal issues."
168
- msg += "Run 'odml.validation.Validation(doc)' to resolve them.\n %s" % report
167
+ msg = "The loaded Document contains unresolved issues."
168
+ msg += " Run the Documents 'validate' method to access them.\n %s" % report
169
169
warnings .warn (msg )
170
170
171
171
def from_file (self , file , doc_format = None ):
@@ -244,8 +244,8 @@ def from_file(self, file, doc_format=None):
244
244
for doc in self .doc :
245
245
report = Validation (doc ).report ()
246
246
if report :
247
- msg = "The loaded Document contains formal issues."
248
- msg += "Run 'odml.validation.Validation(doc)' to resolve them.\n %s" % report
247
+ msg = "The loaded Document contains unresolved issues."
248
+ msg += " Run the Documents 'validate' method to access them.\n %s" % report
249
249
warnings .warn (msg )
250
250
251
251
return self .doc
@@ -313,8 +313,8 @@ def from_string(self, string, doc_format=None):
313
313
for doc in self .doc :
314
314
report = Validation (doc ).report ()
315
315
if report :
316
- msg = "The loaded Document contains formal issues."
317
- msg += "Run 'odml.validation.Validation(doc)' to resolve them.\n %s" % report
316
+ msg = "The loaded Document contains unresolved issues."
317
+ msg += " Run the Documents 'validate' method to access them.\n %s" % report
318
318
warnings .warn (msg )
319
319
320
320
return self .doc
0 commit comments