referee_views.py - VamsiSangam/PhDPortal GitHub Wiki
def forgotpassword(request):
user
- User
model object.
message
- String
object.
- returns
layout_data
- list
, data about user
unread_notifications_count
- int
, count of unread notifications
- This method will send an activation link to the mail-Id of the person whose username is given.
- Control flow -
- Query for all thesis under a guide.
- For each thesis retrieve the status.
def validate_password_reset_link(request, token):
user
- User
model object.
message
- String
object.
- returns
layout_data
- list
, data about user
unread_notifications_count
- int
, count of unread notifications
- This method will validate the link which has been sent to the referee via E-mail.Validation takes place based on the token which has been received as a parameter.
- Control flow -
- Query for all thesis under a guide.
- For each thesis retrieve the status.
@login_required
def referee_change_forgot_password(request):
user
- User
model object.
message
- String
object.
- returns
layout_data
- list
, data about user
unread_notifications_count
- int
, count of unread notifications
- This method sets the new password to that particular referee and also validates whether the new password and the re-tpe password fields are same.
- Control flow -
- Query for all thesis under a guide.
- For each thesis retrieve the status.
@login_required
def referee_change_password(request):
user
- User
model object.
message
- String
object.
- returns
layout_data
- list
, data about user
unread_notifications_count
- int
, count of unread notifications
- This method changes the password of the user and validates if the old password is given correctly and also the new password and re-type password fields are same.
- Control flow -
- Query for all thesis under a guide.
- For each thesis retrieve the status.
@login_required
def referee_evaluate_synopsis(request):
user
- User
model object.
message
- String
object.
- returns
layout_data
- list
, data about user
unread_notifications_count
- int
, count of unread notifications
- This method retrieves all the pending requests of synopsis for that particular referee and renders the page to evaluate Ph.D. synopsis.
- Control flow -
- Query for all thesis under a guide.
- For each thesis retrieve the status.
@login_required
def referee_synopsis_approval(request):
user
- User
model object.
message
- String
object.
- returns
layout_data
- list
, data about user
unread_notifications_count
- int
, count of unread notifications
- This method either accepts or rejects the synopsis based on the user(referee's) request and invite the next referee according to the priority.
- Control flow -
- Query for all thesis under a guide.
- For each thesis retrieve the status.
@login_required
def referee_evaluate_thesis(request):
user
- User
model object.
message
- String
object.
- returns
layout_data
- list
, data about user
unread_notifications_count
- int
, count of unread notifications
- This method retrieves all the information of the thesis that need to be evaluated by the referee and renders the page for the referee to evaluate the Ph.D. thesis.
- Control flow -
- Query for all thesis under a guide.
- For each thesis retrieve the status.
def text_escape(s):
user
- User
model object.
message
- String
object.
- returns
layout_data
- list
, data about user
unread_notifications_count
- int
, count of unread notifications
- This method escapes the characters of the string 's' which is given as a parameter because these characters may invokes an alternative interpretation.
- Control flow -
- Query for all thesis under a guide.
- For each thesis retrieve the status.
@login_required
def referee_thesis_approval(request):
user
- User
model object.
message
- String
object.
- returns
layout_data
- list
, data about user
unread_notifications_count
- int
, count of unread notifications
- This method retrieves all the responses of the user(referee's) and convert it into a pdf in a pre-defined format using latex and returns the file (pdf).
- Control flow -
- Query for all thesis under a guide.
- For each thesis retrieve the status.
@login_required
def referee_report_upload(request):
user
- User
model object.
message
- String
object.
- returns
layout_data
- list
, data about user
unread_notifications_count
- int
, count of unread notifications
- This method receives the file and stores them at a static place and change the status of the thesis accordingly.
- Control flow -
- Query for all thesis under a guide.
- For each thesis retrieve the status.
@login_required
def downloads(request):
user
- User
model object.
message
- String
object.
- returns
layout_data
- list
, data about user
unread_notifications_count
- int
, count of unread notifications
- This method just renders the page to download official documents of IIIT-Allahabad.
- Control flow -
- Query for all thesis under a guide.
- For each thesis retrieve the status.
@login_required
def referee_help_procedure(request):
user
- User
model object.
message
- String
object.
- returns
layout_data
- list
, data about user
unread_notifications_count
- int
, count of unread notifications
- This method renders the page for procedure help.
- Control flow -
- Query for all thesis under a guide.
- For each thesis retrieve the status.
@login_required
def referee_help_contacts(request):
user
- User
model object.
message
- String
object.
- returns
layout_data
- list
, data about user
unread_notifications_count
- int
, count of unread notifications
- This method renders the page for contact help.
- Control flow -
- Query for all thesis under a guide.
- For each thesis retrieve the status.