#NEWLINE# @ responder ( pattern = '^app (?P<name>.+)' , form = 'app <name>' , auth_required = False , help = 'Talk about an application' ) #NEWLINE# def app( conversation , name ) : #NEWLINE# #INDENT# if App . exists ( name ) : #NEWLINE# #INDENT# conversation . context [ 'app' ] = App ( name ) #NEWLINE# conversation . context [ 'subject' ] = App ( name ) #NEWLINE# conversation . say ( ( "Ok, we're talking about %s" % name ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# msg = ( 'Sorry, I\'ve never heard of the app "%s".' % name ) #NEWLINE# conversation . say ( conversation )