valhallasw added a subscriber: valhallasw. valhallasw added a comment.
I think this should be possible without introspection. I think just
_uc['register_family_file'] = register_family_file
might work; if not, we can explicitly pass the environment to register_family_file:
def _register_family_file(environment, file): environment['...'] = ... etc
_uc['register_family_file'] = lambda f: register_family_file(_uc, f)
(or using functools.partial)
Using introspection sounds like a bad idea to me.
TASK DETAIL https://phabricator.wikimedia.org/T78777
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: jayvdb, valhallasw Cc: Aklapper, Gallaecio, XZise, valhallasw, jayvdb, pywikipedia-bugs