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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user