示例#1
0
def setter(value):
    if value.find("%%PASSKEY%%") < 0:
        raise ValueError("shall contain %%PASSKEY%% string")
    return datatypes.PhpCode(value)
示例#2
0
def validator(value):
    return datatypes.PhpCode(value)
示例#3
0
def setter(value):
    return datatypes.PhpCode(value)
示例#4
0
def validator(value):
    if value.find("%%BASE64%%") < 0:
        raise ValueError("shall contain %%BASE64%% string")
    return datatypes.PhpCode(value)