# Path: hubcave/game/views.py
# class GameRedirectView(RedirectView):
# class GameDetail(DetailView):
# class GameUpdate(UpdateView):
#     def get_redirect_url(self, *args, **kwargs):
#     def get_template_names(self):
#     def get_context_data(self, **kwargs):
#     def dispatch(self, request, *args, **kwargs):
#     def form_valid(self, form):


from django.conf.urls import patterns, url
from django.contrib.auth.decorators import login_required
from hubcave.game import views


urlpatterns = patterns(
    '',
    url(r'^game/update/(?P<pk>\w+)/$',
        login_required(views.GameUpdate.as_view(), login_url='/'),
        name='game_game_update'),
    url(r'^game/(?P<pk>\w+)/$',
        login_required(views.GameDetail.as_view(), login_url='/'),
        name='game_game'),
    url(r'^r/(?P<username>[a-zA-Z0-9_\-]+)/(?P<repository>[a-zA-Z0-9_\-]+)',

# Path: hubcave/game/views.py
# class GameRedirectView(RedirectView):
# class GameDetail(DetailView):
# class GameUpdate(UpdateView):
#     def get_redirect_url(self, *args, **kwargs):
#     def get_template_names(self):
#     def get_context_data(self, **kwargs):
#     def dispatch(self, request, *args, **kwargs):
#     def form_valid(self, form):


# Path: hubcave/game/urls.py
from django.conf.urls import patterns, url
from django.contrib.auth.decorators import login_required
from hubcave.game import views



urlpatterns = patterns(
    '',
    url(r'^game/update/(?P<pk>\w+)/$',
        login_required(views.GameUpdate.as_view(), login_url='/'),
        name='game_game_update'),
    url(r'^game/(?P<pk>\w+)/$',
        login_required(views.GameDetail.as_view(), login_url='/'),
        name='game_game'),
    url(r'^r/(?P<username>[a-zA-Z0-9_\-]+)/(?P<repository>[a-zA-Z0-9_\-]+)',

        login_required(views.GameRedirectView.as_view(), login_url='/'),