Example #1
0
 def multi(self, req, body=None):
     """Return multiple choices."""
     builder = views_versions.get_view_builder(req)
     return builder.build_choices(VERSIONS, req)
Example #2
0
 def index(self, req, body=None):
     """Return all versions."""
     builder = views_versions.get_view_builder(req)
     return builder.build_versions(VERSIONS)
Example #3
0
 def index(self, req, body=None):
     """Return all versions."""
     builder = views_versions.get_view_builder(req)
     return builder.build_versions(VERSIONS)
Example #4
0
 def multi(self, req, body=None):
     """Return multiple choices."""
     builder = views_versions.get_view_builder(req)
     return builder.build_choices(VERSIONS, req)
Example #5
0
    def show(self, req, id='v1'):
        builder = views_versions.get_view_builder(req)
        if id not in versions.VERSIONS:
            raise webob.exc.HTTPNotFound()

        return builder.build_version(versions.VERSIONS[id])