diff options
author | Tobias Brox <tobias@redpill-linpro.com> | 2016-05-02 17:30:24 +0200 |
---|---|---|
committer | Tobias Brox <tobias@redpill-linpro.com> | 2016-05-02 17:30:24 +0200 |
commit | c1a635b1f6342d64b5b9afd916a47c889f917252 (patch) | |
tree | 8fa61be73f2c6445a9236ddc15920f3bc5bbd730 | |
parent | 4f2020b9f3d04c222da4356bb472f60030ed9ce7 (diff) | |
download | calendar-cli-c1a635b1f6342d64b5b9afd916a47c889f917252.zip |
not sure if object_by_uid is completely supported without the comp_filter on all servers. This was done as a 'hack' allowing todo items to be deleted without adding explicit code for it in calendar-cli
-rwxr-xr-x | calendar-cli.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/calendar-cli.py b/calendar-cli.py index e2778e8..60859f5 100755 --- a/calendar-cli.py +++ b/calendar-cli.py @@ -301,11 +301,7 @@ def calendar_add(caldav_conn, args): def calendar_delete(caldav_conn, args): cal = find_calendar(caldav_conn, args) if args.event_uid: - ## TODO: backwards compatibility hack, and/or caldav API in flux hack. Should go away at some point. - if hasattr(cal, 'object_by_uid'): - event = cal.object_by_uid(args.event_uid) - else: - event = cal.event_by_uid(args.event_uid) + event = cal.event_by_uid(args.event_uid) elif args.event_url: event = cal.event_by_url(args.event_url) elif args.event_timestamp: |