Fix some documentation.

This commit is contained in:
jakedt 2014-03-14 13:24:55 -04:00
parent cd276773ff
commit ae6bfb072d

View file

@ -91,7 +91,7 @@ class RepositoryToken(RepositoryParamResource):
@require_repo_admin
@nickname('getTokens')
def get(self, namespace, repository, code):
""" Fetch the specified token information. """
""" Fetch the specified repository token information. """
try:
perm = model.get_repo_delegate_token(namespace, repository, code)
except model.InvalidTokenException:
@ -103,6 +103,7 @@ class RepositoryToken(RepositoryParamResource):
@nickname('changeToken')
@validate_json_request('TokenPermission')
def put(self, namespace, repository, code):
""" Update the permissions for the specified repository token. """
new_permission = request.get_json()
logger.debug('Setting permission to: %s for code %s' %
@ -121,6 +122,7 @@ class RepositoryToken(RepositoryParamResource):
@require_repo_admin
@nickname('deleteToken')
def delete(self, namespace, repository, code):
""" Delete the repository token. """
token = model.delete_delegate_token(namespace, repository, code)
log_action('delete_repo_accesstoken', namespace,