Merge "Raise an error when no slug on tab group"

This commit is contained in:
Jenkins 2014-03-10 21:02:19 +00:00 committed by Gerrit Code Review
commit c3ca2b5560
1 changed files with 3 additions and 0 deletions

View File

@ -93,6 +93,9 @@ class TabGroup(html.HTMLElement):
if not hasattr(self, "tabs"):
raise NotImplementedError('%s must declare a "tabs" attribute.'
% self.__class__)
if not self.slug:
raise NotImplementedError('%s must declare a "slug" attribute.'
% self.__class__)
self.request = request
self.kwargs = kwargs
self._data = None