Add some missing documentation.

This commit is contained in:
jakedt 2014-03-14 13:27:56 -04:00
parent ae6bfb072d
commit ab60a10a93
2 changed files with 3 additions and 0 deletions

View file

@ -60,6 +60,7 @@ class RepositoryImage(RepositoryParamResource):
@require_repo_read
@nickname('getImage')
def get(self, namespace, repository, image_id):
""" Get the information available for the specified image. """
image = model.get_repo_image(namespace, repository, image_id)
if not image:
abort(404)
@ -75,6 +76,7 @@ class RepositoryImageChanges(RepositoryParamResource):
@require_repo_read
@nickname('getImageChanges')
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)
if not image:

View file

@ -107,6 +107,7 @@ class RepositoryUserPermission(RepositoryParamResource):
@require_repo_admin
@nickname('getUserPermission')
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' %
(namespace, repository, username))
perm = model.get_user_reponame_permission(username, namespace, repository)