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


urlpatterns = patterns("apps.page.views",
    url(r"^%s/page/create$" % T,         "create"),
    url(r"^%s/page/edit/%s$" % (T, P),   "edit"),
    url(r"^%s/page/delete/%s$" % (T, P), "delete"),
    url(r"^%s/%s$" % (T, P),             "view"),

# 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/page/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")


urlpatterns = patterns("apps.page.views",
    url(r"^%s/page/create$" % T,         "create"),
    url(r"^%s/page/edit/%s$" % (T, P),   "edit"),
    url(r"^%s/page/delete/%s$" % (T, P), "delete"),
    url(r"^%s/%s$" % (T, P),             "view"),

)