File: DBConstants.py

package info (click to toggle)
python-screed 1.1.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 820 kB
  • sloc: python: 3,356; makefile: 169; sh: 32; javascript: 16
file content (26 lines) | stat: -rw-r--r-- 633 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright (c) 2008, Michigan State University.

"""
Defines some constant strings identifications used in multiple
files throughout screed
"""

# Name of table holding information about rest of db
_SCREEDADMIN = 'SCREEDADMIN'

# Names of _SCREEDADMIN columns
_FIELDNAME = 'FIELDNAME'
_ROLENAME = 'ROLE'
_PRIMARY_KEY = 'id'

# Names of roles
_STANDARD_TEXT = 'STANDARDATTR'
_SLICEABLE_TEXT = 'SLICEABLEATTR'
_INDEXED_TEXT_KEY = 'TEXTKEYATTR'
_PRIMARY_KEY_ROLE = 'INTKEYATTR'

# Name of table holding sequence information
_DICT_TABLE = 'DICTIONARY_TABLE'

# The file extension given to all screed databases
fileExtension = '_screed'