pulp :: server :: webservices :: controllers :: repositories :: RepositoryActionStatus :: Class RepositoryActionStatus
[hide private]
[frames] | no frames]

Class RepositoryActionStatus

source code

         object --+        
                  |        
base.JSONController --+    
                      |    
   base.AsyncController --+
                          |
                         RepositoryActionStatus

Instance Methods [hide private]
 
GET(self, id, action_name, action_id)
Check the status of a sync operation.
source code
 
DELETE(self, id, action_name, action_id)
Cancel an action
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

    Inherited from base.AsyncController
 
_status_path(self, id)
Construct a URL path that can be used to poll a task's status A status path is constructed as follows: /<collection>/<object id>/<action>/<action id>/ A GET request sent to this path will get a JSON encoded status object
source code
 
_task_to_dict(self, task)
Convert a task to a dictionary (non-destructive) while retaining the pertinent information for a status check but in a more convenient form for JSON serialization.
source code
 
accepted(self, status)
Return an accepted response with status information in the body.
source code
 
cancel_task(self, task)
Cancel the passed in task
source code
 
find_task(self, id)
Find and return a task with the given id
source code
 
start_task(self, func, args=[], kwargs={}, timeout=None, unique=False)
Execute the function and its arguments as an asynchronous task.
source code
 
task_status(self, id)
Get the current status of an asynchronous task.
source code
 
timeout(self, data)
Parse any timeout values out of the passed in data
source code
    Inherited from base.JSONController
 
_output(self, data)
JSON encode the response and set the appropriate headers
source code
 
bad_request(self, msg=None)
Return a not found error.
source code
 
conflict(self, msg=None)
Return a conflict error.
source code
 
created(self, location, data)
Return a created response.
source code
 
filter_results(self, results, filters)
Returns: list of model instances that meat the criteria in the filters
source code
 
filters(self, valid)
Fetch any parameters passed on the url
source code
 
internal_server_error(self, msg=None)
Return an internal server error.
source code
 
method_not_allowed(self, msg=None)
Return a method not allowed error.
source code
 
no_content(self) source code
 
not_acceptable(self, msg=None)
Return a not acceptable error.
source code
 
not_found(self, msg=None)
Return a not found error.
source code
 
ok(self, data)
Return an ok response.
source code
 
params(self)
JSON decode the objects in the requests body and return them
source code
 
unauthorized(self, msg=None) source code
Static Methods [hide private]
    Inherited from base.JSONController
 
error_handler(method)
Static controller method wrapper that catches internal errors and reports them as JSON serialized trace back strings
source code
 
user_auth_required(roles=())
Static Controller method to check user permissions on web service calls
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

GET(self, id, action_name, action_id)

source code 

Check the status of a sync operation.

Parameters:
  • id - repository id
  • action_name - name of the action
  • action_id - action id
Returns:
action status information
Decorators:
  • @JSONController.error_handler
  • @RoleCheck(admin= True)

DELETE(self, id, action_name, action_id)

source code 

Cancel an action

Decorators:
  • @JSONController.error_handler
  • @RoleCheck(admin= True)