예제 #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))