Hosted Apps DNA¶
This is 61A’s stateful app hosting service, a wrapper around @itsvs’s dna tool.
This app has no local setup, as it is not meant to be run locally. Most of the
code here is just RPC wrappers, which haven’t been documented yet, so feel free
to peruse through the code and reference the dna
docs if you want to
understand this app better.
The buildserver
deploy script for this app is available
here.
Code Documentation¶
This file contains the Python portion of the app.
-
hosted.app.
check_auth
(func)[source]¶ Takes in a function, and returns a wrapper of that function. The wrapper will request user authentication (as staff) if needed. Otherwise, it will execute the function as normal.
- Parameters
func (func) – function to wrap
- Returns
wrapper function that requests authentication as needed