#NEWLINE# def _is_web_user( owner_id ) : #NEWLINE# #INDENT# from corehq.apps.users.models import WebUser #NEWLINE# try : #NEWLINE# #INDENT# document = WebUser . get_db ( ) . get ( owner_id ) #NEWLINE# #UNINDENT# except ResourceNotFound : #NEWLINE# #INDENT# document = { #NEWLINE# #INDENT# 'doc_type' : 'unknown' , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# return ( document . get ( 'doc_type' , None ) == 'WebUser' )