def valuefrompostdata(self, postdata):
        """This parameter method searches the POST data and retrieves the values it needs. It does not set the value yet though, but simply returns it. Needs to be explicitly passed to parameter.set(). It typically returns the default None when something is left unset (but that default can be overridden)"""
        if self.id in postdata:
            if ( (isinstance(postdata[self.id], bool) and postdata[self.id]) or postdata[self.id] == 1 or postdata[self.id].lower() in ('true','yes','enabled','1')):
                return True #postdata[self.id]
            else:
                return False
        else:
            return None
def valuefrompostdata ( self , postdata ) : if self . id in postdata : if ( ( isinstance ( postdata [ self . id ] , bool ) and postdata [ self . id ] ) or postdata [ self . id ] == 1 or postdata [ self . id ] . lower ( ) in ( 'true' , 'yes' , 'enabled' , '1' ) ) : return True else : return False else : return None
This parameter method searches the POST data and retrieves the values it needs. It does not set the value yet though, but simply returns it. Needs to be explicitly passed to parameter.set(). It typically returns the default None when something is left unset (but that default can be overridden)