|
Revision 137, 499 bytes
(checked in by ed, 5 years ago)
|
Updated to use exceptions rather than return constants
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
""" dConstants.py """ |
|---|
| 2 |
|
|---|
| 3 |
# Return values for most operations |
|---|
| 4 |
# FILE_OK = 0 |
|---|
| 5 |
# FILE_CANCEL = -1 |
|---|
| 6 |
# FILE_NORECORDS = -2 |
|---|
| 7 |
# FILE_BOF = -3 |
|---|
| 8 |
# FILE_EOF = -4 |
|---|
| 9 |
|
|---|
| 10 |
# Return values for updates to the database |
|---|
| 11 |
# UPDATE_OK = 0 |
|---|
| 12 |
# UPDATE_NORECORDS = -2 |
|---|
| 13 |
|
|---|
| 14 |
# Return values from Requery |
|---|
| 15 |
# REQUERY_SUCCESS = 0 |
|---|
| 16 |
# REQUERY_ERROR = -1 |
|---|
| 17 |
|
|---|
| 18 |
# Referential Integrity constants |
|---|
| 19 |
REFINTEG_IGNORE = 1 |
|---|
| 20 |
REFINTEG_RESTRICT = 2 |
|---|
| 21 |
REFINTEG_CASCADE = 3 |
|---|
| 22 |
|
|---|
| 23 |
# Constants specific to cursors |
|---|
| 24 |
CURSOR_MEMENTO = "dabo-memento" |
|---|
| 25 |
CURSOR_NEWFLAG = "dabo-newrec" |
|---|