#NEWLINE# def func( self ) : #NEWLINE# #INDENT# '\n        Handle the looking. This is a copy of the default look\n        code except for adding in the details.\n        ' #NEWLINE# caller = self . caller #NEWLINE# args = self . args #NEWLINE# if args : #NEWLINE# #INDENT# looking_at_obj = caller . search ( args , use_nicks = True , quiet = True ) #NEWLINE# if ( len ( looking_at_obj ) != 1 ) : #NEWLINE# #INDENT# detail = self . obj . return_detail ( args ) #NEWLINE# if detail : #NEWLINE# #INDENT# self . caller . msg ( detail ) #NEWLINE# return #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# _SEARCH_AT_RESULT ( None , caller , args , looking_at_obj ) #NEWLINE# return #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# looking_at_obj = looking_at_obj [ 0 ] #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# looking_at_obj = caller . location #NEWLINE# if ( not looking_at_obj ) : #NEWLINE# #INDENT# caller . msg ( 'You have no location to look at!' ) #NEWLINE# return #NEWLINE# #UNINDENT# #UNINDENT# if ( not hasattr ( looking_at_obj , 'return_appearance' ) ) : #NEWLINE# #INDENT# looking_at_obj = looking_at_obj . character #NEWLINE# #UNINDENT# if ( not looking_at_obj . access ( caller , 'view' ) ) : #NEWLINE# #INDENT# caller . msg ( ( "Could not find '%s'." % args ) ) #NEWLINE# return #NEWLINE# #UNINDENT# caller . msg ( looking_at_obj . return_appearance ( caller ) ) #NEWLINE# looking_at_obj . at_desc ( looker = caller )