Merging 1.0 branch onto the trunk (I know this is not the usual

way, but it is just me :)
Not part of the build!
This commit is contained in:
mhammond@skippinet.com.au
2002-05-03 01:16:47 +00:00
parent 6ddb0ce64f
commit f3351c7d8a
29 changed files with 1162 additions and 301 deletions

View File

@@ -13,7 +13,7 @@
# ActiveState Tool Corp. All Rights Reserved.
#
# Contributor(s): David Ascher <DavidA@ActiveState.com> (original author)
# Mark Hammond <MarkH@ActiveState.com>
# Mark Hammond <mhammond@skippinet.com.au>
#
"""
@@ -56,10 +56,15 @@ from xpcom_consts import *
class Interface:
def __init__(self, iid):
iim = xpcom._xpcom.XPTI_GetInterfaceInfoManager()
if hasattr(iid, "upper"): # Is it a stringy thing.
item = iim.GetInfoForName(iid)
else:
item = iim.GetInfoForIID(iid)
try:
if hasattr(iid, "upper"): # Is it a stringy thing.
item = iim.GetInfoForName(iid)
else:
item = iim.GetInfoForIID(iid)
except xpcom.COMException:
name = getattr(iid, "name", str(iid))
print "Failed to get info for IID '%s'" % (name,)
raise
self.interface_info = item
self.namespace = "" # where does this come from?
self.methods = Methods(item)