コード例 #1
0
                    DecisionDetail, DecisionList, \
                    ExportCSV, FeedbackCreate, \
                    FeedbackSnippetCreate, FeedbackUpdate, \
                    EconsensusActionitemCreateView, EconsensusActionitemUpdateView, \
                    EconsensusActionitemListView, OrganizationRedirectView, \
                    YourDetails, \
                    DecisionSearchView

from actionitems.views import ActionItemUpdateView

from models import Feedback
from publicweb.views import EconsensusActionitemDetailView

urlpatterns = patterns(
    'econsensus.publicweb.views',
    url(r'^your_details/$', YourDetails.as_view(), name='your_details'),
    url(r'^(?P<org_slug>[-\w]+)/export_csv/$',
        ExportCSV.as_view(),
        name='publicweb_export_csv'),

    #Feedback urls...
    url(r'^feedback/create/(?P<parent_pk>[\d]+)/$',
        FeedbackCreate.as_view(template_name='feedback_update_page.html'),
        name='publicweb_feedback_create'),
    url(r'^feedback/update/(?P<pk>[\d]+)/$',
        FeedbackUpdate.as_view(template_name='feedback_update_page.html'),
        name='publicweb_feedback_update'),
    url(r'^feedback/detail/(?P<pk>[\d]+)/$',
        login_required(
            DetailView.as_view(model=Feedback,
                               template_name='feedback_detail_page.html')),
コード例 #2
0
ファイル: urls.py プロジェクト: TristramNorman/econsensus
                    ExportCSV, FeedbackCreate, \
                    FeedbackSnippetCreate, FeedbackUpdate, \
                    EconsensusActionitemCreateView, EconsensusActionitemUpdateView, \
                    EconsensusActionitemListView, OrganizationRedirectView, \
                    YourDetails, \
                    DecisionSearchView

from actionitems.views import ActionItemUpdateView

from models import Feedback
from publicweb.views import EconsensusActionitemDetailView

urlpatterns = patterns('econsensus.publicweb.views',
                       
    url(r'^your_details/$',
        YourDetails.as_view(),
        name='your_details'),

    url(r'^(?P<org_slug>[-\w]+)/export_csv/$',
        ExportCSV.as_view(),
        name='publicweb_export_csv'),
                       
    #Feedback urls...
    url(r'^feedback/create/(?P<parent_pk>[\d]+)/$', 
        FeedbackCreate.as_view(template_name = 'feedback_update_page.html'),
        name='publicweb_feedback_create'),
    url(r'^feedback/update/(?P<pk>[\d]+)/$', 
        FeedbackUpdate.as_view(template_name = 'feedback_update_page.html'),
        name='publicweb_feedback_update'),
    url(r'^feedback/detail/(?P<pk>[\d]+)/$', 
        login_required(DetailView.as_view(
コード例 #3
0
from views import (DecisionCreate, DecisionUpdate, DecisionDetail, DecisionList,
                    ExportCSV, FeedbackCreate, FeedbackSnippetCreate,
                    FeedbackUpdate, EconsensusActionitemCreateView,
                    EconsensusActionitemUpdateView,
                    EconsensusActionitemListView, OrganizationRedirectView,
                    YourDetails, UserNotificationSettings,
                    EconsensusActionitemDetailView, DecisionSearchView)

from models import Feedback
from publicweb.views import AddWatcher, RemoveWatcher


urlpatterns = patterns('econsensus.publicweb.views',
    url(r'^user_settings/your_details/$',
        YourDetails.as_view(),
        name='your_details'),
    url(r'^user_settings/notification_settings/(?P<org_slug>[-\w]+)/$',
        UserNotificationSettings.as_view(), name='notification_settings'),
    url(r'^add_watcher/(?P<decision_id>\d+)/$', AddWatcher.as_view(),
        name="add_watcher"),
    url(r'^remove_watcher/(?P<decision_id>\d+)/$', RemoveWatcher.as_view(),
        name="remove_watcher"),

    url(r'^(?P<org_slug>[-\w]+)/export_csv/$',
        ExportCSV.as_view(),
        name='publicweb_export_csv'),

    # Feedback urls...
    url(r'^feedback/create/(?P<parent_pk>[\d]+)/$',
        FeedbackCreate.as_view(template_name='feedback_update_page.html'),