def collection(self, resource_name=None, path=None, audiences=None,
                 scopes=None, allowed_client_ids=None):

    def apiserving_api_decorator(api_class):
      """Decorator for ProtoRPC class that configures Google's API server.

      Args:
        api_class: remote.Service class, ProtoRPC service class being wrapped.

      Returns:
        Same class with API attributes assigned in api_info.
      """
      api_class.api_info = _ApiInfo(
          self.__common_info, resource_name=resource_name,
          path=path, audiences=audiences, scopes=scopes,
          allowed_client_ids=allowed_client_ids)
      return api_class

    return apiserving_api_decorator
Pick at random a photo from a given photologue gallery and return the img tag to display it.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/endpoints/api_config.py/_ApiDecorator.collection--crossover with--dataset/ETHPy150Open jdriscoll/django-photologue/photologue/templatetags/photologue_tags.py/get_rotating_photo