Esempio n. 1
0
 def post(self):
     job = Job()
     job.title = self.request.get("title")
     job.description = self.request.get("description")
     job.salary = self.request.get("salary")
     job.location = self.request.get("location")
     job.industry = self.request.get("industry")
     job.contact_phone = self.request.get("contact_phone")
     job.job_type = self.request.get("job_type")
     job.company = self.request.get("company")
     job.contact_name = self.request.get("contact_name")
     job.contact_email = self.request.get("contact_email")
     job.put()
     self.response.out.write(job.to_json("title", "is_deleted", "is_active", "is_starred", "when_created"))
Esempio n. 2
0
 def post(self):
     job = Job()
     #job.poster = users.get_current_user()
     job.title = self.request.get('title')
     job.description = self.request.get('description')
     job.salary = self.request.get('salary')
     job.location = self.request.get('location')
     job.industry = self.request.get('industry')
     job.contact_phone = self.request.get('contact_phone')
     job.job_type = self.request.get('job_type')
     job.company = self.request.get('company')
     job.contact_name = self.request.get('contact_name')
     job.contact_email = self.request.get('contact_email')
     job.is_active = True
     job.put()
     #self.response.out.write(job.to_json('title', 'is_deleted', 'is_active', 'is_starred', 'when_created'))
     self.redirect('/alumni/jobs/')