-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Labels
Milestone
Description
The commint 1804923 is using the python function getargspec to check if the the links_factory_imp has kwargs.
Unfortunately, that python function is checking if the given function is a real function, and it raises a TypeError otherwise.
If we use partial instead, it breaks.
Example:
project_links_factory = partial(deposit_links_factory, deposit_type='project')
"""Project factory for links generation."""Workaround:
def project_links_factory(pid):
"""Project factory for links generation."""
deposit_links_factory(pid, deposit_type='project')Would it possible to add support for partials?