コード例 #1
0
ファイル: syncronize.py プロジェクト: hifans/kooltuo
 def __init__(self):
     print "[syncronize][__init__] start"
     self.openerp = conect.get_openerp()
     self.out_contacts = outlook_contacts()
     self.config = kooltuo_config()
     print "[syncronize][__init__] end"
コード例 #2
0
 def __init__(self):
     print "[syncronize][__init__] start"
     self.openerp = conect.get_openerp()
     self.out_contacts = outlook_contacts()
     self.config = kooltuo_config()
     print "[syncronize][__init__] end"
コード例 #3
0
# sync = syncronize()
# sync.item_sync(sync_item_type().calendar)
# sync.item_sync(sync_item_type().tasks)
# sync.item_sync(sync_item_type().contacts)

# oc = outlook_contacts()
# tl = oc.contact_list()
#
# print tl
# print type(tl)
# for i in range(1, len(tl) + 1):
#     item = tl.Item(i)
#     print item.ClassName

oc = outlook_contacts()
outlook_items = oc.search_outlook_item_by_modification_date(
    None,
    sync_item_type().contacts)  #, "contacts"
for x in outlook_items:
    x[1].Delete()
outlook_items = oc.search_outlook_item_by_modification_date(
    None,
    sync_item_type().calendar)  #, "contacts"
for x in outlook_items:
    x[1].Delete()
outlook_items = oc.search_outlook_item_by_modification_date(
    None,
    sync_item_type().tasks)  #, "contacts"
for x in outlook_items:
    x[1].Delete()
コード例 #4
0
ファイル: test.py プロジェクト: hifans/kooltuo
# sync = syncronize()
# sync.item_sync(sync_item_type().calendar)
# sync.item_sync(sync_item_type().tasks)
# sync.item_sync(sync_item_type().contacts)

# oc = outlook_contacts()
# tl = oc.contact_list()
# 
# print tl
# print type(tl)
# for i in range(1, len(tl) + 1):
#     item = tl.Item(i)    
#     print item.ClassName

oc = outlook_contacts()
outlook_items = oc.search_outlook_item_by_modification_date(None, sync_item_type().contacts) #, "contacts"
for x in outlook_items:
    x[1].Delete()
outlook_items = oc.search_outlook_item_by_modification_date(None, sync_item_type().calendar) #, "contacts"
for x in outlook_items:
    x[1].Delete()
outlook_items = oc.search_outlook_item_by_modification_date(None, sync_item_type().tasks) #, "contacts"
for x in outlook_items:
    x[1].Delete()


# sync = syncronize()
# sync.item_sync(sync_item_type().calendar)