#NEWLINE# def getDevices( self ) : #NEWLINE# #INDENT# devices = memcache . get ( 'user_%s_devices' , self . user . user_id ( ) ) #NEWLINE# if ( devices == None ) : #NEWLINE# #INDENT# devices = self . devices . fetch ( 1000 ) #NEWLINE# memcache . set ( ( 'user_%s_devices' % self . user . user_id ( ) ) , devices ) #NEWLINE# #UNINDENT# return devices