def nameAllowed(name):
    if NameAllowedRegExp.match(name):
        return 1
    else:
        return 0
checks if a name is allowed.
dataset/ETHPy150Open anandology/pyjamas/examples/jsonrpc/public/services/jsonrpc/__init__.py/nameAllowed