# Path: apps/common/urls.py
# def arg_id(name):
#     return _build_arg(name, ID)
# 
# def arg_slug(name):
#     return _build_arg(name, SLUG)


from django.conf.urls import patterns, include, url
from apps.common.urls import arg_id, arg_slug
# -*- coding: utf-8 -*-
# Copyright (c) 2012 Fabian Barkhau <fabian.barkhau@gmail.com>                  
# License: MIT (see LICENSE.TXT file) 




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"),

# Path: apps/common/urls.py
# def arg_id(name):
#     return _build_arg(name, ID)
# 
# def arg_slug(name):
#     return _build_arg(name, SLUG)


# Path: apps/team/urls.py
from django.conf.urls import patterns, include, url
from apps.common.urls import arg_id, arg_slug

# -*- coding: utf-8 -*-
# Copyright (c) 2012 Fabian Barkhau <fabian.barkhau@gmail.com>                  
# License: MIT (see LICENSE.TXT file) 




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"),