#NEWLINE# def __getattribute__( self , name ) : #NEWLINE# #INDENT# attr = object . __getattribute__ ( self , name ) #NEWLINE# if hasattr ( attr , '__call__' ) : #NEWLINE# #INDENT# if ( hasattr ( self , '_allowed' ) and self . _allowed ) : #NEWLINE# #INDENT# return self #NEWLINE# #UNINDENT# if app . config . get ( 'ALLOW_ANONYMOUS_ACCESS' , False ) : #NEWLINE# #INDENT# self . _allowed = True #NEWLINE# return attr #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if hasattr ( self , 'allow' ) : #NEWLINE# #INDENT# if ( g . user . role in self . allow ) : #NEWLINE# #INDENT# self . _allowed = True #NEWLINE# return attr #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . _allowed = True #NEWLINE# return attr #NEWLINE# #UNINDENT# #UNINDENT# abort ( HTTP . FORBIDDEN ) #NEWLINE# #UNINDENT# return attr