#NEWLINE# def user_method( fn ) : #NEWLINE# #INDENT# def _( * args , **kwargs ) : #NEWLINE# #INDENT# if ( not NAMESPACE . user ) : #NEWLINE# #INDENT# raise Exception ( "You can't do that" ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# return fn ( * args , ** kwargs ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# logger = logging . getLogger ( 'debile' ) #NEWLINE# logger . debug ( 'Caught exception when processing xmlrpc request.' , exc_info = True ) #NEWLINE# raise #NEWLINE# #UNINDENT# #UNINDENT# return fn