Beispiel #1
0
    def document2fullcalendar(self):
        today = datetime.today()

        rec = Recruit()
        rec.idx = '8888'
        rec.url = 'http://google.com'
        rec.title = u'몰라'
        rec.end = datetime.today()
        rec.save()

        rec_info = RecruitInfo('8888')
Beispiel #2
0
def createDummy():

    connect(config.db_name_test)

    today = datetime.today()

    company1 = Company()
    company1.idx = '93920'
    company1.name = '달수네'
    company1.save()

    company2 = Company()
    company2.idx = '99910'
    company2.name = '말수네'
    company2.save()

    recruit1 = Recruit()
    recruit1.idx = '1'
    recruit1.memo = 'The idx is 1'
    recruit1.end = today + timedelta(-3)
    recruit1.save()

    recruit2 = Recruit()
    recruit2.idx = '2'
    recruit2.memo = 'The idx is 2'
    recruit2.end = today + timedelta(0)
    recruit2.save()

    recruit3 = Recruit()
    recruit3.idx = '3'
    recruit3.memo = 'The idx is 3'
    recruit3.end = today + timedelta(3)
    recruit3.save()

    recruit4 = Recruit()
    recruit4.idx = '4'
    recruit4.title = "permanent recruit"
    recruit4.memo = 'The idx is 4'
    recruit4.end = None
    recruit4.save()