|
|
|
@ -28,21 +28,19 @@ def file_documents(request, responses, initial=False): |
|
|
|
if errors: |
|
|
|
return errors, None |
|
|
|
|
|
|
|
if settings.EFILING_HUB_ENABLED: |
|
|
|
hub = EFilingHub(initial_filing=initial) |
|
|
|
hub = EFilingHub(initial_filing=initial) |
|
|
|
|
|
|
|
post_files, documents = hub.get_files(request, responses, uploaded, generated) |
|
|
|
location = hub.get_location(responses) |
|
|
|
parties = hub.get_parties(responses) |
|
|
|
post_files, documents = hub.get_files(request, responses, uploaded, generated) |
|
|
|
location = hub.get_location(responses) |
|
|
|
parties = hub.get_parties(responses) |
|
|
|
|
|
|
|
redirect_url, msg = hub.upload(request, post_files, documents, parties, location) |
|
|
|
redirect_url, msg = hub.upload(request, post_files, documents, parties, location) |
|
|
|
|
|
|
|
if redirect_url: |
|
|
|
return errors, redirect_url |
|
|
|
|
|
|
|
if msg: |
|
|
|
return msg, None |
|
|
|
if redirect_url: |
|
|
|
return errors, redirect_url |
|
|
|
|
|
|
|
if msg: |
|
|
|
return [msg], None |
|
|
|
return None, None |
|
|
|
|
|
|
|
|
|
|
|
@ -51,7 +49,7 @@ def after_file_documents(request, initial=False): |
|
|
|
|
|
|
|
# Save dummy data for now. Eventually replace with data from CSO |
|
|
|
prefix = 'initial' if initial else 'final' |
|
|
|
_save_response(user, f'{prefix}_filing_submitted', True) |
|
|
|
_save_response(user, f'{prefix}_filing_submitted', 'True') |
|
|
|
|
|
|
|
if not initial: |
|
|
|
_save_response(user, f'final_filing_status', 'Submitted') |
|
|
|
|