示例#1
0
文件: gpo.py 项目: rti7743/samba
def gpo_flags_string(value):
    '''return gpo flags string'''
    flags = policy.get_gpo_flags(value)
    if not flags:
        ret = 'NONE'
    else:
        ret = ' '.join(flags)
    return ret
示例#2
0
 def test_get_gpo_flags(self):
     self.assertEquals(["GPO_FLAG_USER_DISABLE"],
         policy.get_gpo_flags(policy.GPO_FLAG_USER_DISABLE))