def GetObjectInformation(self):
"""Identifies object whose security will be modified, and determines options available
to the end user"""
flags=SI_ADVANCED|SI_EDIT_ALL|SI_PAGE_TITLE|SI_RESET
if os.path.isdir(self.FileName):
flags|=SI_CONTAINER
hinstance=0 ## handle to module containing string resources
servername='' ## name of authenticating server if not local machine
objectname=os.path.split(self.FileName)[1]
pagetitle='Python ACL Editor'
if os.path.isdir(self.FileName):
pagetitle+=' (dir)'
else:
pagetitle+=' (file)'
objecttype=IID_NULL
return flags, hinstance, servername, objectname, pagetitle, objecttype
评论列表
文章目录