# -*- coding: utf-8 -*-
# Copyright (c) 2012 <NAME> <<EMAIL>>                  
# License: MIT (see LICENSE.TXT file) 


from django.conf.urls import patterns, include, url
from apps.common.urls import arg_id, arg_slug


T = arg_slug("team_link")
P = arg_slug("page_link")
L = arg_id("link_id")
CA = arg_id("concerned_id")
JR = arg_id("join_request_id")
RR = arg_id("remove_request_id")


urlpatterns = patterns("apps.team.views",

    url(r"^team/create$",                            "create"),
    url(r"^%s/created$" % T,                         "created"),
    url(r"^%s/members$" % T,                         "members"),
    url(r"^%s/replace_logo$" % T,                    "replace_logo"),
    url(r"^%s/link/create$" % T,                     "link_create"),
    url(r"^%s/link/delete/%s$" % (T, L),             "link_delete"),

    url(r"^%s/join_request/create$" % T,             "join_request_create"),
    url(r"^%s/join_request/created$" % T,            "join_request_created"),
    url(r"^%s/join_request/list$" % T,               "join_request_list"),
    url(r"^%s/join_request/process/%s$" % (T, JR),   "join_request_process"),

    url(r"^%s/remove_request/create/%s$" % (T, CA),  "remove_request_create"),
    url(r"^%s/remove_request/created$" % T,          "remove_request_created"),
    url(r"^%s/remove_request/list$" % T,             "remove_request_list"),
    url(r"^%s/remove_request/process/%s$" % (T, RR), "remove_request_process"),
)



# -*- coding: utf-8 -*-
# Copyright (c) 2012 <NAME> <<EMAIL>>                  
# License: MIT (see LICENSE.TXT file) 


from django.conf.urls import patterns, include, url
from apps.common.urls import arg_id, arg_slug


T = arg_slug("team_link")
P = arg_slug("page_link")
L = arg_id("link_id")
CA = arg_id("concerned_id")
JR = arg_id("join_request_id")
RR = arg_id("remove_request_id")


urlpatterns = patterns("apps.team.views",

    url(r"^team/create$",                            "create"),
    url(r"^%s/created$" % T,                         "created"),
    url(r"^%s/members$" % T,                         "members"),
    url(r"^%s/replace_logo$" % T,                    "replace_logo"),
    url(r"^%s/link/create$" % T,                     "link_create"),
    url(r"^%s/link/delete/%s$" % (T, L),             "link_delete"),

    url(r"^%s/join_request/create$" % T,             "join_request_create"),
    url(r"^%s/join_request/created$" % T,            "join_request_created"),
    url(r"^%s/join_request/list$" % T,               "join_request_list"),
    url(r"^%s/join_request/process/%s$" % (T, JR),   "join_request_process"),

    url(r"^%s/remove_request/create/%s$" % (T, CA),  "remove_request_create"),
    url(r"^%s/remove_request/created$" % T,          "remove_request_created"),
    url(r"^%s/remove_request/list$" % T,             "remove_request_list"),
    url(r"^%s/remove_request/process/%s$" % (T, RR), "remove_request_process"),
)



# -*- coding: utf-8 -*- # Copyright (c) 2012 <NAME> <<EMAIL>> # License: MIT (see LICENSE.TXT file)