@@ -178,16 +178,16 @@ def check_tresholds(self):
178178 raise forms .ValidationError ('The total size of today\' s submission has reached the maximum size of submission per day' )
179179
180180 def check_paths (self ):
181- self .staging_path = getattr (settings , 'STAGING_PATH ' , None )
182- self .idnits = getattr (settings , 'IDNITS_PATH ' , None )
181+ self .staging_path = getattr (settings , 'IDSUBMIT_STAGING_PATH ' , None )
182+ self .idnits = getattr (settings , 'IDSUBMIT_IDNITS_BINARY ' , None )
183183 if not self .staging_path :
184- raise forms .ValidationError ('STAGING_PATH not defined on settings.py' )
184+ raise forms .ValidationError ('IDSUBMIT_STAGING_PATH not defined on settings.py' )
185185 if not os .path .exists (self .staging_path ):
186- raise forms .ValidationError ('STAGING_PATH defined on settings.py does not exist' )
186+ raise forms .ValidationError ('IDSUBMIT_STAGING_PATH defined on settings.py does not exist' )
187187 if not self .idnits :
188- raise forms .ValidationError ('IDNITS_PATH not defined on settings.py' )
188+ raise forms .ValidationError ('IDSUBMIT_IDNITS_BINARY not defined on settings.py' )
189189 if not os .path .exists (self .idnits ):
190- raise forms .ValidationError ('IDNITS_PATH defined on settings.py does not exist' )
190+ raise forms .ValidationError ('IDSUBMIT_IDNITS_BINARY defined on settings.py does not exist' )
191191
192192 def check_previous_submission (self ):
193193 filename = self .draft .filename
@@ -315,7 +315,7 @@ def save(self, request):
315315
316316 def send_confirmation_mail (self , request ):
317317 subject = 'Confirmation for Auto-Post of I-D %s' % self .draft .filename
318- from_email = settings .IDST_FROM_EMAIL
318+ from_email = settings .IDSUBMIT_FROM_EMAIL
319319 to_email = self .cleaned_data ['email' ]
320320 send_mail (request , to_email , from_email , subject , 'submit/confirm_autopost.txt' ,
321321 {'draft' : self .draft , 'domain' : Site .objects .get_current ().domain })
@@ -432,8 +432,8 @@ def get_authors(self):
432432 def move_docs (self , draft , revision ):
433433 old_revision = draft .revision
434434 for ext in draft .file_type .split (',' ):
435- source = os .path .join (settings .STAGING_PATH , '%s-%s%s' % (draft .filename , old_revision , ext ))
436- dest = os .path .join (settings .STAGING_PATH , '%s-%s%s' % (draft .filename , revision , ext ))
435+ source = os .path .join (settings .IDSUBMIT_STAGING_PATH , '%s-%s%s' % (draft .filename , old_revision , ext ))
436+ dest = os .path .join (settings .IDSUBMIT_STAGING_PATH , '%s-%s%s' % (draft .filename , revision , ext ))
437437 os .rename (source , dest )
438438
439439 def save_new_draft_info (self ):
@@ -456,8 +456,8 @@ def save(self, request):
456456
457457 def send_mail_to_secretariat (self , request ):
458458 subject = 'Manual Post Requested for %s' % self .draft .filename
459- from_email = settings .IDST_FROM_EMAIL
460- to_email = settings .IDST_TO_EMAIL
459+ from_email = settings .IDSUBMIT_FROM_EMAIL
460+ to_email = settings .IDSUBMIT_TO_EMAIL
461461 cc = [self .cleaned_data ['email' ]]
462462 cc += [i ['email' ][1 ] for i in self .authors ]
463463 if self .draft .group_acronym :
0 commit comments