Commits

Ronald Oussoren committed ff5cf13

Port CalendarStore to OSX 10.7

  • Participants
  • Parent commits 8807230

Comments (0)

Files changed (5)

File pyobjc-framework-CalendarStore/BridgeSupport/CalendarStore.bridgesupport

+<?xml version='1.0'?>
+<!DOCTYPE signatures SYSTEM "file://localhost/System/Library/DTDs/BridgeSupport.dtd">
+<signatures version='1.0'>
+  <constant name='CalAlarmActionDisplay' type='@' />
+  <constant name='CalAlarmActionEmail' type='@' />
+  <constant name='CalAlarmActionProcedure' type='@' />
+  <constant name='CalAlarmActionSound' type='@' />
+  <constant name='CalAttendeeStatusAccepted' type='@' />
+  <constant name='CalAttendeeStatusDeclined' type='@' />
+  <constant name='CalAttendeeStatusNeedsAction' type='@' />
+  <constant name='CalAttendeeStatusTentative' type='@' />
+  <constant name='CalCalendarStoreErrorDomain' type='@' />
+  <constant name='CalCalendarTypeBirthday' type='@' />
+  <constant name='CalCalendarTypeCalDAV' type='@' />
+  <constant name='CalCalendarTypeIMAP' type='@' />
+  <constant name='CalCalendarTypeLocal' type='@' />
+  <constant name='CalCalendarTypeSubscription' type='@' />
+  <constant name='CalCalendarTypeExchange' type='@' />
+  <constant name='CalCalendarsChangedExternallyNotification' type='@' />
+  <constant name='CalCalendarsChangedNotification' type='@' />
+  <constant name='CalDefaultRecurrenceInterval' type='I' type64='Q' />
+  <constant name='CalDeletedRecordsKey' type='@' />
+  <constant name='CalEventsChangedExternallyNotification' type='@' />
+  <constant name='CalEventsChangedNotification' type='@' />
+  <constant name='CalInsertedRecordsKey' type='@' />
+  <constant name='CalSenderProcessIDKey' type='@' />
+  <constant name='CalTasksChangedExternallyNotification' type='@' />
+  <constant name='CalTasksChangedNotification' type='@' />
+  <constant name='CalUpdatedRecordsKey' type='@' />
+  <constant name='CalUserUIDKey' type='@' />
+  <enum name='CalCalendarNotEditableError' value='1025' />
+  <enum name='CalCalendarNotInRepository' value='1027' />
+  <enum name='CalCalendarTitleNotUniqueError' value='1028' />
+  <enum name='CalDateInvalidError' value='1026' />
+  <enum name='CalPriorityHigh' value='1' />
+  <enum name='CalPriorityLow' value='9' />
+  <enum name='CalPriorityMedium' value='5' />
+  <enum name='CalPriorityNone' value='0' />
+  <enum name='CalRecurrenceDaily' value='0' />
+  <enum name='CalRecurrenceMonthly' value='2' />
+  <enum name='CalRecurrenceWeekly' value='1' />
+  <enum name='CalRecurrenceYearly' value='3' />
+  <enum name='CalSpanAllEvents' value='2' />
+  <enum name='CalSpanFutureEvents' value='1' />
+  <enum name='CalSpanThisEvent' value='0' />
+  <class name='CalCalendarItem'>
+    <method selector='hasAlarm'>
+      <retval type='B' />
+    </method>
+  </class>
+  <class name='CalCalendarStore'>
+    <method selector='removeCalendar:error:'>
+      <retval type='B' />
+      <arg index='1' type_modifier='o' />
+    </method>
+    <method selector='removeEvent:span:error:'>
+      <retval type='B' />
+      <arg index='2' type_modifier='o' />
+    </method>
+    <method selector='removeTask:error:'>
+      <retval type='B' />
+      <arg index='1' type_modifier='o' />
+    </method>
+    <method selector='saveCalendar:error:'>
+      <retval type='B' />
+      <arg index='1' type_modifier='o' />
+    </method>
+    <method selector='saveEvent:span:error:'>
+      <retval type='B' />
+      <arg index='2' type_modifier='o' />
+    </method>
+    <method selector='saveTask:error:'>
+      <retval type='B' />
+      <arg index='1' type_modifier='o' />
+    </method>
+  </class>
+  <class name='CalEvent'>
+    <method selector='isAllDay'>
+      <retval type='B' />
+    </method>
+    <method selector='setIsAllDay:'>
+      <arg index='0' type='B' />
+    </method>
+    <method selector='isDetached'>
+      <retval type='B' />
+    </method>
+  </class>
+  <class name='CalRecurrenceEnd'>
+	  <method selector='usesEndDate'>
+		  <retval type='B'/>
+	  </method>
+  </class>
+  <class name='CalTask'>
+    <method selector='isCompleted'>
+      <retval type='B' />
+    </method>
+    <method selector='setIsCompleted:'>
+      <arg index='0' type='B' />
+    </method>
+  </class>
+  <class name='CalCalendar'>
+    <method selector='isEditable'>
+      <retval type='B' />
+    </method>
+  </class>
+</signatures>
+

File pyobjc-framework-CalendarStore/BridgeSupport/CalendarStore.py

-<?xml version='1.0'?>
-<!DOCTYPE signatures SYSTEM "file://localhost/System/Library/DTDs/BridgeSupport.dtd">
-<signatures version='1.0'>
-  <constant name='CalAlarmActionDisplay' type='@' />
-  <constant name='CalAlarmActionEmail' type='@' />
-  <constant name='CalAlarmActionProcedure' type='@' />
-  <constant name='CalAlarmActionSound' type='@' />
-  <constant name='CalAttendeeStatusAccepted' type='@' />
-  <constant name='CalAttendeeStatusDeclined' type='@' />
-  <constant name='CalAttendeeStatusNeedsAction' type='@' />
-  <constant name='CalAttendeeStatusTentative' type='@' />
-  <constant name='CalCalendarStoreErrorDomain' type='@' />
-  <constant name='CalCalendarTypeBirthday' type='@' />
-  <constant name='CalCalendarTypeCalDAV' type='@' />
-  <constant name='CalCalendarTypeIMAP' type='@' />
-  <constant name='CalCalendarTypeLocal' type='@' />
-  <constant name='CalCalendarTypeSubscription' type='@' />
-  <constant name='CalCalendarTypeExchange' type='@' />
-  <constant name='CalCalendarsChangedExternallyNotification' type='@' />
-  <constant name='CalCalendarsChangedNotification' type='@' />
-  <constant name='CalDefaultRecurrenceInterval' type='I' type64='Q' />
-  <constant name='CalDeletedRecordsKey' type='@' />
-  <constant name='CalEventsChangedExternallyNotification' type='@' />
-  <constant name='CalEventsChangedNotification' type='@' />
-  <constant name='CalInsertedRecordsKey' type='@' />
-  <constant name='CalSenderProcessIDKey' type='@' />
-  <constant name='CalTasksChangedExternallyNotification' type='@' />
-  <constant name='CalTasksChangedNotification' type='@' />
-  <constant name='CalUpdatedRecordsKey' type='@' />
-  <constant name='CalUserUIDKey' type='@' />
-  <enum name='CalCalendarNotEditableError' value='1025' />
-  <enum name='CalCalendarNotInRepository' value='1027' />
-  <enum name='CalCalendarTitleNotUniqueError' value='1028' />
-  <enum name='CalDateInvalidError' value='1026' />
-  <enum name='CalPriorityHigh' value='1' />
-  <enum name='CalPriorityLow' value='9' />
-  <enum name='CalPriorityMedium' value='5' />
-  <enum name='CalPriorityNone' value='0' />
-  <enum name='CalRecurrenceDaily' value='0' />
-  <enum name='CalRecurrenceMonthly' value='2' />
-  <enum name='CalRecurrenceWeekly' value='1' />
-  <enum name='CalRecurrenceYearly' value='3' />
-  <enum name='CalSpanAllEvents' value='2' />
-  <enum name='CalSpanFutureEvents' value='1' />
-  <enum name='CalSpanThisEvent' value='0' />
-  <class name='CalCalendarItem'>
-    <method selector='hasAlarm'>
-      <retval type='B' />
-    </method>
-  </class>
-  <class name='CalCalendarStore'>
-    <method selector='removeCalendar:error:'>
-      <retval type='B' />
-      <arg index='1' type_modifier='o' />
-    </method>
-    <method selector='removeEvent:span:error:'>
-      <retval type='B' />
-      <arg index='2' type_modifier='o' />
-    </method>
-    <method selector='removeTask:error:'>
-      <retval type='B' />
-      <arg index='1' type_modifier='o' />
-    </method>
-    <method selector='saveCalendar:error:'>
-      <retval type='B' />
-      <arg index='1' type_modifier='o' />
-    </method>
-    <method selector='saveEvent:span:error:'>
-      <retval type='B' />
-      <arg index='2' type_modifier='o' />
-    </method>
-    <method selector='saveTask:error:'>
-      <retval type='B' />
-      <arg index='1' type_modifier='o' />
-    </method>
-  </class>
-  <class name='CalEvent'>
-    <method selector='isAllDay'>
-      <retval type='B' />
-    </method>
-    <method selector='setIsAllDay:'>
-      <arg index='0' type='B' />
-    </method>
-    <method selector='isDetached'>
-      <retval type='B' />
-    </method>
-  </class>
-  <class name='CalRecurrenceEnd'>
-	  <method selector='usesEndDate'>
-		  <retval type='B'/>
-	  </method>
-  </class>
-  <class name='CalTask'>
-    <method selector='isCompleted'>
-      <retval type='B' />
-    </method>
-    <method selector='setIsCompleted:'>
-      <arg index='0' type='B' />
-    </method>
-  </class>
-</signatures>
-

File pyobjc-framework-CalendarStore/Lib/CalendarStore/_metadata.py

 # Generated file, don't edit
-# Source: BrideSupport/CalendarStore.bridgesupport
-# Last update: Mon Jul 18 19:15:26 2011
+# Source: BridgeSupport/CalendarStore.bridgesupport
+# Last update: Sun Jul 31 21:44:19 2011
 
 import objc, sys
 
 
 misc = {
 }
-constants = '''$CalAlarmActionDisplay$CalAlarmActionEmail$CalAlarmActionProcedure$CalAlarmActionSound$CalAttendeeStatusAccepted$CalAttendeeStatusDeclined$CalAttendeeStatusNeedsAction$CalAttendeeStatusTentative$CalCalendarStoreErrorDomain$CalCalendarTypeBirthday$CalCalendarTypeCalDAV$CalCalendarTypeIMAP$CalCalendarTypeLocal$CalCalendarTypeSubscription$CalCalendarTypeExchange$CalCalendarsChangedExternallyNotification$CalCalendarsChangedNotification$CalDefaultRecurrenceInterval@I$CalDeletedRecordsKey$CalEventsChangedExternallyNotification$CalEventsChangedNotification$CalInsertedRecordsKey$CalSenderProcessIDKey$CalTasksChangedExternallyNotification$CalTasksChangedNotification$CalUpdatedRecordsKey$CalUserUIDKey$'''
+constants = '''$CalAlarmActionDisplay$CalAlarmActionEmail$CalAlarmActionProcedure$CalAlarmActionSound$CalAttendeeStatusAccepted$CalAttendeeStatusDeclined$CalAttendeeStatusNeedsAction$CalAttendeeStatusTentative$CalCalendarStoreErrorDomain$CalCalendarTypeBirthday$CalCalendarTypeCalDAV$CalCalendarTypeIMAP$CalCalendarTypeLocal$CalCalendarTypeSubscription$CalCalendarTypeExchange$CalCalendarsChangedExternallyNotification$CalCalendarsChangedNotification$CalDeletedRecordsKey$CalEventsChangedExternallyNotification$CalEventsChangedNotification$CalInsertedRecordsKey$CalSenderProcessIDKey$CalTasksChangedExternallyNotification$CalTasksChangedNotification$CalUpdatedRecordsKey$CalUserUIDKey$'''
+constants_dict = {'CalDefaultRecurrenceInterval': sel32or64('I', 'Q')}
 enums = '''$CalCalendarNotEditableError@1025$CalCalendarNotInRepository@1027$CalCalendarTitleNotUniqueError@1028$CalDateInvalidError@1026$CalPriorityHigh@1$CalPriorityLow@9$CalPriorityMedium@5$CalPriorityNone@0$CalRecurrenceDaily@0$CalRecurrenceMonthly@2$CalRecurrenceWeekly@1$CalRecurrenceYearly@3$CalSpanAllEvents@2$CalSpanFutureEvents@1$CalSpanThisEvent@0$'''
 misc.update({})
 functions = {}
     r('CalRecurrenceEnd', b'usesEndDate', {'retval': {'type': b'Z'}})
     r('CalTask', b'isCompleted', {'retval': {'type': b'Z'}})
     r('CalTask', b'setIsCompleted:', {'arguments': {2: {'type': b'Z'}}})
+    r('CalCalendar', b'isEditable', {'retval': {'type': b'Z'}})
 finally:
     objc._updatingMetadata(False)

File pyobjc-framework-CalendarStore/PyObjCTest/test_calcalendar.py

     def testConstants10_6(self):
         self.assertIsInstance(CalCalendarTypeExchange, unicode)
 
+    def testMethods(self):
+        self.assertResultIsBOOL(CalCalendar.isEditable)
 
 
 if __name__ == "__main__":

File pyobjc-framework-CalendarStore/PyObjCTest/test_calcalendarstore.py

         self.assertIsInstance(CalUserUIDKey, unicode)
 
     def testMethods(self):
+        self.assertResultIsBOOL(CalCalendarStore.saveCalendar_error_)
+        self.assertResultIsBOOL(CalCalendarStore.removeCalendar_error_)
         self.assertArgIsOut(CalCalendarStore.saveCalendar_error_, 1)
         self.assertArgIsOut(CalCalendarStore.removeCalendar_error_, 1)