[CalendarServer-changes] [5518] CalendarServer/branches/users/wsanchez/transations/txcaldav/ icalendarstore.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Apr 22 17:27:34 PDT 2010
Revision: 5518
http://trac.macosforge.org/projects/calendarserver/changeset/5518
Author: wsanchez at apple.com
Date: 2010-04-22 17:27:32 -0700 (Thu, 22 Apr 2010)
Log Message:
-----------
Add ICalendarStoreTransaction
Modified Paths:
--------------
CalendarServer/branches/users/wsanchez/transations/txcaldav/icalendarstore.py
Modified: CalendarServer/branches/users/wsanchez/transations/txcaldav/icalendarstore.py
===================================================================
--- CalendarServer/branches/users/wsanchez/transations/txcaldav/icalendarstore.py 2010-04-23 00:27:14 UTC (rev 5517)
+++ CalendarServer/branches/users/wsanchez/transations/txcaldav/icalendarstore.py 2010-04-23 00:27:32 UTC (rev 5518)
@@ -18,10 +18,6 @@
Calendar store interfaces
"""
-# FIXME: Still to do:
-# - Where to defer?
-# - commit() and abort()
-
__all__ = [
# Exceptions
"CalendarStoreError",
@@ -45,13 +41,15 @@
"ICalendarObject",
]
+from datetime import datetime, date, tzinfo
+
from zope.interface import Interface #, Attribute
-from datetime import datetime, date, tzinfo
from twext.python.vcomponent import VComponent
+
from txdav.idav import IPropertyStore
+from txdav.idav import ITransaction
-
#
# Exceptions
#
@@ -130,6 +128,15 @@
"""
Calendar store
"""
+ def newTransaction():
+ """
+ Create a new transaction.
+ """
+
+class ICalendarStoreTransaction(ITransaction):
+ """
+ Calendar store transaction
+ """
def calendarHomeWithUID(uid, create=False):
"""
Retrieve the calendar home for the principal with the given
@@ -142,7 +149,6 @@
home exists.
"""
-
class ICalendarHome(Interface):
"""
Calendar home
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20100422/3f9ec04b/attachment-0001.html>
More information about the calendarserver-changes
mailing list