Example #1
0
 def get_context_data(self, request):
     resource = self.tab_group.kwargs['resource']
     resource_url = mappings.resource_to_url(resource)
     return {
         "resource": resource,
         "resource_url": resource_url,
         "metadata": self.tab_group.kwargs['metadata']}
Example #2
0
 def get_context_data(self, request):
     resource = self.tab_group.kwargs['resource']
     resource_url = mappings.resource_to_url(resource)
     return {
         "resource": resource,
         "resource_url": resource_url,
         "metadata": self.tab_group.kwargs['metadata']}
Example #3
0
 def assertMappingUrl(url, resource_type, physical_resource_id):
     mock = MockResource(resource_type, physical_resource_id)
     mock_url = mappings.resource_to_url(mock)
     self.assertEqual(url, mock_url)
 def assertMappingUrl(url, resource_type, physical_resource_id):
     mock = MockResource(resource_type, physical_resource_id)
     mock_url = mappings.resource_to_url(mock)
     self.assertEqual(url, mock_url)