示例#1
0
class XDR_session_var(XDRStruct):
    '''Session variable'''
    members = (
        'name',
        XDR.string(),
        'value',
        XDR.double(),
    )
示例#2
0
class XDR_filter_config(XDRStruct):
    '''Configuration for a single filter'''
    members = (
        'name',
        XDR.string(),
        'arguments',
        XDR.array(XDR.string()),
        'dependencies',
        XDR.array(XDR.string()),
        'min_score',
        XDR.double(),
        'max_score',
        XDR.double(),
        'code',
        XDR.string(),
        'blob',
        XDR.string(),
    )