source:
OpenRLabs-Git/deploy/rlabs-docker/web2py-rlabs/gluon/packages/dal/pydal/_globals.py
Last change on this file was 42bd667, checked in by , 4 years ago | |
---|---|
|
|
File size: 208 bytes |
Line | |
---|---|
1 | import threading |
2 | |
3 | GLOBAL_LOCKER = threading.RLock() |
4 | THREAD_LOCAL = threading.local() |
5 | |
6 | DEFAULT = lambda: None |
7 | |
8 | |
9 | def IDENTITY(x): |
10 | return x |
11 | |
12 | |
13 | def OR(a, b): |
14 | return a | b |
15 | |
16 | |
17 | def AND(a, b): |
18 | return a & b |
Note: See TracBrowser
for help on using the repository browser.