You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, almost all invocation of ModelImporter.load in AccessControlMixin simply pass a single argument self.resourceColl. The only place where the additional plugin kwarg is handled is here:
Traceback (most recent call last):
File "/girder/girder/api/rest.py", line 630, in endpointDecorator
val = fun(self, path, params)
File "/girder/girder/api/rest.py", line 1216, in GET
return self.handleRoute('GET', path, params)
File "/girder/girder/api/rest.py", line 970, in handleRoute
val = handler(**kwargs)
File "/girder/girder/api/describe.py", line 709, in wrapped
return fun(*args, **kwargs)
File "/girder/girder/api/rest.py", line 445, in wrapped
val = fun(*args, **kwargs)
File "/girder/plugins/jsonforms/server/rest/entry.py", line 38, in listFormEntry
cursor = FormEntryModel().findWithPermissions(
File "/girder/girder/utility/acl_mixin.py", line 303, in findWithPermissions
if (not isinstance(self.model(self.resourceColl), AccessControlledModel) or
File "/girder/girder/utility/model_importer.py", line 88, in model
module = 'girder.models.%s' % model
The text was updated successfully, but these errors were encountered:
Description
AccessControlMixin
usesModelImporter.load
to load a proper model class throughout its methods. The signature of the latter is:girder/girder/utility/model_importer.py
Line 37 in dc40cd6
However, almost all invocation of
ModelImporter.load
inAccessControlMixin
simply pass a single argumentself.resourceColl
. The only place where the additionalplugin
kwarg is handled is here:girder/girder/utility/acl_mixin.py
Lines 56 to 57 in dc40cd6
Expected results
Handle models defined in plugins, e.g.:
Actual results
The text was updated successfully, but these errors were encountered: