This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import functools | |
def plivo_validate(func): | |
"""validate a request from plivo | |
returns true if the request passes validation, false if not | |
""" | |
@functools.wraps(func) | |
def wrapper(handler, *args, **kwargs): | |
# compute full URL without query elements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os import getpid | |
class HarmattanCompositor(object): | |
# Atoms | |
XA_ATOM = 4 | |
XA_STRING = 31 | |
XA_WINDOW = 33 | |
# Contants |