Пример #1
0
 def show(self, req):
     builder = views_versions.get_view_builder(req)
     return builder.build_version(_KNOWN_VERSIONS['v1.0'])
Пример #2
0
 def multi(self, req):
     """Return multiple choices."""
     builder = views_versions.get_view_builder(req)
     return builder.build_choices(get_supported_versions(), req)
Пример #3
0
 def index(self, req):
     """Return all versions."""
     builder = views_versions.get_view_builder(req)
     return builder.build_versions(get_supported_versions())
Пример #4
0
 def show(self, req):
     builder = views_versions.get_view_builder(req)
     return builder.build_version(_KNOWN_VERSIONS['v1.0'])
Пример #5
0
 def multi(self, req):
     """Return multiple choices."""
     builder = views_versions.get_view_builder(req)
     return builder.build_choices(get_supported_versions(), req)
Пример #6
0
 def index(self, req):
     """Return all versions."""
     builder = views_versions.get_view_builder(req)
     return builder.build_versions(get_supported_versions())