This repository has been archived by the owner on Dec 31, 2021. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Remove
submission.models.ZipFile
Rewrite
submission.forms.py
using model formsa.
submission.models
now contains help text, labels for form fieldsNOTE: Making keywords bold to show in HTML is now not done.
Rewrite views corresponding to create, edit submissions using class based views
Removed functions from views.py:
a.
get_form()
,create_or_edit_submission_revision()
,get_license_text()
,new_or_edit_submission()
,edit_submission()
New view handlers:
a.
BaseSubmission()
,NewSubmission()
,EditSubmission()
NOTE: New view handlers no longer provide previewing functionality from server. Rather it is now handled with JavaScript
Create new module
views
withcreate.py
,show.py
a.
create.py
contain views to create/edit submissionb.
show.py
contain views to displayCreate new module
submission.storage
to handle storing of submissions in filesystem.Add new methods to
filestorage.dvcs_wrapper.py
a.
remove()
,purge()
,update()
NOTE: Needs to turn on
purge
extension in Mercurial (Hg) repository settings in.hgrc
file on serverMinor Changes:
from:
r'^new/(?P<item_type>[a-zA-Z]+)/$
to :
r'^(?P<item_type>[a-zA-Z]+)/new/$'
person.views.profile_page_edit
view'sitem
context is renamed toform
to support default class based views context insubmission/new-item.html