Testing caldav
This commit is contained in:
parent
dfec33a446
commit
a907ce357d
1 changed files with 11 additions and 1 deletions
|
@ -1,9 +1,13 @@
|
|||
import argparse
|
||||
import configparser
|
||||
import logging
|
||||
## dev imports
|
||||
from pprint import pp
|
||||
import sys
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from datetime import date
|
||||
import caldav
|
||||
|
||||
|
||||
|
@ -28,4 +32,10 @@ cli = caldav.davclient.DAVClient(
|
|||
)
|
||||
pri = cli.principal()
|
||||
|
||||
log.info(pri)
|
||||
for cal in pri.calendars():
|
||||
for event in cal.date_search(start=date.today()):
|
||||
pp(event)
|
||||
event.load()
|
||||
pp(event.instance)
|
||||
pp(event.instance.vevent.dtstart.value)
|
||||
sys.exit(0)
|
||||
|
|
Reference in a new issue