#NEWLINE# def get_sites( self ) : #NEWLINE# #INDENT# handlers = [ ] #NEWLINE# for ( name , plug ) in self . plugins . items ( ) : #NEWLINE# #INDENT# if ( plug . site is not None ) : #NEWLINE# #INDENT# static_path = ( '/_plugin/%s/(.*)' % name ) #NEWLINE# rule = ( static_path , web . StaticFileHandler , { #NEWLINE# #INDENT# 'path' : plug . site , #NEWLINE# 'default_filename' : 'index.html' , #NEWLINE# #UNINDENT# } ) #NEWLINE# handlers . append ( rule ) #NEWLINE# #UNINDENT# #UNINDENT# return handlers