예제 #1
0
from apps.service import services, Service
from .models import DriverJobRequest, Driver, DriverPayGrade
from .forms import DriverJobRequestForm, DriverForm, DriverJobMatchingForm
from django.core.urlresolvers import reverse_lazy


class DriverService(Service):
    "Class that defines the driver service."
    key = 'driver'
    weight = -10
    job_request_model = DriverJobRequest
    job_request_form = DriverJobRequestForm

    freelancer_model = Driver
    freelancer_form = DriverForm

    freelancer_additional_menu_items = [
        (reverse_lazy('drivervehicletype_list'),
         'Vehicles', 'vehicletypes')
    ]

    job_matching_form = DriverJobMatchingForm

    pay_grade_model = DriverPayGrade

services.register(DriverService)
예제 #2
0
from apps.service import services, Service
from .models import KitchenJobRequest, KitchenFreelancer, KitchenPayGrade
from .forms import (KitchenJobRequestForm, KitchenFreelancerForm,
                    KitchenJobMatchingForm)


class KitchenService(Service):
    "Class that defines the kitchen service."
    key = 'kitchen'
    weight = 5
    job_request_model = KitchenJobRequest
    job_request_form = KitchenJobRequestForm

    freelancer_model = KitchenFreelancer
    freelancer_form = KitchenFreelancerForm

    job_matching_form = KitchenJobMatchingForm

    pay_grade_model = KitchenPayGrade

services.register(KitchenService)
예제 #3
0
from apps.service import services, Service
from .models import CleanerJobRequest, Cleaner, CleanerPayGrade
from .forms import CleanerJobRequestForm, CleanerForm
from apps.booking.forms import JobMatchingForm


class CleanerService(Service):
    "Class that defines the cleaner service."
    key = 'cleaner'
    weight = 10
    job_request_model = CleanerJobRequest
    job_request_form = CleanerJobRequestForm

    freelancer_model = Cleaner
    freelancer_form = CleanerForm

    job_matching_form = JobMatchingForm

    pay_grade_model = CleanerPayGrade


services.register(CleanerService)
예제 #4
0
from apps.service import services, Service
from .models import DriverJobRequest, Driver, DriverPayGrade
from .forms import DriverJobRequestForm, DriverForm, DriverJobMatchingForm
from django.core.urlresolvers import reverse_lazy


class DriverService(Service):
    "Class that defines the driver service."
    key = 'driver'
    weight = -10
    job_request_model = DriverJobRequest
    job_request_form = DriverJobRequestForm

    freelancer_model = Driver
    freelancer_form = DriverForm

    freelancer_additional_menu_items = [
        (reverse_lazy('drivervehicletype_list'), 'Vehicles', 'vehicletypes')
    ]

    job_matching_form = DriverJobMatchingForm

    pay_grade_model = DriverPayGrade


services.register(DriverService)
예제 #5
0
from apps.service import services, Service
from .models import KitchenJobRequest, KitchenFreelancer, KitchenPayGrade
from .forms import (KitchenJobRequestForm, KitchenFreelancerForm,
                    KitchenJobMatchingForm)


class KitchenService(Service):
    "Class that defines the kitchen service."
    key = 'kitchen'
    weight = 5
    job_request_model = KitchenJobRequest
    job_request_form = KitchenJobRequestForm

    freelancer_model = KitchenFreelancer
    freelancer_form = KitchenFreelancerForm

    job_matching_form = KitchenJobMatchingForm

    pay_grade_model = KitchenPayGrade


services.register(KitchenService)
예제 #6
0
from apps.service import services, Service
from .models import BarJobRequest, BarFreelancer, BarPayGrade
from .forms import BarJobRequestForm, BarFreelancerForm, BarJobMatchingForm


class BarService(Service):
    "Class that defines the bar staff service."
    key = 'bar'
    weight = -5

    job_request_model = BarJobRequest
    job_request_form = BarJobRequestForm

    freelancer_model = BarFreelancer
    freelancer_form = BarFreelancerForm

    job_matching_form = BarJobMatchingForm

    pay_grade_model = BarPayGrade

services.register(BarService)
예제 #7
0
from apps.service import services, Service
from .models import WaitingJobRequest, WaitingFreelancer, WaitingPayGrade
from .forms import WaitingJobRequestForm, WaitingFreelancerForm
from apps.booking.forms import JobMatchingForm


class WaitingService(Service):
    "Class that defines the waiting staff service."
    key = 'waiting'
    weight = 1

    job_request_model = WaitingJobRequest
    job_request_form = WaitingJobRequestForm

    freelancer_model = WaitingFreelancer
    freelancer_form = WaitingFreelancerForm

    job_matching_form = JobMatchingForm

    pay_grade_model = WaitingPayGrade


services.register(WaitingService)
예제 #8
0
from apps.service import services, Service
from .models import CleanerJobRequest, Cleaner, CleanerPayGrade
from .forms import CleanerJobRequestForm, CleanerForm
from apps.booking.forms import JobMatchingForm


class CleanerService(Service):
    "Class that defines the cleaner service."
    key = 'cleaner'
    weight = 10
    job_request_model = CleanerJobRequest
    job_request_form = CleanerJobRequestForm

    freelancer_model = Cleaner
    freelancer_form = CleanerForm

    job_matching_form = JobMatchingForm

    pay_grade_model = CleanerPayGrade

services.register(CleanerService)