jobport package

Submodules

jobport.helpers module

jobport.helpers.checkdeadline(job)[source]

Checks if the deadline has passed or not.

jobport.helpers.contact_match(strg, search=<built-in method search of _sre.SRE_Pattern object>)[source]
jobport.helpers.is_admin(user)[source]

Checks if the user object is a member of the admin group or not.

jobport.helpers.is_eligible(candidate, job)[source]

Checks if the user object is a eligible candidate for the job or not. All the logic for checking eligibility goes here!

jobport.helpers.is_member(user, group)[source]

Checks if the user object is a member of the group or not.

jobport.helpers.onlynumbers(strg, search=<built-in method search of _sre.SRE_Pattern object>)[source]
jobport.helpers.onlyspecchar_match(strg, search=<built-in method search of _sre.SRE_Pattern object>)[source]
jobport.helpers.special_match(strg, search=<built-in method search of _sre.SRE_Pattern object>)[source]

jobport.middleware module

class jobport.middleware.MyMiddleware[source]

Bases: social.apps.django_app.middleware.SocialAuthExceptionMiddleware

process_exception(request, exception)[source]

jobport.models module

class jobport.models.Batch(id, title, pg_or_not, createdon)[source]

Bases: django.db.models.base.Model

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception Batch.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

Batch.QUALIFICATION = (('G', 'UnderGraduate'), ('P', 'PostGraduate'))
Batch.get_next_by_createdon(*moreargs, **morekwargs)
Batch.get_pg_or_not_display(*moreargs, **morekwargs)
Batch.get_previous_by_createdon(*moreargs, **morekwargs)
Batch.jobbatch
Batch.objects = <django.db.models.manager.Manager object>
Batch.studentsinbatch
class jobport.models.Feedback(id, type, title, body, createdon, screenshot)[source]

Bases: django.db.models.base.Model

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

exception Feedback.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

Feedback.TYPES = (('B', 'Bug Report'), ('F', 'Feature Request'), ('C', 'Comment'))
Feedback.get_next_by_createdon(*moreargs, **morekwargs)
Feedback.get_previous_by_createdon(*moreargs, **morekwargs)
Feedback.get_type_display(*moreargs, **morekwargs)
Feedback.objects = <django.db.models.manager.Manager object>
class jobport.models.Job(id, company_name, profile, location, dateofvisit, package, selectionprocess, job_stream, category, jobtype, cgpa_min, min_tenthmarks, min_twelfthmarks, max_blacklogs, status, jobfile, createdon, deadline)[source]

Bases: django.db.models.base.Model

CATEGORYCHOICES = (('AP', 'A+'), ('A', 'A'), ('B', 'B'))
exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

Job.JOBSTREAMS = (('CSE', 'CSE'), ('ECE', 'ECE'), ('B', 'Both'))
Job.JOBTYPES = (('T', 'Technical'), ('NT', 'Non-Technical'))
exception Job.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

Job.OPENED_CLOSED = (('O', 'Open'), ('A', 'Applications Closed'), ('C', 'Closed'))
Job.applicants
Job.backs = ((0, '0'), (1, '1'), (2, '2'), (3, '3'), (4, '4+'))
Job.batch
Job.checkdeadline()[source]
Job.deadlineexpired
Job.get_category_display(*moreargs, **morekwargs)
Job.get_job_stream_display(*moreargs, **morekwargs)
Job.get_jobtype_display(*moreargs, **morekwargs)
Job.get_max_blacklogs_display(*moreargs, **morekwargs)
Job.get_next_by_createdon(*moreargs, **morekwargs)
Job.get_next_by_dateofvisit(*moreargs, **morekwargs)
Job.get_next_by_deadline(*moreargs, **morekwargs)
Job.get_previous_by_createdon(*moreargs, **morekwargs)
Job.get_previous_by_dateofvisit(*moreargs, **morekwargs)
Job.get_previous_by_deadline(*moreargs, **morekwargs)
Job.get_status_display(*moreargs, **morekwargs)
Job.objects = <django.db.models.manager.Manager object>
Job.selectedcandidates
class jobport.models.Student(user_id, rollno, name, batch_id, dob, gender, startyear_ug, passingyear_ug, startyear_pg, passingyear_pg, phone, email, email_personal, cgpa_ug, university_ug, institution_ug, passingyear_tenth, passingyear_twelfth, percentage_tenth, percentage_twelfth, cgpa_pg, university_pg, institution_pg, backlogs, work_experience, home_city, home_state, credits_completed, resume, status, createdon)[source]

Bases: django.db.models.base.Model

exception DoesNotExist

Bases: django.core.exceptions.ObjectDoesNotExist

Student.ENDYEARS = ((2007, '2007'), (2008, '2008'), (2009, '2009'), (2009, '2009'), (2010, '2010'), (2011, '2011'), (2011, '2011'), (2012, '2012'), (2013, '2013'), (2014, '2014'), (2015, '2015'), (2016, '2016'), (2017, '2017'))
exception Student.MultipleObjectsReturned

Bases: django.core.exceptions.MultipleObjectsReturned

Student.STARTYEARS = ((2003, '2003'), (2004, '2004'), (2005, '2005'), (2006, '2006'), (2007, '2007'), (2008, '2008'), (2009, '2009'), (2010, '2010'), (2011, '2011'), (2012, '2012'), (2013, '2013'), (2014, '2014'))
Student.STATUS = (('P', 'Placed'), ('N', 'Not Placed'), ('D', 'Debarred'), ('NI', 'Not Interested'))
Student.backs = ((0, '0'), (1, '1'), (2, '2'), (3, '3'), (4, '4+'))
Student.batch
Student.companyapplications
Student.genderchoices = (('M', 'Male'), ('F', 'Female'))
Student.get_backlogs_display(*moreargs, **morekwargs)
Student.get_gender_display(*moreargs, **morekwargs)
Student.get_next_by_createdon(*moreargs, **morekwargs)
Student.get_next_by_dob(*moreargs, **morekwargs)
Student.get_passingyear_pg_display(*moreargs, **morekwargs)
Student.get_passingyear_ug_display(*moreargs, **morekwargs)
Student.get_previous_by_createdon(*moreargs, **morekwargs)
Student.get_previous_by_dob(*moreargs, **morekwargs)
Student.get_startyear_pg_display(*moreargs, **morekwargs)
Student.get_startyear_ug_display(*moreargs, **morekwargs)
Student.get_status_display(*moreargs, **morekwargs)
Student.get_work_experience_display(*moreargs, **morekwargs)
Student.objects = <django.db.models.manager.Manager object>
Student.placedat
Student.user
Student.years = ((0, '0'), (1, '1'), (2, '2'), (3, '3'), (4, '4+'))

jobport.search_indexes module

jobport.storage module

class jobport.storage.OverwriteStorage(location=None, base_url=None)[source]

Bases: django.core.files.storage.FileSystemStorage

get_available_name(name)[source]

Returns a filename that’s free on the target storage system, and available for new content to be written to.

Found at http://djangosnippets.org/snippets/976/

This file storage solves overwrite on upload problem. Another proposed solution was to override the save method on the model like so (from https://code.djangoproject.com/ticket/11663):

def save(self, *args, **kwargs):
try:

this = MyModelName.objects.get(id=self.id) if this.MyImageFieldName != self.MyImageFieldName:

this.MyImageFieldName.delete()

except: pass super(MyModelName, self).save(*args, **kwargs)

jobport.tests module

class jobport.tests.JobWithdrawalCheckTestCase(methodName='runTest')[source]

Bases: django.test.testcases.TestCase

Testing if the student is allowed to apply/withdraw for the job before deadline.

setuUp()[source]
test_student_able_to_withdraw_from_a_job()[source]

jobport.urls module

jobport.views module