Пример #1
0
	def prepend_urls(self):
		return	[
			surl(r"^<resource_name={name}>/login{slash}$".format(**self._meta.urlargs), self.wrap_view('dispatch_login'), name='api_user_login'),
			url(r"^(?P<resource_name>%s)/(?P<pk>\w[\w/-]*)/playlists%s$" % (self._meta.resource_name, trailing_slash()), self.wrap_view('get_playlist'), name="api_get_playlist"),
			url(r"^(?P<resource_name>%s)/(?P<pk>\w[\w/-]*)/playlists/(?P<pk2>\w[\w/-]*)%s$" % (self._meta.resource_name, trailing_slash()), self.wrap_view('get_songs'), name="api_get_songs"),
			url(r"^(?P<resource_name>%s)/(?P<pk>\w[\w/-]*)/songs/(?P<pk3>\w[\w/-]*)%s$" % (self._meta.resource_name, trailing_slash()), self.wrap_view('get_song'), name="api_get_song"),
			]
Пример #2
0
 def prepend_urls(self):
     return [
         surl(r"^<resource_name={name}>/login{slash}$".format(
             **self._meta.urlargs),
              self.wrap_view('dispatch_login'),
              name='api_user_login'),
         url(r"^(?P<resource_name>%s)/(?P<pk>\w[\w/-]*)/playlists%s$" %
             (self._meta.resource_name, trailing_slash()),
             self.wrap_view('get_playlist'),
             name="api_get_playlist"),
         url(r"^(?P<resource_name>%s)/(?P<pk>\w[\w/-]*)/playlists/(?P<pk2>\w[\w/-]*)%s$"
             % (self._meta.resource_name, trailing_slash()),
             self.wrap_view('get_songs'),
             name="api_get_songs"),
         url(r"^(?P<resource_name>%s)/(?P<pk>\w[\w/-]*)/songs/(?P<pk3>\w[\w/-]*)%s$"
             % (self._meta.resource_name, trailing_slash()),
             self.wrap_view('get_song'),
             name="api_get_song"),
     ]
Пример #3
0
from apps.wallposts.views import WallPostDetail, TextWallPostList, MediaWallPostList, MediaWallPostPhotoList, MediaWallPostPhotoDetail
from django.conf.urls import patterns, url
from surlex.dj import surl
from .views import ReactionList, ReactionDetail, WallPostList

urlpatterns = patterns('',
    url(r'^$', WallPostList.as_view(), name='wallpost-list'),
    surl(r'^<pk:#>$', WallPostDetail.as_view(), name='wallpost-detail'),

    url(r'^textwallposts/$', TextWallPostList.as_view(), name='text-wallpost-list'),
    url(r'^mediawallposts/$', MediaWallPostList.as_view(), name='media-wallpost-list'),

    url(r'^photos/$', MediaWallPostPhotoList.as_view(), name='mediawallpost-photo-list'),
    surl(r'^photos/<pk:#>$', MediaWallPostPhotoDetail.as_view(), name='mediawallpost-photo-list'),

    url(r'^reactions/$', ReactionList.as_view(), name='wallpost-reaction-list'),
    surl(r'^reactions/<pk:#>$', ReactionDetail.as_view(), name='wallpost-reaction-detail'),
)
Пример #4
0
from apps.projects.views import ManageProjectAmbassadorList, ManageProjectAmbassadorDetail, ManageProjectBudgetLinetList, ManageProjectBudgetLineDetail, ProjectPreviewList, ProjectPreviewDetail
from django.conf.urls import patterns, url, include
from surlex.dj import surl
from .views import (ProjectDetail, ProjectList, ProjectSupporterList,
                    ManageProjectList, ManageProjectDetail, ManageProjectPitchDetail, ManageProjectPlanDetail,
                    ProjectPitchDetail, ProjectPlanDetail, ManageProjectCampaignDetail, ProjectThemeList,
                    ProjectThemeDetail, ProjectDonationList)

urlpatterns = patterns('',
    url(r'^projects/$', ProjectList.as_view(), name='project-list'),
    surl(r'^projects/<slug:s>$', ProjectDetail.as_view(), name='project-detail'),

    url(r'^previews/$', ProjectPreviewList.as_view(), name='project-preview-list'),
    surl(r'^previews/<slug:s>$', ProjectPreviewDetail.as_view(), name='project-preview-detail'),

    # Not publically avaialable atm
    # surl(r'^pitches/<pk:#>$', ProjectPitchDetail.as_view(), name='project-pitch-detail'),
    surl(r'^plans/<pk:#>$', ProjectPlanDetail.as_view(), name='project-plan-detail'),

    surl(r'^themes/$', ProjectThemeList.as_view(), name='project-theme-list'),
    surl(r'^themes/<pk:#>$', ProjectThemeDetail.as_view(), name='project-theme-detail'),

    # Project supporters
    url(r'^supporters/$', ProjectSupporterList.as_view(), name='project-supporter-list'),
    url(r'^donations/$', ProjectDonationList.as_view(), name='project-donation-list'),

    # Manage stuff
    url(r'^manage/$', ManageProjectList.as_view(), name='project-manage-list'),
    surl(r'^manage/<slug:s>$', ManageProjectDetail.as_view(), name='project-manage-detail'),
    surl(r'^pitches/manage/<pk:#>$', ManageProjectPitchDetail.as_view(), name='project-pitch-manage-detail'),
    surl(r'^plans/manage/<pk:#>$', ManageProjectPlanDetail.as_view(), name='project-plan-manage-detail'),
from .views import (ManageOrganizationList, ManageOrganizationDetail,
                    ManageOrganizationAddressDetail,
                    ManageOrganizationAddressList,
                    ManageOrganizationDocumentList,
                    ManageOrganizationDocumentDetail)
from django.conf.urls import patterns, url, include
from surlex.dj import surl
from .views import OrganizationDetail, OrganizationList

urlpatterns = patterns(
    '',
    url(r'^$', OrganizationList.as_view(), name='organization-list'),
    surl(r'^<pk:#>$', OrganizationDetail.as_view(),
         name='organization-detail'),
    surl(r'^manage/$',
         ManageOrganizationList.as_view(),
         name='manage-organization-list'),
    surl(r'^manage/<pk:#>$',
         ManageOrganizationDetail.as_view(),
         name='manage-organization-detail'),
    url(r'^addresses/manage/$',
        ManageOrganizationAddressList.as_view(),
        name='manage-organization-address-list'),
    surl(r'^addresses/manage/<pk:#>$',
         ManageOrganizationAddressDetail.as_view(),
         name='manage-organization-address-detail'),
    url(r'^documents/manage/$',
        ManageOrganizationDocumentList.as_view(),
        name='manage-organization-document-list'),
    surl(r'^documents/manage/<pk:#>$',
         ManageOrganizationDocumentDetail.as_view(),
Пример #6
0
from django.conf.urls import patterns, url
from surlex.dj import surl
from .views import (UserProfileDetail, CurrentUser, UserSettingsDetail, UserCreate, UserActivate, PasswordReset,
                    PasswordSet)

# Public User API:
#
# User Create (POST):           /users/
# User Detail (GET/PUT):        /users/profiles/<pk>
# User Activate (GET):          /users/activate/<activation_key>
# User Password Reset (PUT):    /users/passwordreset
# User Password Set (PUT):      /users/passwordset/<uid36>-<token>
#
# Authenticated User API:
#
# Logged in user (GET):            /users/current
# User settings Detail (GET/PUT):  /users/settings/<pk>

urlpatterns = patterns('',
    url(r'^$', UserCreate.as_view(), name='user-user-create'),
    surl(r'^activate/<activation_key=[a-f0-9]{40}>$', UserActivate.as_view()),
    url(r'^current$', CurrentUser.as_view(), name='user-current'),
    url(r'^passwordreset$', PasswordReset.as_view(), name='password-reset'),
    surl(r'^passwordset/<uidb36=[0-9A-Za-z]{1,13}>-<token=[0-9A-Za-z]{1,13}-[0-9A-Za-z]{1,20}>$', PasswordSet.as_view(), name='password-set'),
    surl(r'^profiles/<pk:#>$', UserProfileDetail.as_view(), name='user-profile-detail'),
    surl(r'^settings/<pk:#>$', UserSettingsDetail.as_view(), name='user-settings-detail'),
)

Пример #7
0
from apps.projects.views import ManageProjectBudgetLineDetail, ManageProjectBudgetLineList
from django.conf.urls import patterns, url
from surlex.dj import surl


urlpatterns = patterns('',
    url(r'^budgetlines/$', ManageProjectBudgetLineList.as_view(), name='project-budgetline-list'),
    surl(r'^budgetlines/<pk:#>$', ManageProjectBudgetLineDetail.as_view(), name='project-budgetline-detail'),
)
Пример #8
0
from django.conf.urls.defaults import patterns, include, url
from django.contrib.auth.decorators import login_required

from surlex.dj import surl

from views import EventListView, EventDetailView, ReportListView, ReportDetailView

from views import event_register

urlpatterns = patterns('',
    url(r'^$', login_required(EventListView.as_view()), name='event_list'),
    surl(r'^event/<pk:s>/$', login_required(EventDetailView.as_view()), name='event_detail'),
    surl(r'^event/<pk:s>/register', login_required(event_register), name='event_register'),
    surl(r'^report/$', ReportListView.as_view(), name='report_list'),
    surl(r'^report/<pk:s>/$', ReportDetailView.as_view(), name='report_detail'),
)

Пример #9
0
from django.contrib import admin



from .views import (
    HomeView,
    ArtworkDetailView, ArtworkListView,
    CollectionListView, CollectionDetailView,
    CategoryListView, CategoryDetailView
)


urlpatterns = patterns('',
    # Home view
    surl(r'^$', HomeView.as_view(),
        name='portfolio_home'
    ),

    # Collection views
    surl(r'^collections/$', CollectionListView.as_view(),
        name='collection_list'
    ),
    surl(r'^collections/<slug:s>/', CollectionDetailView.as_view(),
        name='collection_detail'
    ),

    # Artwork views
    surl(r'^works/$', ArtworkListView.as_view(),
        name='artwork_list'
    ),
    surl(r'^works/<pk:#>/$', ArtworkDetailView.as_view(),
Пример #10
0
from django.conf.urls import patterns, include, url
from django.contrib import admin

from surlex.dj import surl

from . import views

admin.autodiscover()
urlpatterns = patterns(
    '',
    surl(r'^thing/$', views.ThingListView.as_view(), name="thing-list"),
    surl(r'^thing/<pk:#>/$',
         views.ThingDetailView.as_view(),
         name="thing-detail"),
    surl(r'^private/', include('puraibeto.urls')),
)
Пример #11
0
from surlex.dj import surl
from ..views import RegistrationDocumentDownloadView

urlpatterns = [
    surl(r'^organizations/<pk:#>/$',
         RegistrationDocumentDownloadView.as_view(),
         name='organization-registration-download'),
]
Пример #12
0
from surlex.dj import surl

from .views import (
    NewsletterListView, NewsletterDetailView,
    SubmissionArchiveIndexView, SubmissionArchiveDetailView,
    SubscribeRequestView, UnsubscribeRequestView, UpdateRequestView,
    ActionTemplateView, UpdateSubscriptionView,
)

# from django.views.decorators.csrf import csrf_exempt

urlpatterns = [
    # Newsletter list and detail view
    surl('^$', NewsletterListView.as_view(), name='newsletter_list'),
    surl(
        '^<newsletter_slug:s>/$',
        NewsletterDetailView.as_view(), name='newsletter_detail'
    ),

    # Action request views
    surl(
        '^<newsletter_slug:s>/subscribe/$',
        # csrf_exempt(SubscribeRequestView.as_view()),
        SubscribeRequestView.as_view(),
        name='newsletter_subscribe_request'
    ),
    surl(
        '^<newsletter_slug:s>/subscribe/confirm/$',
        SubscribeRequestView.as_view(confirm=True),
        name='newsletter_subscribe_confirm'
    ),
Пример #13
0
from surlex import register_macro
from surlex.dj import surl

from . import views
from .conf import settings

register_macro('f', r"[^\s\/]+")
register_macro(
    'uuid',
    r"[a-fA-F0-9]{8}-?[a-fA-F0-9]{4}-?[a-fA-F0-9]{4}-?[a-fA-F0-9]{4}-?[a-fA-F0-9]{12}"
)

urlpatterns = patterns(
    '',
    surl(r'^$', views.PrivateFileListView.as_view(), name="puraibeto_files"),
    surl(r'^upload/$',
         views.PrivateFileCreateView.as_view(),
         name="puraibeto_upload"),

    # surl(r'^<pk:#>/<uuid:uuid>/$',
    #     views.PrivateFileDetailView.as_view(),
    #     name="puraibeto_detail"),

    # surl(r'^<pk:#>/<uuid:uuid>/edit/$',
    #     views.PrivateFileUpdateView.as_view(),
    #     name="puraibeto_update"),
    surl(r'^download/<contenttype_pk:#>/<object_pk:#>/<pk:#>/<filename:f>$',
         views.PrivateFileDownloadView.as_view(),
         name="puraibeto_download"),
)
Пример #14
0
from apps.projects.views import ManageProjectAmbassadorList, ManageProjectAmbassadorDetail, ManageProjectBudgetLinetList, ManageProjectBudgetLineDetail, ProjectPreviewList, ProjectPreviewDetail
from django.conf.urls import patterns, url, include
from surlex.dj import surl
from .views import (ProjectDetail, ProjectList, ProjectWallPostList, ProjectWallPostDetail, ProjectMediaWallPostList,
                    ProjectMediaWallPostDetail, ProjectTextWallPostList, ProjectTextWallPostDetail,
                    ProjectMediaWallPostPhotoList, ProjectMediaWallPostPhotoDetail, ProjectDonationList,
                    ManageProjectList, ManageProjectDetail, ManageProjectPitchDetail, ManageProjectPlanDetail,
                    ProjectPitchDetail, ProjectPlanDetail, ManageProjectCampaignDetail)

urlpatterns = patterns('',
    url(r'^projects/$', ProjectList.as_view(), name='project-list'),
    surl(r'^projects/<slug:s>$', ProjectDetail.as_view(), name='project-detail'),

    url(r'^previews/', ProjectPreviewList.as_view(), name='project-preview-list'),
    surl(r'^previews/<slug:s>$', ProjectPreviewDetail.as_view(), name='project-preview-detail'),

    # Not publically avaialable atm
    # surl(r'^pitches/<pk:#>$', ProjectPitchDetail.as_view(), name='project-pitch-detail'),
    surl(r'^plans/<pk:#>$', ProjectPlanDetail.as_view(), name='project-plan-detail'),


    # Project WallPost Urls
    url(r'^wallposts/$', ProjectWallPostList.as_view(), name='project-wallpost-list'),
    surl(r'^wallposts/<pk:#>$', ProjectWallPostDetail.as_view(), name='project-wallpost-detail'),
    url(r'^wallposts/media/$', ProjectMediaWallPostList.as_view(), name='project-mediawallpost-list'),
    surl(r'^wallposts/media/<pk:#>$', ProjectMediaWallPostDetail.as_view(), name='project-mediawallpost-detail'),
    url(r'^wallposts/text/$', ProjectTextWallPostList.as_view(), name='project-textwallpost-list'),
    surl(r'wallposts/text/<pk:#>$', ProjectTextWallPostDetail.as_view(), name='project-textwallpost-detail'),

    url(r'^wallposts/media/photos/$', ProjectMediaWallPostPhotoList.as_view(), name='project-mediawallpost-photo-list'),
    surl(r'^wallposts/media/photos/<pk:#>$', ProjectMediaWallPostPhotoDetail.as_view(), name='project-mediawallpost-photo-list'),
Пример #15
0
from surlex.dj import surl

from django.conf.urls.defaults import *

urlpatterns = patterns(
    'simplesite.views',
    surl(r'^<menu_slug:s>/<submenu_slug:s>/', 'page', name='submenu'),
    surl(r'^<menu_slug:s>/', 'page', name='menu'),
)
Пример #16
0
from django.conf.urls.defaults import *

from surlex.dj import surl

from .views import (NewsletterListView, NewsletterDetailView,
                    SubmissionArchiveIndexView, SubmissionArchiveDetailView,
                    SubscribeRequestView, UnsubscribeRequestView,
                    UpdateRequestView, UpdateSubscriptionViev)

urlpatterns = patterns(
    'newsletter.views',
    # Newsletter list and detail view
    surl('^$', NewsletterListView.as_view(), name='newsletter_list'),
    surl('^<newsletter_slug:s>/$',
         NewsletterDetailView.as_view(),
         name='newsletter_detail'),

    # Action request views
    surl('^<newsletter_slug:s>/subscribe/$',
         SubscribeRequestView.as_view(),
         name='newsletter_subscribe_request'),
    surl('^<newsletter_slug:s>/subscribe/confirm/$',
         SubscribeRequestView.as_view(confirm=True),
         name='newsletter_subscribe_confirm'),
    surl('^<newsletter_slug:s>/update/$',
         UpdateRequestView.as_view(),
         name='newsletter_update_request'),
    surl('^<newsletter_slug:s>/unsubscribe/$',
         UnsubscribeRequestView.as_view(),
         name='newsletter_unsubscribe_request'),
    surl('^<newsletter_slug:s>/unsubscribe/confirm/$',
Пример #17
0
from apps.fund.views import RecurringOrderList, RecurringOrderDetail, RecurringDonationList, RecurringDonationDetail, \
    ProjectDonationList, ProjectSupporterList
from django.conf.urls import patterns, include, url
from surlex.dj import surl
from ..views import OrderList, OrderDetail, OrderCurrentDetail, PaymentProfileCurrent,  PaymentCurrent, \
    RecurringDirectDebitPaymentList, RecurringDirectDebitPaymentDetail, OrderCurrentDonationDetail, \
    OrderCurrentDonationList, NestedDonationDetail, NestedDonationList, DonationList, DonationDetail, TickerList


urlpatterns = patterns('',
    # Orders
    url(r'^orders/$', OrderList.as_view(), name='fund-order-list'),
    surl(r'^orders/<pk:#>$', OrderDetail.as_view(), name='fund-order-detail'),
    surl(r'^orders/<order_pk:#>/donations/$', NestedDonationList.as_view(), name='fund-order-donation-list'),
    surl(r'^orders/<order_pk:#>/donations/<pk:#>$', NestedDonationDetail.as_view(), name='fund-order-donation-detail'),

    # Donations
    surl(r'^project-donations/$', ProjectDonationList.as_view(), name='project-donation-list'),
    surl(r'^project-supporters/$', ProjectSupporterList.as_view(), name='project-supporter-list'),

    # Donations
    surl(r'^donations/$', DonationList.as_view(), name='fund-donation-list'),
    surl(r'^donations/<pk:#>$', DonationDetail.as_view(), name='fund-donation-detail'),

    # Latest Donations
    surl(r'^latest-donations/$', TickerList.as_view(), name='fund-ticker-list'),

    # Current Order (i.e. the server-side shopping cart).
    url(r'^orders/current$', OrderCurrentDetail.as_view(), {'alias': 'current'}, name='fund-order-current-detail'),
    url(r'^orders/current/donations/$', OrderCurrentDonationList.as_view(), {'alias': 'current'}, name='fund-order-current-donation-list'),
    surl(r'^orders/current/donations/<pk:#>$', OrderCurrentDonationDetail.as_view(), {'alias': 'current'}, name='fund-order-current-donation-detail'),
Пример #18
0
from surlex.dj import surl
from .views import (
    AccountingOverviewView, AccountingDashboardView, MultiTenantAccountingDashboardView,
    MultiTenantAccountingOverviewView)


urlpatterns = [
    surl(r'^overview/$', AccountingOverviewView.as_view(), name='admin-accounting-overview'),
    surl(r'^dashboard/$', AccountingDashboardView.as_view(), name='admin-accounting-dashboard'),
    surl(r'^multiadmin/$', MultiTenantAccountingDashboardView.as_view(), name='multiadmin-accounting-dashboard'),
    surl(r'^multiadmin/overview/$', MultiTenantAccountingOverviewView.as_view(), name='multiadmin-accounting-overview'),
]
Пример #19
0
from django.conf.urls import patterns

from surlex.dj import surl

from .views import UserProfileList, UserProfileDetail


urlpatterns = patterns('',
    surl(r'^$', UserProfileList.as_view(), name='userprofile_list'),
    surl(r'^<slug:s>/$', UserProfileDetail.as_view(), name='userprofile_detail'),
)
Пример #20
0
from django.conf.urls import patterns

from surlex.dj import surl

from .views import (
    NewsletterListView, NewsletterDetailView,
    SubscribeRequestView, UnsubscribeRequestView, UpdateRequestView,
    ActionTemplateView, UpdateSubscriptionViev,
)

urlpatterns = patterns(
    '',

    # Newsletter list and detail view
    surl('^$', NewsletterListView.as_view(), name='newsletter_list'),
    surl(
        '^<newsletter_slug:s>/$',
        NewsletterDetailView.as_view(), name='newsletter_detail'
    ),

    # Action request views
    surl(
        '^<newsletter_slug:s>/subscribe/$',
        SubscribeRequestView.as_view(),
        name='newsletter_subscribe_request'
    ),
    surl(
        '^<newsletter_slug:s>/subscribe/confirm/$',
        SubscribeRequestView.as_view(confirm=True),
        name='newsletter_subscribe_confirm'
    ),
Пример #21
0
from surlex.dj import surl

from django.conf.urls.defaults import *

from basic_webshop.views import *


urlpatterns = patterns('',
    # Product search
    surl(r'^productsearch/',
        ProductSearch.as_view(), name='product_search'),
    
    # Catalogue
    surl(r'^categories/<category_slug:s>/<aspect=new|picks|sale|all>/$',
         CategoryAspectDetail.as_view(), name='category_aspect_detail'),

    surl(r'^categories/<category_slug:s>/<subcategory_slug:s>/$',
         SubCategoryDetail.as_view(), name='subcategory_detail'),

    surl(r'^categories/<category_slug:s>/<subcategory_slug:s>/<subsubcategory_slug:s>/$',
         SubSubCategoryDetail.as_view(), name='subsubcategory_detail'),

    surl(r'^categories/<category_slug:s>/$',
         CategoryDetail.as_view(), name='category_detail'),

    surl(r'^products/<slug:s>/$',
         ProductDetail.as_view(), name='product_detail'),

    # Brands
    surl(r'^brands/$',
         BrandList.as_view(), name='brand_list'),
Пример #22
0
from django.conf import settings
from django.conf.urls import patterns, url
from surlex.dj import surl

from .views import TagList, TagSearch  # ,ThemeList 



urlpatterns = patterns('',
    url(r'^tags/$', TagList.as_view(), name='utils-tag-list'),
    surl(r'^tags/<search:s>$', TagSearch.as_view(), name='utils-tag-list'),

)



INCLUDE_TEST_MODELS = getattr(settings, 'INCLUDE_TEST_MODELS', False)

if INCLUDE_TEST_MODELS:
    from .views import MetaDataDetail

    urlpatterns += patterns('', 
        # metadata testing
        surl(r'^metadata/<pk:#>$', MetaDataDetail.as_view(), name='meta-test'),
    )
Пример #23
0
from apps.pages.views import ContactRequestCreate
from django.conf.urls import patterns, url
from surlex.dj import surl
from .views import PageList, PageDetail

urlpatterns = patterns(
    "",
    surl(r"^<language:s>/pages/$", PageList.as_view(), name="page-list"),
    surl(r"^<language:s>/pages/<slug:s>$", PageDetail.as_view(), name="page-detail"),
    url(r"^contact/$", ContactRequestCreate.as_view(), name="contact-request-create"),
)
Пример #24
0
from django.conf.urls import patterns, url
from surlex.dj import surl
from .views import BlogPostList, BlogPostDetail

urlpatterns = patterns('',
    url(r'^$', BlogPostList.as_view(), name='blogpost-root'),
    surl(r'^<slug:s>$', BlogPostDetail.as_view(), name='blogpost-instance'),
)
Пример #25
0
from django.conf.urls.defaults import *

from surlex.dj import surl

urlpatterns = patterns(
    'newsletter.views',
    # Newsletter list and detail view
    surl('^$', 'newsletter_list', name='newsletter_list'),
    surl('^<newsletter_slug:s>/$',
         'newsletter_detail',
         name='newsletter_detail'),

    # Action request views
    surl('^<newsletter_slug:s>/subscribe/$',
         'subscribe_request',
         name='newsletter_subscribe_request'),
    surl('^<newsletter_slug:s>/subscribe/confirm/$',
         'subscribe_request',
         kwargs={'confirm': True},
         name='newsletter_subscribe_confirm'),
    surl('^<newsletter_slug:s>/update/$',
         'update_request',
         name='newsletter_update_request'),
    surl('^<newsletter_slug:s>/unsubscribe/$',
         'unsubscribe_request',
         name='newsletter_unsubscribe_request'),
    surl('^<newsletter_slug:s>/unsubscribe/confirm/$',
         'unsubscribe_request',
         kwargs={'confirm': True},
         name='newsletter_unsubscribe_confirm'),
Пример #26
0
from django.conf.urls.defaults import patterns, include, url
from surlex.dj import surl
import issues

from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    surl('^admin/', include(admin.site.urls)),
    surl('^comments/', include('django.contrib.comments.urls')),
    surl('^', include(issues.urls)),
)
Пример #27
0
from django.conf.urls import patterns, url
from surlex.dj import surl
from .views import PageList, PageDetail

urlpatterns = patterns('',
    url(r'^/<language:s>/pages/$', PageList.as_view(), name='page-list'),
    surl(r'^/<language:s>/pages/<slug:s>$', PageDetail.as_view(), name='page-detail'),
)
Пример #28
0
from django.conf.urls import patterns, url, include
from surlex.dj import surl
from ..views import PartnerDetail

urlpatterns = patterns('',
    surl(r'^<slug:s>$', PartnerDetail.as_view(), name='partner-detail'),

)
Пример #29
0
from .views import ManageOrganizationList, ManageOrganizationDetail, ManageOrganizationDocumentList, ManageOrganizationDocumentDetail
from django.conf.urls import patterns, url, include
from surlex.dj import surl
from .views import OrganizationDetail, OrganizationList

urlpatterns = patterns('',
    url(r'^$', OrganizationList.as_view(), name='organization-list'),
    surl(r'^<pk:#>$', OrganizationDetail.as_view(), name='organization-detail'),
    surl(r'^manage/$', ManageOrganizationList.as_view(), name='manage-organization-list'),
    surl(r'^manage/<pk:#>$', ManageOrganizationDetail.as_view(), name='manage-organization-detail'),

    url(r'^documents/manage/$', ManageOrganizationDocumentList.as_view(), name='manage-organization-document-list'),
    surl(r'^documents/manage/<pk:#>$', ManageOrganizationDocumentDetail.as_view(), name='manage-organization-document-detail'),

)
Пример #30
0
from django.conf.urls import patterns, url
from surlex.dj import surl
from .views import ReactionList, ReactionDetail, WallPostList

urlpatterns = patterns('',
    url(r'^$', WallPostList.as_view(), name='wallpost-list'),
    url(r'^reactions/$', ReactionList.as_view(), name='wallpost-reaction-list'),
    surl(r'^reactions/<pk:#>$', ReactionDetail.as_view(), name='wallpost-reaction-detail'),
)
Пример #31
0
from django.conf.urls import patterns
from surlex.dj import surl
from .views import DocumentDownloadView

urlpatterns = patterns('',
    surl(r'^<content_type:#>/<pk:#>$', DocumentDownloadView.as_view(), name='document-download-detail'),
)
Пример #32
0
from django.conf.urls import patterns
from surlex.dj import surl
from .views import ProjectDetailView, ProjectIframeView

urlpatterns = patterns('',
    surl(r'^<slug:s>$', ProjectDetailView.as_view(), name='project-detail'),
    surl(r'^<slug:s>/iframe/$', ProjectIframeView.as_view(), name='project-iframe'),
    #surl('/macromicro/xml', MacroMicroListView.as_view(), name='macromicro-project-list')
)
Пример #33
0
from django.conf.urls import patterns

from  surlex.dj import surl

from .views import (
    NewsletterListView, NewsletterDetailView,
    MessageArchiveIndexView, MessageArchiveDetailView,
    SubscribeRequestView, UnsubscribeRequestView, UpdateRequestView,
    ActionTemplateView, UpdateSubscriptionViev,
)

urlpatterns = patterns(
    '',

    surl(r'^receipt/email/<receipt_slug:s>.png', 'newsletter.views.receipt_email',name='email_view_tracker' ),
    surl(r'^receipt/archive/<receipt_slug:s>.png', 'newsletter.views.receipt_archive',name='archive_view_tracker' ),
    surl(r'^linktrack/<link_tracker_id:s>', 'newsletter.views.link_tracker', name='link_tracker' ),
    
    # Archive views
    surl(
        '^archive/<newsletter_slug:s>/<slug:s>/<receipt_slug:s>/$',
        MessageArchiveDetailView.as_view(), name='newsletter_archive_detail_receipt'
    ),
    surl(
        '^archive/<newsletter_slug:s>/<slug:s>/$',
        MessageArchiveDetailView.as_view(), name='newsletter_archive_detail'
    ),
    surl(
        '^archive/<newsletter_slug:s>/$',
        MessageArchiveIndexView.as_view(), name='newsletter_archive'
    ),
Пример #34
0
from surlex.dj import surl

from .views import (
    NewsletterListView, NewsletterDetailView,
    SubmissionArchiveIndexView, SubmissionArchiveDetailView,
    SubscribeRequestView, UnsubscribeRequestView, UpdateRequestView,
    ActionTemplateView, UpdateSubscriptionView,
)

urlpatterns = [
    # Newsletter list and detail view
    surl('^$', NewsletterListView.as_view(), name='newsletter_list'),
    surl(
        '^<newsletter_slug:s>/$',
        NewsletterDetailView.as_view(), name='newsletter_detail'
    ),

    # Action request views
    surl(
        '^<newsletter_slug:s>/subscribe/$',
        SubscribeRequestView.as_view(),
        name='newsletter_subscribe_request'
    ),
    surl(
        '^<newsletter_slug:s>/subscribe/confirm/$',
        SubscribeRequestView.as_view(confirm=True),
        name='newsletter_subscribe_confirm'
    ),
    surl(
        '^<newsletter_slug:s>/update/$',
        UpdateRequestView.as_view(),
Пример #35
0
from django.conf.urls import patterns
from surlex.dj import surl
from .views import PaymentDetail


urlpatterns = patterns('',
    surl(r'^payments/<pk:#>$', PaymentDetail.as_view(), name='payment-detail'),
)
Пример #36
0
from apps.homepage.views import HomePageDetail
from django.conf.urls import patterns, url
from surlex.dj import surl


urlpatterns = patterns('',
    surl(r'^<language:s>$', HomePageDetail.as_view(), name='stats'),
)
Пример #37
0
from django.conf.urls import patterns
from surlex.dj import surl
from ..views import RegistrationDocumentDownloadView

urlpatterns = patterns('',
                       surl(r'^organizations/<pk:#>/$',
                            RegistrationDocumentDownloadView.as_view(),
                            name='organization-registration-download'),
                       )
Пример #38
0
from django.conf.urls import patterns, url, include
from surlex.dj import surl

from . import views


urlpatterns = patterns("simplecareers.views",
     surl(r"^$", views.JobVacancyListView.as_view(), name="job-index"),
     surl(r"^detail/<id:#>/$", views.JobVacancyDetailView.as_view() , name="job-detail"),
     surl(r"^detail/<id:#>/apply/$", views.JobVacancySubmissionView.as_view(), name="job-application"),
     surl(r"^sent/$", TemplateView.as_view(template_name="simplecareers/sent.html"), name="job-application-sent"),
)
Пример #39
0
urlpatterns = [
    url(r'^api/v1/', include('langerak_gkv.api.urls', namespace='api')),
    url(r'^admin/rosetta/', include('rosetta.urls')),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^activities/', include('langerak_gkv.activities.urls', namespace='activities')),
    url(r'^liturgies/', include('langerak_gkv.liturgies.urls', namespace='liturgies')),
    url(r'^search/', include('langerak_gkv.search.urls', namespace='search')),
    url(r'^societies/', include('langerak_gkv.societies.urls', namespace='societies')),
    url(r'^users/', include('langerak_gkv.users.urls', namespace='users')),
    url(r'^users/password/', include('password_reset.urls')),
    url(r'^', include('langerak_gkv.homepage.urls')),

    # newsletter + hijack some urls
    surl(
        '^newsletter/<newsletter_slug:s>/<action=subscribe|update|unsubscribe>/'
        'activation-completed/$',
        ActionRedirectView.as_view(),
        name='newsletter_action_activated'),
    surl(
        '^newsletter/<newsletter_slug:s>/unsubscribe/confirm/$',
        RedirectUnsubscribeRequestView.as_view(confirm=True),
        name='newsletter_unsubscribe_confirm'
    ),
    url(r'^newsletter/', include('newsletter.urls')),

    url(r'^', include('cms.urls')),

] + staticfiles_urlpatterns()


# If settings.DEBUG is set to True, some URLs can be handled by Django.
Пример #40
0
from django.conf.urls import patterns, include, url

from surlex.dj import surl
from .views import channel_index, transmission_index

urlpatterns = patterns('',
	surl(r"^chan:<channel_sn:s>$", channel_index, name="channel-index"),
	surl(r"^chan:<channel_sn:s>/xmit:<transmission_id:#>$", transmission_index, name="transmission-index")
)
Пример #41
0
from django.conf.urls import patterns

from surlex.dj import surl

from .views import (HomeView, ArtworkDetailView, ArtworkListView,
                    CollectionListView, CollectionDetailView, CategoryListView,
                    CategoryDetailView)

urlpatterns = patterns(
    '',
    # Home view
    surl(r'^$', HomeView.as_view(), name='portfolio_home'),

    # Collection views
    surl(r'^collections/$',
         CollectionListView.as_view(),
         name='collection_list'),
    surl(r'^collections/<slug:s>/',
         CollectionDetailView.as_view(),
         name='collection_detail'),

    # Artwork views
    surl(r'^works/$', ArtworkListView.as_view(), name='artwork_list'),
    surl(r'^works/<pk:#>/$',
         ArtworkDetailView.as_view(),
         name='artwork_detail'),

    # Category views
    surl(r'^category/$', CategoryListView.as_view(), name='category_list'),
    surl(r'^category/<slug:s>/',
         CategoryDetailView.as_view(),