#NEWLINE# def load( self , id , level = AccessType . ADMIN , user = None , objectId = True , force = False , fields = None , exc = False ) : #NEWLINE# #INDENT# '\n        Calls Model.load on the current item, and then attempts to load the\n        resourceParent which the user must have access to in order to load this\n        model.\n\n        Takes the same parameters as\n        :py:func:`girder.models.model_base.AccessControlledModel.load`.\n        ' #NEWLINE# doc = Model . load ( self , id = id , objectId = objectId , fields = fields , exc = exc ) #NEWLINE# if ( doc is not None ) : #NEWLINE# #INDENT# if doc . get ( self . resourceParent ) : #NEWLINE# #INDENT# loadType = self . resourceColl #NEWLINE# loadId = doc [ self . resourceParent ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# loadType = doc [ 'attachedToType' ] #NEWLINE# loadId = doc [ 'attachedToId' ] #NEWLINE# #UNINDENT# #UNINDENT# if ( ( not force ) and ( doc is not None ) ) : #NEWLINE# #INDENT# self . model ( loadType ) . load ( loadId , level = level , user = user , exc = exc ) #NEWLINE# #UNINDENT# return doc