<s> """<STR_LIT>""" <EOL> class SuperuserMixin ( object ) : <EOL> """<STR_LIT>""" <EOL> exception_message = '<STR_LIT>' <EOL> def dispatch ( self , request , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> if not request . user . is_superuser : <EOL> return self . render_to_response ( { <EOL> '<STR_LIT:error>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : self . exception_message <EOL> } ) <EOL> return super ( SuperuserMixin , self ) . dispatch ( request , * args , ** kwargs ) </s>
