This file contains the core models for the job board application.
> Prompt:
> There are many python classes and functions in this concatenated code-file.
> Each python code file is separated by the string "!# © 2019 Websoftix (http://www.websoftix.com)!".
> Write a readme.md, separated by one h1 header for each.
> Use h2 to describe classes.
> Use h3 to describe the methods.
> For each code-file, explain the business logic it supports.
This class represents job listings on the platform.
_default_job_url
: Generates the URL for a job offerboost_job_offer
: Creates a URL for boosting a job offercreate_internal_note
: Creates an internal note for a job offernotes_for_related_partners
: Generates notes for partners related to a job offerjob_published
: Handles the publishing of job offersjob_to_fb
: Posts job offers to Facebookjob_expiration
: Manages the expiration of job offers
This class manages payouts for affiliates.
btn_register_payout
: Registers a payout for an affiliate
Business Logic: This file supports the core functionality of job posting, management, and affiliate payouts. It handles the lifecycle of job offers from creation to expiration, including integration with social media platforms.
This file manages applicant-related models.
This class represents profiles of job applicants.
This class manages search profiles for job seekers.
process_search_profiles
: Processes search profiles to find matching jobs
Business Logic: This file supports the applicant side of the job board, allowing job seekers to create profiles and save search criteria for job matching.
This file handles CSV file imports for partner data.
This class manages the upload of CSV files.
upload_csv
: Handles the upload and validation of CSV files
This class represents imported CSV files.
import_partners
: Imports partner data from CSV files
Business Logic: This file supports the bulk import of partner data via CSV files, including validation and processing of imported data.
This file manages company profiles and related data.
This class represents company profiles on the platform.
create_login_for_partner
: Creates a login for a company partnerview_login_for_partner
: Generates a view for partner login
Business Logic: This file supports the management of company profiles, including creation of user accounts for company representatives.
This file manages data related to German cities and locations.
This class represents German cities.
This class represents German federal states.
Business Logic: This file supports location-based functionality, particularly for job listings and searches within Germany.
This file extends the core HTTP handling for the application.
This class extends the HTTP request handling.
_dispatch
: Customizes the dispatch of HTTP requests
Business Logic: This file supports custom HTTP request handling, particularly for affiliate-related functionality.
This file extends the mail server functionality.
This class extends the mail server model.
Business Logic: This file supports customization of email sending, particularly increasing the size limit for SMTP passwords.
This file manages job applications.
This class represents job applications submitted by users.
Business Logic: This file supports the process of job seekers applying for positions listed on the platform.
This file manages job offers in detail.
This class represents detailed job offers.
set_classification_with_ai
: Uses AI to classify job offersset_job_posting_description_with_ai
: Uses AI to generate job descriptions
Business Logic: This file supports advanced job offer management, including AI-powered classification and description generation.
This file manages link tracking functionality.
This class handles link tracking for the platform.
convert_links
: Converts links for tracking purposes
Business Logic: This file supports link tracking functionality, particularly for email campaigns and analytics.
This file manages newsletter functionality.
This class represents newsletter recipients.
This class manages mass mailing campaigns.
create_blog_post
: Creates a blog post from a newsletter
Business Logic: This file supports newsletter management, including subscription handling and campaign execution.
This file extends the core partner model.
This class extends the partner model with additional fields and methods.
Business Logic: This file supports customization of partner data, particularly for job board-specific information.
This file manages partner titles.
This class represents partner titles.
Business Logic: This file supports the management of formal titles for partners, which is particularly relevant in German business contexts.
This file extends the core user model.
This class extends the user model with additional fields and methods.
toggle_active
: Toggles the active status of a userset_unfollow_of_related_partners
: Unfollows related partners when a user is deactivated
Business Logic: This file supports user management functionality, including handling of user deactivation.
This file extends website functionality for the job board.
This class extends the website model.
enumerate_pages
: Enumerates pages for sitemap generationget_alternate_languages
: Handles alternate language versions of pages
This class manages extended sitemap functionality.
Business Logic: This file supports SEO-related functionality, including sitemap generation and multilingual support.
This file manages user account deletion requests.
This class handles user account deletion requests.
delete_data_processor
: Processes user data deletion requests
Business Logic: This file supports GDPR compliance by providing functionality for users to request and process the deletion of their account data.