Module Expr Str Assign NameStore Str Import alias Import alias Import alias Import alias ImportFrom alias alias ImportFrom alias alias ImportFrom alias ImportFrom alias alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str Str FunctionDef arguments args NameParam defaults NameLoad body Expr Str FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam defaults vararg kwarg body Assert CompareIn NameLoad ListLoad NameLoad Str Str Assign AttributeStore NameLoad attr Yield Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list AttributeLoad NameLoad attr Return NameLoad decorator_list Return NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad Call NameLoad FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr body Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Dict Str Str Str AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Yield Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad If BoolOpOr CompareIs NameLoad NameLoad UnaryOpNot AttributeLoad NameLoad attr body Raise Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call NameLoad NameLoad decorator_list AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str keyword AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr Return NameLoad decorator_list decorator_list
N/A N/A Handlers for viewfinder web application administration.

  AdminHandler: top-level admin handler
 N/A __author__ spencer@emailscrubbed.com (Spencer Kimball) N/A httplib N/A logging N/A os N/A traceback tornado gen web viewfinder.backend.base counters handler viewfinder.backend.db.db_client DBClient viewfinder.backend.db schema vf_schema viewfinder.backend.db.admin_permissions AdminPermissions viewfinder.backend.www basic_auth N/A _req_per_sec N/A N/A counters define_rate viewfinder.admin.www.requests_per_second Administrator website requests handled per second. require_permission N/A N/A level N/A None N/A N/A Decorator to be used in admin get/post methods.
  Permission required may be 'root', 'support', or None.
  If None is specified, the user must still be in the AdminPermissions table.
  Permissions are stored in self._permissions for later access.
   decorator N/A N/A f N/A N/A wrapper N/A N/A self N/A args kwargs N/A N/A N/A level N/A None root support N/A N/A self _permissions N/A N/A N/A gen Task N/A self QueryAdminPermissions N/A N/A level root N/A N/A N/A N/A self CheckIsRoot N/A N/A N/A level support N/A N/A N/A N/A self CheckIsSupport N/A N/A f self args kwargs N/A N/A gen engine N/A wrapper N/A N/A decorator N/A AdminHandler N/A N/A basic_auth BasicAuthHandler N/A N/A Directory of administration tasks. prepare N/A N/A self N/A N/A N/A N/A N/A N/A basic_auth BasicAuthHandler prepare self N/A N/A self _auth_credentials N/A N/A self get_current_user N/A N/A N/A _req_per_sec increment N/A get N/A N/A self N/A N/A N/A t_dict N/A N/A self PermissionsTemplateDict N/A N/A N/A self render admin.html t_dict N/A N/A N/A handler authenticated N/A N/A handler asynchronous datastore True N/A require_permission CheckIsRoot N/A N/A self N/A N/A N/A Check whether the permissions object has a ROOT rights entry. N/A N/A N/A N/A N/A self _permissions IsRoot N/A N/A N/A N/A web HTTPError N/A httplib FORBIDDEN N/A User %s does not have root credentials. N/A self _auth_credentials N/A CheckIsSupport N/A N/A self N/A N/A N/A Check whether the permissions object has a SUPPORT rights entry. Root users do not automatically get
    granted support rights.
     N/A N/A N/A N/A N/A self _permissions IsSupport N/A N/A N/A N/A web HTTPError N/A httplib FORBIDDEN N/A User %s does not have support credentials. N/A self _auth_credentials N/A PermissionsTemplateDict N/A N/A self N/A N/A N/A Dict of variables used in all admin templates. N/A N/A auth_credentials is_root is_support N/A self _auth_credentials N/A N/A N/A self _permissions IsRoot N/A N/A N/A self _permissions IsSupport N/A QueryAdminPermissions N/A N/A self callback N/A N/A N/A Get set of permissions for user. Raise an error if the user does not have an entry,
    of if the set of rights is empty.
     N/A permissions N/A N/A N/A gen Task N/A AdminPermissions Query N/A self _client N/A self _auth_credentials None must_exist False N/A N/A N/A permissions None N/A N/A permissions rights N/A N/A N/A N/A web HTTPError N/A httplib FORBIDDEN N/A User %s has no credentials. N/A self _auth_credentials N/A N/A callback permissions N/A N/A gen engine _handle_request_exception N/A N/A self value N/A N/A N/A Handles presentation of an exception condition to the admin.
     N/A N/A N/A logging exception error in admin page N/A N/A N/A self render admin_error.html auth_credentials N/A self _auth_credentials is_root False is_support False title value message N/A N/A traceback format_exc N/A True N/A N/A