chiark / gitweb /
Remove GlobalObjectId code
authorMatthew Vernon <mv3@sanger.ac.uk>
Fri, 5 Oct 2018 09:05:51 +0000 (10:05 +0100)
committerMatthew Vernon <mv3@sanger.ac.uk>
Fri, 5 Oct 2018 09:05:51 +0000 (10:05 +0100)
Firstly, we can use item_id instead; secondly, it doesn't always
actually work :-/

gooswapper.py

index 0a8a050e9c0ca57741f188789d4ae7c7feb024ae..25a84ef647f689631b18289fff5d1f1006b60d24 100644 (file)
@@ -51,17 +51,6 @@ class ex_gcal_link(exchangelib.ExtendedProperty):
 
 exchangelib.CalendarItem.register('gcal_link',ex_gcal_link)
 
-#see docs for exchangelib.UID for why this is needed
-class GlobalObjectId(exchangelib.ExtendedProperty):
-     distinguished_property_set_id = 'Meeting'
-     property_id = 3
-     property_type = 'Binary'
-
-exchangelib.CalendarItem.register('global_object_id', GlobalObjectId)
-
-def get_ex_event_by_uid(calendar,uid):
-    return calendar.get(global_object_id=GlobalObjectId(exchangelib.UID(uid)))
-
 def get_ex_event_by_itemid(calendar,itemid):
     return calendar.get(item_id=itemid)