예제 #1
0
 def show(self, req):
     builder = views_versions.get_view_builder(req)
     return builder.build_version(VERSIONS['v1.0'])
예제 #2
0
 def multi(self, req):
     """Return multiple choices."""
     builder = views_versions.get_view_builder(req)
     return builder.build_choices(VERSIONS, req)
예제 #3
0
 def index(self, req):
     """Return all versions."""
     builder = views_versions.get_view_builder(req)
     return builder.build_versions(VERSIONS)
예제 #4
0
 def show(self, req):
     builder = views_versions.get_view_builder(req)
     return builder.build_version(VERSIONS['v1.0'])
예제 #5
0
 def multi(self, req):
     """Return multiple choices."""
     builder = views_versions.get_view_builder(req)
     return builder.build_choices(VERSIONS, req)
예제 #6
0
 def index(self, req):
     """Return all versions."""
     builder = views_versions.get_view_builder(req)
     return builder.build_versions(VERSIONS)