#NEWLINE# def get_user_apps( ) : #NEWLINE# #INDENT# ret = [ ] #NEWLINE# main_app = kay . app . get_application ( ) #NEWLINE# apps = [ main_app . app ] #NEWLINE# for ( key , submount_app ) in main_app . mounts . iteritems ( ) : #NEWLINE# #INDENT# if ( ( not hasattr ( submount_app , 'app_settings' ) ) or ( key == '/_kay' ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# apps . append ( submount_app ) #NEWLINE# #UNINDENT# for app in main_app : #NEWLINE# #INDENT# for user_app in app . app_settings . INSTALLED_APPS : #NEWLINE# #INDENT# if user_app . startswith ( 'kay.' ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# ret . append ( user_app ) #NEWLINE# #UNINDENT# #UNINDENT# return ret