root/gaphor/tags/release-0.10.2/gaphor/event.py

Revision 1201, 0.8 kB (checked in by arj..@yirdis.nl, 2 years ago)

Updated drawing of items.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 """
2 Application wide events are managed here.
3 """
4
5 from zope import interface
6 from gaphor.interfaces import *
7
8 class TransactionBegin(object):
9     """
10     This event denotes the beginning of an transaction.
11     Nested (sub-) transactions should not emit this signal.
12     """
13     interface.implements(ITransactionEvent)
14
15
16 class TransactionCommit(object):
17     """
18     This event is emitted when a transaction (toplevel) is successfully
19     commited.
20     """
21     interface.implements(ITransactionEvent)
22
23 class TransactionRollback(object):
24     """
25     If a set of operations fail (e.i. due to an exception) the transaction
26     should be marked for rollback. This event is emitted to tell the operation
27     has failed.
28     """
29     interface.implements(ITransactionEvent)
30
31
32 # vim:sw=4:et:ai
33
Note: See TracBrowser for help on using the browser.