Ejemplo n.º 1
0
    def get(self, id):
        job = ComJob.mc_get(id)
        if job and job.com_id == self.zsite_id:
            needs = job.needs
            self.render(
                errtip=Errtip(),
                title=job.title,
                kinds=job_kind_by_job_id(job.id),
                job_type=job_type_by_job_id(job.id),

                txt=needs.txt,
                stock_option=needs.stock_option,
                priority=needs.priority,
                require=needs.require,
                welfare=needs.welfare,

                salary_type=job.salary_type,
                salary1=job.salary_from,
                salary2=job.salary_to,
                dead_line=90,
                quota=job.quota,
                job=job,
                addr=job_pid_by_job_id(job.id)
            )
        else:
            return self.redirect('/job/admin')
Ejemplo n.º 2
0
 def get(self, id):
     job = ComJob.mc_get(id)
     if job.state >= JOB_CLOSE:
         return self.render(job=job,
                            com_id=self.zsite_id,
                            current_user_id=self.current_user_id)
     else:
         self.redirect('/')
Ejemplo n.º 3
0
 def get(self, id):
     job = ComJob.mc_get(id)
     if job and job.com_id == self.zsite_id:
         needs = job.needs
         self.render(errtip=Errtip(),
                     title=job.title,
                     kinds=job_kind_by_job_id(job.id),
                     job_type=job_type_by_job_id(job.id),
                     txt=needs.txt,
                     stock_option=needs.stock_option,
                     priority=needs.priority,
                     require=needs.require,
                     welfare=needs.welfare,
                     salary_type=job.salary_type,
                     salary1=job.salary_from,
                     salary2=job.salary_to,
                     dead_line=90,
                     quota=job.quota,
                     job=job,
                     addr=job_pid_by_job_id(job.id))
     else:
         return self.redirect('/job/admin')
Ejemplo n.º 4
0
 def get(self, id):
     job = ComJob.mc_get(id)
     if job.state >= JOB_CLOSE:
         return self.render(job=job, com_id=self.zsite_id, current_user_id=self.current_user_id)
     else:
         self.redirect('/')
Ejemplo n.º 5
0
 def post(self, id):
     job = ComJob.mc_get(id)
     if job and job.com_id == self.zsite_id:
         self._job_save(job)
     else:
         return self.redirect('/job/admin')
Ejemplo n.º 6
0
 def post(self, id):
     job = ComJob.mc_get(id)
     if job and job.com_id == self.zsite_id:
         self._job_save(job)
     else:
         return self.redirect('/job/admin')