Bugfixes in Arch Windows

This commit is contained in:
Yorik van Havre
2012-03-24 18:26:01 -03:00
parent 92448de11e
commit 61d3f3f649
2 changed files with 33 additions and 13 deletions

View File

@@ -170,6 +170,15 @@ def getType(obj):
return "Group"
return "Unknown"
def isClone(obj,objtype):
"""isClone(obj,objtype): returns True if the given object is
a clone of an object of the given type"""
if getType(obj) == "Clone":
if len(obj.Objects) == 1:
if getType(obj.Objects[0]) == objtype:
return True
return False
def getGroupNames():
"returns a list of existing groups in the document"
glist = []