from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals

from . import hooks
from kolibri.core.auth.constants.user_kinds import COACH
from kolibri.core.hooks import NavigationHook
from kolibri.core.hooks import RoleBasedRedirectHook
from kolibri.core.webpack import hooks as webpack_hooks
from kolibri.plugins.base import KolibriPluginBase


class Coach(KolibriPluginBase):
    untranslated_view_urls = "api_urls"
    translated_view_urls = "urls"


class CoachRedirect(RoleBasedRedirectHook):
    role = COACH

    @property
    def url(self):
        return self.plugin_url(Coach, "coach")


class CoachNavItem(NavigationHook, webpack_hooks.WebpackBundleHook):
    unique_slug = "coach_side_nav"


class CoachAsset(webpack_hooks.WebpackBundleHook):
    unique_slug = "coach_module"


class CoachInclusionHook(hooks.CoachSyncHook):
    bundle_class = CoachAsset

from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals

from kolibri.core.auth.constants.user_kinds import COACH
from kolibri.core.hooks import NavigationHook
from kolibri.core.hooks import RoleBasedRedirectHook
from kolibri.core.webpack import hooks as webpack_hooks
from kolibri.plugins.base import KolibriPluginBase


class Coach(KolibriPluginBase):
    untranslated_view_urls = "api_urls"
    translated_view_urls = "urls"


class CoachRedirect(RoleBasedRedirectHook):
    role = COACH

    @property
    def url(self):
        return self.plugin_url(Coach, "coach")


class CoachNavItem(NavigationHook, webpack_hooks.WebpackBundleHook):
    unique_slug = "coach_side_nav"


class CoachAsset(webpack_hooks.WebpackBundleHook):
    unique_slug = "coach_module"

Remove undefined import in coach plugin.
Remove undefined import in coach plugin.

  from __future__ import absolute_import
  from __future__ import print_function
  from __future__ import unicode_literals
  
- from . import hooks
  from kolibri.core.auth.constants.user_kinds import COACH
  from kolibri.core.hooks import NavigationHook
  from kolibri.core.hooks import RoleBasedRedirectHook
  from kolibri.core.webpack import hooks as webpack_hooks
  from kolibri.plugins.base import KolibriPluginBase
  
  
  class Coach(KolibriPluginBase):
      untranslated_view_urls = "api_urls"
      translated_view_urls = "urls"
  
  
  class CoachRedirect(RoleBasedRedirectHook):
      role = COACH
  
      @property
      def url(self):
          return self.plugin_url(Coach, "coach")
  
  
  class CoachNavItem(NavigationHook, webpack_hooks.WebpackBundleHook):
      unique_slug = "coach_side_nav"
  
  
  class CoachAsset(webpack_hooks.WebpackBundleHook):
      unique_slug = "coach_module"
  
- 
- class CoachInclusionHook(hooks.CoachSyncHook):
-     bundle_class = CoachAsset
- 
Remove undefined import in coach plugin.
## Code Before:
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals

from . import hooks
from kolibri.core.auth.constants.user_kinds import COACH
from kolibri.core.hooks import NavigationHook
from kolibri.core.hooks import RoleBasedRedirectHook
from kolibri.core.webpack import hooks as webpack_hooks
from kolibri.plugins.base import KolibriPluginBase


class Coach(KolibriPluginBase):
    untranslated_view_urls = "api_urls"
    translated_view_urls = "urls"


class CoachRedirect(RoleBasedRedirectHook):
    role = COACH

    @property
    def url(self):
        return self.plugin_url(Coach, "coach")


class CoachNavItem(NavigationHook, webpack_hooks.WebpackBundleHook):
    unique_slug = "coach_side_nav"


class CoachAsset(webpack_hooks.WebpackBundleHook):
    unique_slug = "coach_module"


class CoachInclusionHook(hooks.CoachSyncHook):
    bundle_class = CoachAsset

## Instruction:
Remove undefined import in coach plugin.
## Code After:
from __future__ import absolute_import
from __future__ import print_function
from __future__ import unicode_literals

from kolibri.core.auth.constants.user_kinds import COACH
from kolibri.core.hooks import NavigationHook
from kolibri.core.hooks import RoleBasedRedirectHook
from kolibri.core.webpack import hooks as webpack_hooks
from kolibri.plugins.base import KolibriPluginBase


class Coach(KolibriPluginBase):
    untranslated_view_urls = "api_urls"
    translated_view_urls = "urls"


class CoachRedirect(RoleBasedRedirectHook):
    role = COACH

    @property
    def url(self):
        return self.plugin_url(Coach, "coach")


class CoachNavItem(NavigationHook, webpack_hooks.WebpackBundleHook):
    unique_slug = "coach_side_nav"


class CoachAsset(webpack_hooks.WebpackBundleHook):
    unique_slug = "coach_module"
