SP/web2py/gluon/packages/dal/pydal/_globals.py

11 lines
185 B
Python
Raw Normal View History

2018-10-25 15:33:07 +00:00
import threading
GLOBAL_LOCKER = threading.RLock()
THREAD_LOCAL = threading.local()
DEFAULT = lambda: None
def IDENTITY(x): return x
def OR(a,b): return a|b
def AND(a,b): return a&b