[Zope-CVS] CVS: Products/AdaptableStorage/serial/interfaces - ITPCConnection.py:1.1 public.py:1.5
Shane Hathaway
shane@zope.com
Tue, 31 Dec 2002 16:09:36 -0500
Update of /cvs-repository/Products/AdaptableStorage/serial/interfaces
In directory cvs.zope.org:/tmp/cvs-serv13064/serial/interfaces
Modified Files:
public.py
Added Files:
ITPCConnection.py
Log Message:
- Added ITPCConnection. It doesn't really belong in the serial
package, but there's no other good place for it right now.
- FSConnection now allows a hidden filename prefix other than
".", such as "_", taking advantage of the fact that the Zope 2 security
model disallows leading underscores.
- Added some more docs.
=== Added File Products/AdaptableStorage/serial/interfaces/ITPCConnection.py ===
##############################################################################
#
# Copyright (c) 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Interface for transaction participants.
$Id: ITPCConnection.py,v 1.1 2002/12/31 21:09:05 shane Exp $
"""
from Interface import Interface
class ITPCConnection(Interface):
def connect():
"""Opens any resources needed for transactions. Called only once."""
def sortKey():
"""Returns a sort key for consistent ordering."""
def getName():
"""Returns a human-readable name."""
def begin():
"""Called before the first phase of two-phase commit."""
def vote():
"""Called upon transition to the second phase of two-phase commit."""
def abort():
"""Aborts the transaction."""
def finish():
"""Commits the transaction."""
def close():
"""Closes resources. Called only once."""
=== Products/AdaptableStorage/serial/interfaces/public.py 1.4 => 1.5 ===
--- Products/AdaptableStorage/serial/interfaces/public.py:1.4 Mon Dec 23 23:29:33 2002
+++ Products/AdaptableStorage/serial/interfaces/public.py Tue Dec 31 16:09:05 2002
@@ -31,4 +31,5 @@
from IObjectSerializer import IObjectSerializer
from ISchema import ISchema
from ISerializationEvent import ISerializationEvent
+from ITPCConnection import ITPCConnection