本文整理汇总了Python中job.Job.save方法的典型用法代码示例。如果您正苦于以下问题:Python Job.save方法的具体用法?Python Job.save怎么用?Python Job.save使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类job.Job
的用法示例。
在下文中一共展示了Job.save方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: post
# 需要导入模块: from job import Job [as 别名]
# 或者: from job.Job import save [as 别名]
def post(self):
job_code = self.get_argument('job_code')
title = self.get_argument('title')
descr = self.get_argument('descr')
kw = self.get_argument('kw')
rec_id = self.get_argument('rec_id')
loc_id = self.get_argument('loc_id')
cat_id = self.get_argument('cat_id')
cpny_id = self.get_argument('cpny_id')
try:
j = Job(job_code = job_code, title = title, descr = descr, kw = kw, rec_id = rec_id, loc_id = loc_id, cat_id = cat_id, cpny_id = cpny_id)
j.save()
self.set_status(201)
self.write('Job object created')
except:
raise web.HTTPError(409)
示例2: Location
# 需要导入模块: from job import Job [as 别名]
# 或者: from job.Job import save [as 别名]
from company import Company
from history import History
for l in [ 'Delhi', 'Bangalore', 'Mumbai', 'Pune', 'Hyderabad' ]:
loc = Location(l)
loc.save()
for c in [ 'IT/Hardware', 'IT/Software', 'Sales', 'Marketing', 'Finance', 'Management', 'ITES' ]:
cat = Cat(c)
cat.save()
for c in [ 'ABC', 'XYZ' ]:
co = Company(c)
co.save()
r = Rec(fname='Ashish',lname='Mukherjee',password='foobar',email='[email protected]', cpny_id = 1)
r.save()
j = Job(job_code = 'SSE - 1000',loc_id=1,title = 'Senior Software Engineer - Java',descr = 'Seeking mid-level Java programmer',kw = 'java',rec_id = 1,cat_id = 1,cpny_id = 1)
j.save()
j = JobSeeker(fname = 'Ashish', lname = 'Mukherjee', email = '[email protected]', phone = '8800199033', title = 'Experienced Java Engineer', resume = 'AshishMukherjee.doc', loc_id = 1, cat_id = 1, kw = 'Java', vdo = '')
j.save()
h = History(job_id = 1, rec_id = 1, cand_id = 1, comments = 'Nice resume', stage = 'WIP')
h.save()
j = Job.get_object(1)
j.set_attr({ 'title': 'SSE- Java/J2EE' })
j.save()