def do_route(self): #debug ''' self.debug(('self.',self,['WalkingSocketDict','WalkedTopOrderedDict'])) ''' #Init if 'RouteTopOrderedDict' not in self.WalkedTopOrderedDict: self.WalkedTopOrderedDict['RouteTopOrderedDict']=self.WalkingSocketDict['TopVariable'].RoutedVariablesOrderedDict #Init if 'PickKeyVariablesList' not in self.WalkedTopOrderedDict: self.WalkedTopOrderedDict['PickKeyVariablesList']=self.WalkingSocketDict['TopVariable'].RoutingPickKeyVariablesList #Pick and set in the dict RouteVariablesOrderedDict=collections.OrderedDict() map( lambda __PickKeyVariable,__PickValueVariable: RouteVariablesOrderedDict.update( {__PickKeyVariable:__PickValueVariable} ), self.WalkedTopOrderedDict['PickKeyVariablesList'], self.pick(self.WalkedTopOrderedDict['PickKeyVariablesList']) ) #debug ''' self.debug( ( 'self.WalkedTopOrderedDict ', self.WalkedTopOrderedDict, [ 'RouteTopOrderedDict', 'TopIntsList' ] ) ) ''' #set Pather.setWithPathVariableAndKeyVariable( self.WalkedTopOrderedDict['RouteTopOrderedDict'], self.WalkedTopOrderedDict['TopIntsList'], RouteVariablesOrderedDict ) #debug '''
def mimic_get(self): #debug ''' self.debug(('self.',self,['GettingKeyVariable'])) ''' #Deep get if self.GettingKeyVariable=='__class__': #set self.GettedValueVariable=self.__class__ #Return return {'HookingIsBool':False} elif self.GettingKeyVariable.startswith(SharingStartStr): #Define SharedGetString=SharingStartStr.join( self.GettingKeyVariable.split(SharingStartStr)[1:] ) #debug ''' self.debug('SharedGetString is '+SharedGetString) ''' #Define self.SharedClassDict=dict( map( lambda __KeyString: ( __KeyString, getattr( self.__class__, __KeyString ) ), dir(self.__class__) )+[('__mro__',self.__class__.__mro__)] ) #debug ''' self.debug(('self.',self,['SharedClassDict'])) ''' #get in the __class__ self.GettedValueVariable=Pather.getVariableWithDictatedVariableAndKeyVariable( self.SharedClassDict, SharedGetString ) #Return return {'HookingIsBool':False} else: #debug ''' self.debug('BaseClass.get is '+str(BaseClass.get)) ''' #Get before with the parent method OutputDict=BaseClass.get(self) #Check that we have still to hook if OutputDict==None or OutputDict["HookingIsBool"]: #Check if self.GettingKeyVariable in self.__class__.__dict__: #Get from the class self.GettedValueVariable=self.__class__.__dict__[self.GettingKeyVariable] #Return return {'HookingIsBool':False} #Return return {'HookingIsBool':True}