glotchimo / apodo

A cancelled Python web server project.
39 stars 1 forks source link

Port application.py #2

Closed glotchimo closed 5 years ago

glotchimo commented 5 years ago

This PR ports the application module from legacy/application.py, addressing #1 . Most changes include commenting, styling, and structuring.

The most significant functional change was to the call_hook method. Rather than determining a boolean value and returning after that process, the found hook is called in the return expression, returning None if the call fails.

Note that I replaced the string 'Vibora' in a few instances with 'Gato'. This change will need to be addressed consistently as we continue porting.

This PR also includes a semi-relevant restructuring of the directory structure for the legacy folder.