|
Revision 4169, 0.7 kB
(checked in by ed, 5 months ago)
|
Changed the default for output to not print all the infoLog messages to stdout. Instead, infoLog messages are ignored unless the dabo.verboseLogging setting is set to False. The errorLog still prints to stderr, of course.
Added a couple of constants that are returned by dStandardButtonDialog.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
# -*- coding: utf-8 -*- |
|---|
| 2 |
""" dConstants.py """ |
|---|
| 3 |
|
|---|
| 4 |
# Return values for most operations |
|---|
| 5 |
# FILE_OK = 0 |
|---|
| 6 |
# FILE_CANCEL = -1 |
|---|
| 7 |
# FILE_NORECORDS = -2 |
|---|
| 8 |
# FILE_BOF = -3 |
|---|
| 9 |
# FILE_EOF = -4 |
|---|
| 10 |
|
|---|
| 11 |
# Return values for updates to the database |
|---|
| 12 |
# UPDATE_OK = 0 |
|---|
| 13 |
# UPDATE_NORECORDS = -2 |
|---|
| 14 |
|
|---|
| 15 |
# Return values from Requery |
|---|
| 16 |
# REQUERY_SUCCESS = 0 |
|---|
| 17 |
# REQUERY_ERROR = -1 |
|---|
| 18 |
|
|---|
| 19 |
# Referential Integrity constants |
|---|
| 20 |
REFINTEG_IGNORE = 1 |
|---|
| 21 |
REFINTEG_RESTRICT = 2 |
|---|
| 22 |
REFINTEG_CASCADE = 3 |
|---|
| 23 |
|
|---|
| 24 |
# Constants specific to cursors |
|---|
| 25 |
CURSOR_MEMENTO = "dabo-memento" |
|---|
| 26 |
CURSOR_NEWFLAG = "dabo-newrec" |
|---|
| 27 |
CURSOR_TMPKEY_FIELD = "dabo-tmpKeyField" |
|---|
| 28 |
|
|---|
| 29 |
DLG_OK = 0 |
|---|
| 30 |
DLG_CANCEL = -1 |
|---|
| 31 |
DLG_YES = 2 |
|---|
| 32 |
DLG_NO = -2 |
|---|
| 33 |
|
|---|
| 34 |
# Flag to indicate that field validation was skipped |
|---|
| 35 |
BIZ_DEFAULT_FIELD_VALID = "Dabo default field validation".split(" ") |
|---|