Answer the question
In order to leave comments, you need to log in
What does a line of python code do?
There is a line of code:
perms = getattr(self, '_get_%s_permissions' % from_name)(user)
Answer the question
In order to leave comments, you need to log in
getattr() will return the instance attribute, which appears to be a method with some suffix - _get_XXX_permissions , and then call it with the user parameter
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question