Ejemplo n.º 1
0
#coding=utf-8


from url_robots.utils import url

urlpatterns = [
    url(r'^s$', lambda x: (), name='profiles', robots_allow=True),
    url(r'^/(?P<nick>\w+)$', lambda x: ()),
    url(r'^/(?P<nick>\w+)/private', lambda x: (), name='profile_private', robots_allow=False),
    url(r'^/(?P<nick>\w+)/public', lambda x: (), name='profile_public', robots_allow=True),
    ]
Ejemplo n.º 2
0
from url_robots.utils import url
from . import views

urlpatterns = [
    url(r'^$', views.email_csv, name='email-csv', robots_allow=False),
]
Ejemplo n.º 3
0
from url_robots.utils import url
from . import views

urlpatterns = [
    url(r'^$', views.ClipCreateView.as_view(),
        name='clips-create', robots_allow=False),
    url(r'^(?P<pk>[0-9]+)/$', views.ClipUpdateView.as_view(),
        name='clips-update', robots_allow=False),
    url(r'^(?P<pk>[0-9]+)/delete$', views.ClipDeleteView.as_view(),
        name='clips-delete', robots_allow=False),
]
Ejemplo n.º 4
0
#coding=utf-8

from django.conf.urls.defaults import patterns, include

from url_robots.utils import url


urlpatterns = patterns('',
    url(r'^profile', include('url_robots.tests.urls_profile')),
)
Ejemplo n.º 5
0
    county_application_view,
    declaration_letter_view,
    application_done_view,
    application_transfer_view,
    admin_views,
    search_views,
    app_detail_views,
    application_note_views,
    tag_views,
    status_update_views,
)


urlpatterns = [
    # public views
    url(r'^$', public_views.home, name='intake-home', robots_allow=True),
    url(r'^privacy/$', public_views.privacy,
        name='intake-privacy', robots_allow=True),
    url(r'^partners/$', public_views.partner_list,
        name='intake-partner_list', robots_allow=True),
    url(r'^partners/(?P<organization_slug>[\w-]+)/$',
        public_views.partner_detail,
        name='intake-partner_detail', robots_allow=True),
    url(r'^recommendation-letters/$', public_views.recommendation_letters,
        name='intake-recommendation_letters', robots_allow=True),
    url(r'^personal-statement/$', public_views.personal_statement,
        name='intake-personal_statement', robots_allow=True),

    # public form processing views
    url(r'^apply/$', select_county_view.select_county,
        name='intake-apply', robots_allow=True),
Ejemplo n.º 6
0
from url_robots.utils import url
from . import views

urlpatterns = [
    url(r'^$',
        views.ClipCreateView.as_view(),
        name='clips-create',
        robots_allow=False),
    url(r'^(?P<pk>[0-9]+)/$',
        views.ClipUpdateView.as_view(),
        name='clips-update',
        robots_allow=False),
    url(r'^(?P<pk>[0-9]+)/delete$',
        views.ClipDeleteView.as_view(),
        name='clips-delete',
        robots_allow=False),
]
Ejemplo n.º 7
0
from url_robots.utils import url
from . import views

urlpatterns = [
    url(r'^$', views.email_csv,
        name='email-csv', robots_allow=False),

]
Ejemplo n.º 8
0
    select_county_view,
    county_application_view,
    declaration_letter_view,
    application_done_view,
    application_transfer_view,
    admin_views,
    search_views,
    app_detail_views,
    application_note_views,
    tag_views,
    status_update_views,
)

urlpatterns = [
    # public views
    url(r'^$', public_views.home, name='intake-home', robots_allow=True),
    url(r'^privacy/$',
        public_views.privacy,
        name='intake-privacy',
        robots_allow=True),
    url(r'^partners/$',
        public_views.partner_list,
        name='intake-partner_list',
        robots_allow=True),
    url(r'^partners/(?P<organization_slug>[\w-]+)/$',
        public_views.partner_detail,
        name='intake-partner_detail',
        robots_allow=True),
    url(r'^recommendation-letters/$',
        public_views.recommendation_letters,
        name='intake-recommendation_letters',
Ejemplo n.º 9
0
from url_robots.utils import url
from .views import contact, home

urlpatterns = [
    url(r'^$', home, name='partnerships-home', robots_allow=True),
    url(r'^get-in-touch$',
        contact,
        name='partnerships-contact',
        robots_allow=True),
]
Ejemplo n.º 10
0
from url_robots.utils import url
from .views import contact, home


urlpatterns = [
    url(r'^$', home, name='partnerships-home', robots_allow=True),
    url(r'^get-in-touch$',
        contact, name='partnerships-contact', robots_allow=True),
]
Ejemplo n.º 11
0
#coding=utf-8

from url_robots.utils import url

urlpatterns = [
    url(r'^s$', lambda x: (), name='profiles', robots_allow=True),
    url(r'^/(?P<nick>\w+)$', lambda x: ()),
    url(r'^/(?P<nick>\w+)/private',
        lambda x: (),
        name='profile_private',
        robots_allow=False),
    url(r'^/(?P<nick>\w+)/public',
        lambda x: (),
        name='profile_public',
        robots_allow=True),
]
Ejemplo n.º 12
0
)


def org_vs_staff_view_switch(org_user_view, staff_user_view):
    def switch(request, *args, **kwargs):
        if request.user.is_staff:
            return staff_user_view(request, *args, **kwargs)
        else:
            return org_user_view(request, *args, **kwargs)
    return switch


urlpatterns = [

    # PUBLIC VIEWS
    url(r'^$', public_views.home, name='intake-home', robots_allow=True),
    url(r'^privacy/$', public_views.privacy,
        name='intake-privacy', robots_allow=True),
    url(r'^partners/$', public_views.partner_list,
        name='intake-partner_list', robots_allow=True),
    url(r'^partners/(?P<organization_slug>[\w-]+)/$',
        public_views.partner_detail,
        name='intake-partner_detail', robots_allow=True),
    url(r'^recommendation-letters/$', public_views.recommendation_letters,
        name='intake-recommendation_letters', robots_allow=True),
    url(r'^personal-statement/$', public_views.personal_statement,
        name='intake-personal_statement', robots_allow=True),
    url(r'^stats/$', stats_views.stats,
        name='intake-stats', robots_allow=True),

    # PUBLIC FORM PROCESSING VIEWS
Ejemplo n.º 13
0
#coding=utf-8

from django.conf.urls import include

from url_robots.utils import url

urlpatterns = [
    url(r'^profile', include('url_robots.tests.urls_profile')),
]
Ejemplo n.º 14
0
#coding=utf-8

from django.conf.urls.defaults import patterns

from url_robots.utils import url

urlpatterns = patterns('',
    url(r'^s$', 'view', name='profiles', robots_allow=True),
    url(r'^/(?P<nick>\w+)$', 'view'),
    url(r'^/(?P<nick>\w+)/private', 'view', name='profile_private', robots_allow=False),
    url(r'^/(?P<nick>\w+)/public', 'view', name='profile_public', robots_allow=True),
    )
Ejemplo n.º 15
0

def org_vs_staff_view_switch(org_user_view, staff_user_view):
    def switch(request, *args, **kwargs):
        if request.user.is_staff:
            return staff_user_view(request, *args, **kwargs)
        else:
            return org_user_view(request, *args, **kwargs)

    return switch


urlpatterns = [

    # PUBLIC VIEWS
    url(r'^$', public_views.home, name='intake-home', robots_allow=True),
    url(r'^privacy/$',
        public_views.privacy,
        name='intake-privacy',
        robots_allow=True),
    url(r'^partners/$',
        public_views.partner_list,
        name='intake-partner_list',
        robots_allow=True),
    url(r'^partners/(?P<organization_slug>[\w-]+)/$',
        public_views.partner_detail,
        name='intake-partner_detail',
        robots_allow=True),
    url(r'^recommendation-letters/$',
        public_views.recommendation_letters,
        name='intake-recommendation_letters',