Update of /cvsroot/pywin32/pywin32/com/win32comext/shell/demos
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv18082/com/win32comext/shell/demos
Modified Files:
IUniformResourceLocator.py
Log Message:
more moderizations merged from py3k work
Index: IUniformResourceLocator.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/com/win32comext/shell/demos/IUniformResourceLocator.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** IUniformResourceLocator.py 6 Apr 2006 10:50:40 -0000 1.1
--- IUniformResourceLocator.py 27 Nov 2008 09:33:22 -0000 1.2
***************
*** 32,41 ****
pss=ish.QueryInterface(pythoncom.IID_IPropertySetStorage)
ps=pss.Open(shell.FMTID_InternetSite)
! property_ids=[(k,v) for k,v in shellcon.__dict__.items() if k.startswith('PID_INTSITE_')]
for pname, pval in property_ids:
print pname, ps.ReadMultiple((pval,))[0]
ps=pss.Open(shell.FMTID_Intshcut)
! property_ids=[(k,v) for k,v in shellcon.__dict__.items() if k.startswith('PID_IS_')]
for pname, pval in property_ids:
print pname, ps.ReadMultiple((pval,))[0]
--- 32,41 ----
pss=ish.QueryInterface(pythoncom.IID_IPropertySetStorage)
ps=pss.Open(shell.FMTID_InternetSite)
! property_ids=[(k,v) for k,v in shellcon.__dict__.iteritems() if k.startswith('PID_INTSITE_')]
for pname, pval in property_ids:
print pname, ps.ReadMultiple((pval,))[0]
ps=pss.Open(shell.FMTID_Intshcut)
! property_ids=[(k,v) for k,v in shellcon.__dict__.iteritems() if k.startswith('PID_IS_')]
for pname, pval in property_ids:
print pname, ps.ReadMultiple((pval,))[0]
|