# -*- coding: utf-8 -*- # Copyright (c) 2012 Fabian Barkhau <*****@*****.**> # 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") B = arg_id("blog_id") urlpatterns = patterns( "apps.blog.views", url(r"^%s$" % T, "listing"), url(r"^%s/$" % T, "listing"), url(r"^%s/blog$" % T, "listing"), url(r"^%s/blog/create$" % T, "create"), url(r"^%s/blog/edit/%s$" % (T, B), "edit"), url(r"^%s/blog/delete/%s$" % (T, B), "delete"), )
# -*- coding: utf-8 -*- # Copyright (c) 2012 Fabian Barkhau <*****@*****.**> # 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") B = arg_id("bike_id") urlpatterns = patterns("apps.bike.views", url(r"^%s/bikes$" % T, "listing"), url(r"^%s/bike/view/%s$" % (T, B), "view", { "tab" : "OVERVIEW" }), url(r"^%s/bike/edit/%s$" % (T, B), "edit"), url(r"^%s/bike/delete/%s$" % (T, B), "delete"), url(r"^%s/bike/view/%s/borrows$" % (T, B), "view", { "tab" : "BORROWS" }), url(r"^%s/bike/create$" % T, "create"), )
# -*- coding: utf-8 -*- # Copyright (c) 2012 Fabian Barkhau <*****@*****.**> # License: MIT (see LICENSE.TXT file) from django.conf.urls import patterns, include, url from apps.common.urls import arg_id, arg_slug, arg_username L = arg_id("link_id") U = arg_username("username") urlpatterns = patterns( "apps.account.views", url(r"^account/profile$", "profile"), url(r"^account/view/%s$" % U, "view"), url(r"^account/set_passport$", "set_passport", {"wizard": False}), url(r"^account/edit$", "edit", {"wizard": False}), url(r"^account/link/create$", "link_create"), url(r"^account/link/delete/%s$" % L, "link_delete"), # this url because allauth url(r"^accounts/profile/$", "edit", {"wizard": True}), url(r"^account/wiz/passport", "set_passport", {"wizard": True}), )
# -*- coding: utf-8 -*- # Copyright (c) 2012 Fabian Barkhau <*****@*****.**> # License: MIT (see LICENSE.TXT file) from django.conf.urls import patterns, include, url from apps.common.urls import arg_id, arg_slug p = { "team" : arg_slug("team_link"), "bike" : arg_id("bike_id"), "borrow" : arg_id("borrow_id"), } urlpatterns = patterns("apps.borrow.views", url(r"^borrows$", "borrower_list"), url(r"^borrow/arrivals$", "arrivals"), url(r"^borrow/departures$", "departures"), url(r"^borrow/view/%(borrow)s$" % p, "borrower_view"), url(r"^borrow/edit/%(borrow)s$" % p, "borrower_edit"), url(r"^borrow/cancel/%(borrow)s$" % p, "borrower_cancel"), url(r"^borrow/rate/%(borrow)s$" % p, "borrower_rate"), url(r"^borrow/comment/%(borrow)s$" % p, "comment"), url(r"^%(team)s/borrows$" % p, "lender_list"), url(r"^%(team)s/borrow/view/%(borrow)s$" % p, "lender_view"), url(r"^%(team)s/borrow/edit/%(borrow)s$" % p, "lender_edit"), url(r"^%(team)s/borrow/edit_dest/%(borrow)s$" % p, "lender_edit_dest"), url(r"^%(team)s/borrow/respond/%(borrow)s$" % p, "respond"),
# -*- coding: utf-8 -*- # Copyright (c) 2012 Fabian Barkhau <*****@*****.**> # License: MIT (see LICENSE.TXT file) from django.conf.urls import patterns, include, url from apps.common.urls import arg_id, arg_slug P = arg_id("picture_id") G = arg_id("gallery_id") T = arg_slug("team_link") urlpatterns = patterns( "apps.gallery.views", url(r"^gallery/setprimary/%s$" % P, "setprimary"), # update primary picture url(r"^gallery/add/%s$" % G, "add"), # add picture to gallery url(r"^gallery/remove/%s$" % P, "remove"), # remove gallery picture url(r"^gallery/list/%s$" % G, "listing"), # view gallery url(r"^gallery/view/%s$" % P, "view"), # view picture url(r"^%s/gallery/setprimary/%s$" % (T, P), "setprimary"), # update primary picture url(r"^%s/gallery/add/%s$" % (T, G), "add"), # add picture to gallery url(r"^%s/gallery/remove/%s$" % (T, P), "remove"), # remove gallery picture url(r"^%s/gallery/list/%s$" % (T, G), "listing"), # view gallery url(r"^%s/gallery/view/%s$" % (T, P), "view"), # view picture )
# -*- coding: utf-8 -*- # Copyright (c) 2012 Fabian Barkhau <*****@*****.**> # License: MIT (see LICENSE.TXT file) from django.conf.urls import patterns, include, url from apps.common.urls import arg_id, arg_slug P = arg_id("picture_id") G = arg_id("gallery_id") T = arg_slug("team_link") urlpatterns = patterns("apps.gallery.views", url(r"^gallery/setprimary/%s$" % P, "setprimary"), # update primary picture url(r"^gallery/add/%s$" % G, "add"), # add picture to gallery url(r"^gallery/remove/%s$" % P, "remove"), # remove gallery picture url(r"^gallery/list/%s$" % G, "listing"), # view gallery url(r"^gallery/view/%s$" % P, "view"), # view picture url(r"^%s/gallery/setprimary/%s$" % (T, P), "setprimary"), # update primary picture url(r"^%s/gallery/add/%s$" % (T, G), "add"), # add picture to gallery url(r"^%s/gallery/remove/%s$" % (T, P), "remove"), # remove gallery picture url(r"^%s/gallery/list/%s$" % (T, G), "listing"), # view gallery url(r"^%s/gallery/view/%s$" % (T, P), "view"), # view picture )
# -*- coding: utf-8 -*- # Copyright (c) 2012 Fabian Barkhau <*****@*****.**> # 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") S = arg_id("station_id") urlpatterns = patterns( "apps.station.views", url(r"^stations$", "listing"), url(r"^station/view/%s$" % S, "view", {"tab": "OVERVIEW"}), url(r"^station/view/%s/bikes$" % S, "view", {"tab": "BIKES"}), url(r"^station/view/%s/departures$" % S, "view", {"tab": "DEPARTURES"}), url(r"^station/view/%s/arrivals$" % S, "view", {"tab": "ARRIVALS"}), url(r"^%s/stations$" % T, "listing"), url(r"^%s/station/create$" % T, "create"), url(r"^%s/station/edit/%s$" % (T, S), "edit"), url(r"^%s/station/delete/%s$" % (T, S), "delete"), url(r"^%s/station/view/%s$" % (T, S), "view", {"tab": "OVERVIEW"}), url(r"^%s/station/view/%s/bikes$" % (T, S), "view", {"tab": "BIKES"}), url(r"^%s/station/view/%s/departures$" % (T, S), "view", {"tab": "DEPARTURES"}), url(r"^%s/station/view/%s/arrivals$" % (T, S), "view", {"tab": "ARRIVALS"}), )
# -*- coding: utf-8 -*- # Copyright (c) 2012 Fabian Barkhau <*****@*****.**> # 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 Fabian Barkhau <*****@*****.**> # License: MIT (see LICENSE.TXT file) from django.conf.urls import patterns, include, url from apps.common.urls import arg_id, arg_slug, arg_username L = arg_id("link_id") U = arg_username("username") urlpatterns = patterns("apps.account.views", url(r"^account/profile$", "profile"), url(r"^account/view/%s$" % U, "view"), url(r"^account/set_passport$", "set_passport", { "wizard" : False }), url(r"^account/edit$", "edit", { "wizard" : False }), url(r"^account/link/create$", "link_create"), url(r"^account/link/delete/%s$" % L, "link_delete"), # this url because allauth url(r"^accounts/profile/$", "edit", { "wizard" : True }), url(r"^account/wiz/passport", "set_passport", { "wizard" : True }), )
# -*- coding: utf-8 -*- # Copyright (c) 2012 Fabian Barkhau <*****@*****.**> # 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"),
# -*- coding: utf-8 -*- # Copyright (c) 2012 Fabian Barkhau <*****@*****.**> # 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") B = arg_id("blog_id") urlpatterns = patterns("apps.blog.views", url(r"^%s$" % T, "listing"), url(r"^%s/$" % T, "listing"), url(r"^%s/blog$" % T, "listing"), url(r"^%s/blog/create$" % T, "create"), url(r"^%s/blog/edit/%s$" % (T, B), "edit"), url(r"^%s/blog/delete/%s$" % (T, B), "delete"), )
# -*- coding: utf-8 -*- # Copyright (c) 2012 Fabian Barkhau <*****@*****.**> # 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") S = arg_id("station_id") urlpatterns = patterns("apps.station.views", url(r"^stations$", "listing"), url(r"^station/view/%s$" % S, "view", { "tab" : "OVERVIEW" }), url(r"^station/view/%s/bikes$" % S, "view", { "tab" : "BIKES" }), url(r"^station/view/%s/departures$" % S, "view", { "tab" : "DEPARTURES" }), url(r"^station/view/%s/arrivals$" % S, "view", { "tab" : "ARRIVALS" }), url(r"^%s/stations$" % T, "listing"), url(r"^%s/station/create$" % T, "create"), url(r"^%s/station/edit/%s$" % (T, S), "edit"), url(r"^%s/station/delete/%s$" % (T, S), "delete"), url(r"^%s/station/view/%s$" % (T, S), "view", { "tab" : "OVERVIEW" }), url(r"^%s/station/view/%s/bikes$" % (T, S), "view", { "tab" : "BIKES" }), url(r"^%s/station/view/%s/departures$" % (T, S), "view", { "tab" : "DEPARTURES" }), url(r"^%s/station/view/%s/arrivals$" % (T, S), "view", { "tab" : "ARRIVALS" }), )