def getGentationRange(self): gentation = GentationFilter.getGentation(self.__config.get("Settings","Gentation")) rv = [] for i in range(6): tmp = 1<<i if gentation&tmp != 0: rv.append(gentation&tmp) return rv
def getGentation(self): gentation = self.__config.get("Settings","Gentation") if gentation is not None and gentation != "None": return gentation else: raise RuntimeError,"No Longer Supported, must define Gentation" gender = self.__userProfile.Info["Gender"] orientation = self.__userProfile.Info["Orientation"] return GentationFilter.genGentation(gender,orientation)