Update of /cvsroot/pywin32/pywin32/com/win32comext/authorization/demos
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20331/com/win32comext/authorization/demos
Modified Files:
Tag: py3k
EditSecurity.py EditServiceSecurity.py
Log Message:
many more upgrades to py3k syntax
Index: EditServiceSecurity.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/authorization/demos/EditServiceSecurity.py,v
retrieving revision 1.1
retrieving revision 1.1.4.1
diff -C2 -d -r1.1 -r1.1.4.1
*** EditServiceSecurity.py 26 Jul 2006 03:12:53 -0000 1.1
--- EditServiceSecurity.py 26 Nov 2008 09:03:29 -0000 1.1.4.1
***************
*** 75,79 ****
if (objecttype is not None) and (objecttype!=IID_NULL):
## Not relevent for services
! raise NotImplementedError, "Object type is not supported"
## ???? for some reason, the DACL for a service will not retain ACCESS_SYSTEM_SECURITY in an ACE ????
--- 75,79 ----
if (objecttype is not None) and (objecttype!=IID_NULL):
## Not relevent for services
! raise NotImplementedError("Object type is not supported")
## ???? for some reason, the DACL for a service will not retain ACCESS_SYSTEM_SECURITY in an ACE ????
Index: EditSecurity.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/authorization/demos/EditSecurity.py,v
retrieving revision 1.1
retrieving revision 1.1.4.1
diff -C2 -d -r1.1 -r1.1.4.1
*** EditSecurity.py 16 Mar 2006 22:53:08 -0000 1.1
--- EditSecurity.py 26 Nov 2008 09:03:29 -0000 1.1.4.1
***************
*** 77,81 ****
## Should not be true for file objects. Usually only used with DS objects that support security for
## their properties
! raise NotImplementedError, "Object type is not supported"
if os.path.isdir(self.FileName):
--- 77,81 ----
## Should not be true for file objects. Usually only used with DS objects that support security for
## their properties
! raise NotImplementedError("Object type is not supported")
if os.path.isdir(self.FileName):
***************
*** 129,133 ****
temp_dir=win32api.GetTempPath()
dir_name=win32api.GetTempFileName(temp_dir,'isi')[0]
! print dir_name
os.remove(dir_name)
os.mkdir(dir_name)
--- 129,133 ----
temp_dir=win32api.GetTempPath()
dir_name=win32api.GetTempFileName(temp_dir,'isi')[0]
! print(dir_name)
os.remove(dir_name)
os.mkdir(dir_name)
|