#NEWLINE# def init_public_admin( app ) : #NEWLINE# #INDENT# public_admin_url = '/public' #NEWLINE# public_admin = Admin ( index_view = PublicAdminPanel ( url = public_admin , endpoint = 'public_admin' ) , name = lazy_gettext ( 'Public laboratories' ) , url = public_admin_url , endpoint = 'public-admin' ) #NEWLINE# public_admin . add_view ( PublicSystemsPanel ( db . session , name = lazy_gettext ( 'Show public systems' ) , endpoint = 'public_admin_systems' , url = 'systems/public' ) ) #NEWLINE# public_admin . add_view ( PublicLaboratoriesPanel ( db . session , name = lazy_gettext ( 'Show public labs' ) , endpoint = 'public_admin_labs' , url = 'labs/public' ) ) #NEWLINE# public_admin . add_view ( RedirectView ( 'index' , name = lazy_gettext ( 'Back' ) , endpoint = 'public_admin_logout' , url = 'back' ) ) #NEWLINE# public_admin . init_app ( app )