forked from gaphor/gaphor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: file:///Users/arjan/backup/gaphor/gaphor/trunk@1201 a8418922-720d-0410-834f-a69b97ada669
- Loading branch information
Showing
12 changed files
with
88 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,4 +40,5 @@ def pre_update(self, context): | |
super(ElementItem, self).pre_update(context) | ||
self.update_stereotype() | ||
|
||
|
||
# vim:sw=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,33 @@ | ||
""" | ||
Application wide events are managed here. | ||
""" | ||
|
||
from zope import interface | ||
from gaphor.interfaces import * | ||
|
||
class TransactionBegin(object): | ||
""" | ||
This event denotes the beginning of an transaction. | ||
Nested (sub-) transactions should not emit this signal. | ||
""" | ||
interface.implements(ITransactionEvent) | ||
|
||
|
||
class TransactionCommit(object): | ||
""" | ||
This event is emitted when a transaction (toplevel) is successfully | ||
commited. | ||
""" | ||
interface.implements(ITransactionEvent) | ||
|
||
class TransactionRollback(object): | ||
""" | ||
If a set of operations fail (e.i. due to an exception) the transaction | ||
should be marked for rollback. This event is emitted to tell the operation | ||
has failed. | ||
""" | ||
interface.implements(ITransactionEvent) | ||
|
||
|
||
# vim:sw=4:et:ai | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters