Skip to content

Commit c89f920

Browse files
committed
Fix a wrong settings variable (introduced when merging code from the yaco idsubmit branch for v3.61). Refine the error report for failures to move files from staging to repository.
- Legacy-Id: 3511
1 parent ed49393 commit c89f920

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ietf/submit/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,9 @@ def validate_files(self):
279279
if self.draft.status_id in [POSTED, POSTED_BY_SECRETARIAT]:
280280
return
281281
for ext in self.draft.file_type.split(','):
282-
source = os.path.join(settings.STAGING_PATH, '%s-%s%s' % (self.draft.filename, self.draft.revision, ext))
282+
source = os.path.join(settings.IDSUBMIT_STAGING_PATH, '%s-%s%s' % (self.draft.filename, self.draft.revision, ext))
283283
if not os.path.exists(source):
284-
self.add_warning('document_files', 'Some files are not found on staging area.<br />We recommend you that you cancel this submission and upload your files again.')
284+
self.add_warning('document_files', '"%s" were not found in the staging area.<br />We recommend you that you cancel this submission and upload your files again.' % os.path.basename(source))
285285
break
286286

287287
def validate_title(self):

0 commit comments

Comments
 (0)