Open n0toose opened 2 years ago
This is already partially done on the v2 branch (on which I haven't worked in ages). My eventual goal which is not yet implemented on v2 would be to provide a decorator which can register handers for each module and pass in the session
Is it possible for us to eventually apply some of your work onto the main branch?
If everything is under one file, syncMyMoodle will keep getting progressively harder to maintain and modify.
A better approach would be keeping the core functionality of
main()
under__main__.py
and putting things like class definitions to other files. The goal here would be making the code even more "OOP"-like than it already is and improve modularity. This should help with developing additional extensions in the long run.