otter-service-stdalone 0.1.22__tar.gz → 0.1.24__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/PKG-INFO +1 -1
  2. otter_service_stdalone-0.1.24/src/otter_service_stdalone/__init__.py +1 -0
  3. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/src/otter_service_stdalone/app.py +2 -1
  4. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/src/otter_service_stdalone/user_auth.py +0 -1
  5. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/src/otter_service_stdalone.egg-info/PKG-INFO +1 -1
  6. otter_service_stdalone-0.1.22/src/otter_service_stdalone/__init__.py +0 -1
  7. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/README.md +0 -0
  8. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/pyproject.toml +0 -0
  9. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/setup.cfg +0 -0
  10. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/src/otter_service_stdalone/access_sops_keys.py +0 -0
  11. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/src/otter_service_stdalone/fs_logging.py +0 -0
  12. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/src/otter_service_stdalone/grade_notebooks.py +0 -0
  13. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/src/otter_service_stdalone/index.html +0 -0
  14. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/src/otter_service_stdalone/secrets/gh_key.dev.yaml +0 -0
  15. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/src/otter_service_stdalone/secrets/gh_key.local.yaml +0 -0
  16. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/src/otter_service_stdalone/secrets/gh_key.prod.yaml +0 -0
  17. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/src/otter_service_stdalone/secrets/gh_key.staging.yaml +0 -0
  18. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/src/otter_service_stdalone/static_templates/403.html +0 -0
  19. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/src/otter_service_stdalone/static_templates/500.html +0 -0
  20. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/src/otter_service_stdalone/upload_handle.py +0 -0
  21. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/src/otter_service_stdalone.egg-info/SOURCES.txt +0 -0
  22. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/src/otter_service_stdalone.egg-info/dependency_links.txt +0 -0
  23. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/src/otter_service_stdalone.egg-info/entry_points.txt +0 -0
  24. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/src/otter_service_stdalone.egg-info/top_level.txt +0 -0
  25. {otter_service_stdalone-0.1.22 → otter_service_stdalone-0.1.24}/tests/test_upload_handle.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: otter_service_stdalone
3
- Version: 0.1.22
3
+ Version: 0.1.24
4
4
  Summary: Grading Service for Instructors using Otter Grader
5
5
  Home-page: https://github.com/sean-morris/otter-service-stdalone
6
6
  Author: Sean Morris
@@ -0,0 +1 @@
1
+ __version__ = "0.1.24"
@@ -13,6 +13,7 @@ from zipfile import ZipFile, ZIP_DEFLATED
13
13
  __UPLOADS__ = "/tmp/uploads"
14
14
  log_debug = f'{os.environ.get("ENVIRONMENT")}-debug'
15
15
  log_error = f'{os.environ.get("ENVIRONMENT")}-logs'
16
+ log_http = f'{os.environ.get("ENVIRONMENT")}-http-error'
16
17
 
17
18
  authorization_states = {} # used to protect against cross-site request forgery attacks.
18
19
 
@@ -50,7 +51,7 @@ class BaseHandler(tornado.web.RequestHandler):
50
51
  return self.get_secure_cookie("user")
51
52
 
52
53
  def write_error(self, status_code, **kwargs):
53
- log.write_logs("Http Error", f"{status_code} Error", "", "info", log_error)
54
+ log.write_logs("Http Error", f"{status_code} Error", "", "info", log_http)
54
55
  self.clear_cookie("user")
55
56
  if status_code == 403:
56
57
  self.set_status(403)
@@ -22,7 +22,6 @@ async def handle_authorization(form, state):
22
22
  - state (int): random uuid4 number generated to ensure communication between endpoints is
23
23
  not compromised
24
24
  """
25
- log.write_logs("Auth Workflow", "UserAuth: Get: Authorizing", "", "info", log_debug)
26
25
  q_params = f"client_id={github_id}&state={state}&scope=read:org"
27
26
  form.redirect(f'https://github.com/login/oauth/authorize?{q_params}')
28
27
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: otter_service_stdalone
3
- Version: 0.1.22
3
+ Version: 0.1.24
4
4
  Summary: Grading Service for Instructors using Otter Grader
5
5
  Home-page: https://github.com/sean-morris/otter-service-stdalone
6
6
  Author: Sean Morris
@@ -1 +0,0 @@
1
- __version__ = "0.1.22"