Пример #1
0
    def _snarf_dates_from_olprops(self, olpd):
        d = self._get_olprop(olpd, mt.PR_CREATION_TIME)
        if d:
            date = utils.utc_time_to_local_ts(d)
            self.set_created(iso8601.tostring(date))

        d = self._get_olprop(olpd, mt.PR_BIRTHDAY)
        if d:
            d = utils.utc_time_to_local_ts(d, ret_dt=True)
            date = utils.pytime_to_yyyy_mm_dd(d)
            self.set_birthday(date)

        a = self._get_olprop(olpd, mt.PR_WEDDING_ANNIVERSARY)
        if a:
            a = utils.utc_time_to_local_ts(a, ret_dt=True)
            date = utils.pytime_to_yyyy_mm_dd(a)
            self.set_anniv(date)
Пример #2
0
    def _snarf_dates_from_olprops (self, olpd):
        d = self._get_olprop(olpd, mt.PR_CREATION_TIME)
        if d:
            date = utils.utc_time_to_local_ts(d)
            self.set_created(iso8601.tostring(date))
        
        d = self._get_olprop(olpd, mt.PR_BIRTHDAY)
        if d:
            d = utils.utc_time_to_local_ts(d, ret_dt=True)
            date = utils.pytime_to_yyyy_mm_dd(d)
            self.set_birthday(date)

        a = self._get_olprop(olpd, mt.PR_WEDDING_ANNIVERSARY)
        if a:
            a = utils.utc_time_to_local_ts(a, ret_dt=True)
            date = utils.pytime_to_yyyy_mm_dd(a)
            self.set_anniv(date)
Пример #3
0
                tag = self.get_proptags().valu('ASYNK_PR_TASK_RECUR')
                recurr_status = props[tag]
                if recurr_status:
                    recurring += 1
            except KeyError, e:
                recurr_status = 'Not Available'

            try:
                tag = self.get_proptags().valu('ASYNK_PR_TASK_STATE')
                state = props[tag]
            except KeyError, e:
                state = 'Not Available'

            try:
                tag = self.get_proptags().valu('ASYNK_PR_TASK_DUE_DATE')
                duedate = utils.pytime_to_yyyy_mm_dd(props[tag])
            except KeyError, e:
                duedate = 'Not Available'


            if complete:
                continue

            print 'Task #%3d: Heading: %s' % (total, subject)
            print '\tEntryID   : ', base64.b64encode(entryid)
            print '\tCompleted : ', complete
            print '\tRecurring : ', recurr_status
            print '\tState     : ', state
            print '\tDue Date  : ', duedate
            print '\n'
Пример #4
0
                tag = self.get_proptags().valu('ASYNK_PR_TASK_RECUR')
                recurr_status = props[tag]
                if recurr_status:
                    recurring += 1
            except KeyError, e:
                recurr_status = 'Not Available'

            try:
                tag = self.get_proptags().valu('ASYNK_PR_TASK_STATE')
                state = props[tag]
            except KeyError, e:
                state = 'Not Available'

            try:
                tag = self.get_proptags().valu('ASYNK_PR_TASK_DUE_DATE')
                duedate = utils.pytime_to_yyyy_mm_dd(props[tag])
            except KeyError, e:
                duedate = 'Not Available'

            if complete:
                continue

            print 'Task #%3d: Heading: %s' % (total, subject)
            print '\tEntryID   : ', base64.b64encode(entryid)
            print '\tCompleted : ', complete
            print '\tRecurring : ', recurr_status
            print '\tState     : ', state
            print '\tDue Date  : ', duedate
            print '\n'

        print '===== Summary Status for Task Folder: %s ======' % self.name