Module Expr Str ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias Assign NameStore Call NameLoad Str NameLoad ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad DictComp AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr BoolOpAnd CompareIn Str AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot CompareIn Str Call AttributeLoad NameLoad attr body Raise Call NameLoad Str Return Call NameLoad Call AttributeLoad Call NameLoad keyword AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr attr decorator_list NameLoad decorator_list Call AttributeLoad NameLoad attr Str keyword Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call NameLoad Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword NameLoad Call AttributeLoad NameLoad attr Return Call NameLoad Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq NameLoad AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Return TupleLoad Call NameLoad Num decorator_list decorator_list Call AttributeLoad NameLoad attr Str keyword Str ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Return TupleLoad Call NameLoad Num decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return TupleLoad Call NameLoad Num decorator_list decorator_list Call AttributeLoad NameLoad attr Str keyword Str
N/A N/A The entity endpoint datetime datetime flask json request g make_response flask.views MethodView mongoengine ValidationError tentd.lib.flask EntityBlueprint jsonify tentd.utils.exceptions APIBadRequest tentd.utils.auth require_authorization tentd.documents Notification tentd.documents.profiles Profile CoreProfile N/A entity N/A EntityBlueprint entity __name__ ProfilesView N/A MethodView N/A N/A The view for profile-based routes. get N/A N/A self N/A N/A N/A Return the profiles belonging to the entity N/A N/A jsonify N/A N/A p schema N/A N/A p to_json N/A p N/A N/A g entity profiles N/A N/A public N/A p permissions N/A N/A p permissions N/A public N/A post N/A N/A self N/A N/A N/A Create a new profile of the specified type.

        This is specific to pytentd, and is similar to PUT /profile/<schema>.

        TODO: Document this!
        TODO: This doesn't appear to be covered by any tests
         N/A N/A N/A schema N/A N/A request json N/A N/A N/A APIBadRequest A profile schema is required. N/A N/A jsonify N/A N/A N/A Profile entity N/A g entity N/A N/A request json save N/A require_authorization N/A N/A N/A entity route_class /profile endpoint profiles ProfileView N/A MethodView N/A N/A The view for individual profile-based routes. get N/A N/A self schema N/A N/A N/A Get a single profile. N/A N/A jsonify N/A N/A N/A N/A g entity profiles get_or_404 schema schema N/A require_authorization put N/A N/A self schema N/A N/A N/A Update a profile. N/A N/A N/A profile N/A N/A N/A N/A g entity profiles get schema schema N/A N/A N/A profile update_values N/A N/A request json N/A N/A N/A N/A Profile DoesNotExist N/A N/A profile N/A Profile entity N/A g entity schema schema N/A N/A request json N/A N/A jsonify N/A N/A profile save N/A delete N/A N/A self schema N/A N/A N/A Delete a profile type. N/A N/A schema N/A CoreProfile __schema__ N/A N/A N/A APIBadRequest Cannot delete the core profile. N/A profile N/A N/A N/A N/A g entity profiles get_or_404 schema schema N/A N/A N/A profile delete N/A N/A N/A make_response 200 N/A N/A N/A N/A entity route_class /profile/<path:schema> endpoint profile NotificationView N/A MethodView N/A N/A Routes relating to notifications. get N/A N/A self N/A N/A N/A Used to check the notification path is good.

        This is specific to pytentd, other tent servers may use a different
        route.

        Returns no data as it's only a check.. N/A N/A N/A make_response 200 N/A post N/A N/A self N/A N/A N/A Alerts of a notification.

        This will create a new notification object in the database. N/A post_data N/A N/A request json N/A notification N/A Notification N/A N/A notification entity N/A g entity N/A N/A notification post_id N/A post_data N/A id N/A N/A notification received_at N/A N/A datetime utcnow N/A N/A N/A notification save N/A N/A N/A make_response 200 N/A N/A N/A N/A entity route_class /notification endpoint notification