예제 #1
0
 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
예제 #2
0
 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)