Add some missing documentation.
This commit is contained in:
parent
ae6bfb072d
commit
ab60a10a93
2 changed files with 3 additions and 0 deletions
|
@ -60,6 +60,7 @@ class RepositoryImage(RepositoryParamResource):
|
||||||
@require_repo_read
|
@require_repo_read
|
||||||
@nickname('getImage')
|
@nickname('getImage')
|
||||||
def get(self, namespace, repository, image_id):
|
def get(self, namespace, repository, image_id):
|
||||||
|
""" Get the information available for the specified image. """
|
||||||
image = model.get_repo_image(namespace, repository, image_id)
|
image = model.get_repo_image(namespace, repository, image_id)
|
||||||
if not image:
|
if not image:
|
||||||
abort(404)
|
abort(404)
|
||||||
|
@ -75,6 +76,7 @@ class RepositoryImageChanges(RepositoryParamResource):
|
||||||
@require_repo_read
|
@require_repo_read
|
||||||
@nickname('getImageChanges')
|
@nickname('getImageChanges')
|
||||||
def get(self, namespace, repository, image_id):
|
def get(self, namespace, repository, image_id):
|
||||||
|
""" Get the list of changes for the specified image. """
|
||||||
image = model.get_repo_image(namespace, repository, image_id)
|
image = model.get_repo_image(namespace, repository, image_id)
|
||||||
|
|
||||||
if not image:
|
if not image:
|
||||||
|
|
|
@ -107,6 +107,7 @@ class RepositoryUserPermission(RepositoryParamResource):
|
||||||
@require_repo_admin
|
@require_repo_admin
|
||||||
@nickname('getUserPermission')
|
@nickname('getUserPermission')
|
||||||
def get(self, namespace, repository, username):
|
def get(self, namespace, repository, username):
|
||||||
|
""" Get the Fetch the permission for the specified user. """
|
||||||
logger.debug('Get repo: %s/%s permissions for user %s' %
|
logger.debug('Get repo: %s/%s permissions for user %s' %
|
||||||
(namespace, repository, username))
|
(namespace, repository, username))
|
||||||
perm = model.get_user_reponame_permission(username, namespace, repository)
|
perm = model.get_user_reponame_permission(username, namespace, repository)
|
||||||
|
|
Reference in a new issue