예제 #1
0
# -*- coding: utf-8 -*-

from django.conf.urls.defaults import url, patterns
from rek.mail_messages.views import CompanyMessagesView, ViewForm, MessagesCollectionView, AddMessages, SetMessageImportant, CompanyContactsView, CompanySettingsView, MessageModuleInitialsView
from rek.rekvizitka.decorators import registration_completed_required
from rek.utils.decorators import is_superuser

urlpatterns = patterns('rek.mail_messages.views',
    url(r'^$', registration_completed_required(CompanyMessagesView.as_view()), name='messages'),
    url(r'^letters/$', registration_completed_required(CompanyMessagesView.as_view()), name='messages_letters'),
    url(r'^contacts/$', registration_completed_required(CompanyContactsView.as_view()), name='messages_contacts'),
    url(r'^settings/$', registration_completed_required(CompanySettingsView.as_view()), name='messages_settings'),

    url(r'^letters/important/$', registration_completed_required(SetMessageImportant.as_view()), name='set_message_important'),
    url(r'^c/$', registration_completed_required(MessagesCollectionView.as_view()), name='collection_messages'),
    url(r'^i/$', registration_completed_required(MessageModuleInitialsView.as_view()), name='messages_initials_module'),

    #test urls
    url(r'^form/$', is_superuser(ViewForm.as_view()), name='view_form'),
    url(r'^add_me_message/$', is_superuser(AddMessages.as_view()), name='add_messages'),
)
예제 #2
0
# -*- coding: utf-8 -*-

from django.conf.urls import patterns, url
from rek.admin.finances.views import FinancesMainView, FinancesAccountsView, FinancesAccountView, InvoicePayView, GetInvoiceDataView, DepositTransferView
from rek.utils.decorators import is_superuser

urlpatterns = patterns(
    'rek.admin.finances.views',
    url(r'^$', is_superuser(FinancesMainView.as_view()),
        name='admin_finances'),
    url(r'^accounts/$',
        is_superuser(FinancesAccountsView.as_view()),
        name='admin_finances_accounts'),
    url(r'^accounts/(?P<account_id>[0-9a-zA-Z-]+)/$',
        is_superuser(FinancesAccountView.as_view()),
        name='admin_finances_account'),
    url(r'^invoice_pay/$',
        is_superuser(InvoicePayView.as_view()),
        name='admin_invoice_pay'),
    url(r'^invoice_pay/get_invoice_data/$',
        is_superuser(GetInvoiceDataView.as_view()),
        name='admin_get_invoice_data'),
    url(r'^deposit_transfer/$',
        is_superuser(DepositTransferView.as_view()),
        name='admin_deposit_transfer'),
)
예제 #3
0
urlpatterns = patterns(
    'rek.mail_messages.views',
    url(r'^$',
        registration_completed_required(CompanyMessagesView.as_view()),
        name='messages'),
    url(r'^letters/$',
        registration_completed_required(CompanyMessagesView.as_view()),
        name='messages_letters'),
    url(r'^contacts/$',
        registration_completed_required(CompanyContactsView.as_view()),
        name='messages_contacts'),
    url(r'^settings/$',
        registration_completed_required(CompanySettingsView.as_view()),
        name='messages_settings'),
    url(r'^letters/important/$',
        registration_completed_required(SetMessageImportant.as_view()),
        name='set_message_important'),
    url(r'^c/$',
        registration_completed_required(MessagesCollectionView.as_view()),
        name='collection_messages'),
    url(r'^i/$',
        registration_completed_required(MessageModuleInitialsView.as_view()),
        name='messages_initials_module'),

    #test urls
    url(r'^form/$', is_superuser(ViewForm.as_view()), name='view_form'),
    url(r'^add_me_message/$',
        is_superuser(AddMessages.as_view()),
        name='add_messages'),
)
예제 #4
0
# -*- coding: utf-8 -*-

from django.conf.urls import patterns, url
from rek.admin.finances.views import FinancesMainView, FinancesAccountsView, FinancesAccountView, InvoicePayView, GetInvoiceDataView, DepositTransferView
from rek.utils.decorators import is_superuser

urlpatterns = patterns('rek.admin.finances.views',
    url(r'^$', is_superuser(FinancesMainView.as_view()), name='admin_finances'),
    url(r'^accounts/$', is_superuser(FinancesAccountsView.as_view()), name='admin_finances_accounts'),
    url(r'^accounts/(?P<account_id>[0-9a-zA-Z-]+)/$', is_superuser(FinancesAccountView.as_view()), name='admin_finances_account'),
    url(r'^invoice_pay/$', is_superuser(InvoicePayView.as_view()), name='admin_invoice_pay'),
    url(r'^invoice_pay/get_invoice_data/$', is_superuser(GetInvoiceDataView.as_view()), name='admin_get_invoice_data'),
    url(r'^deposit_transfer/$', is_superuser(DepositTransferView.as_view()), name='admin_deposit_transfer'),
)
예제 #5
0
# -*- coding: utf-8 -*-

from django.conf.urls import patterns, url
from rek.admin.settings.views import ManageSettings
from rek.utils.decorators import is_superuser

urlpatterns = patterns('rek.admin.settings.views',
    url(r'^$', is_superuser(ManageSettings.as_view()), name='admin_manage_settings'),
)
예제 #6
0
# -*- coding: utf-8 -*-

from django.conf.urls import patterns, url
from rek.admin.ads.views import AdsView, AddPromoActionView, ShowPromoActionsView, ShowPromoActionView, ManagePromoActionView, ManagePromoCodeView
from rek.utils.decorators import is_superuser

urlpatterns = patterns('rek.admin.ads.views',
    url(r'^$', is_superuser(AdsView.as_view()), name='admin_ads_root'),
    url(r'^add_promo_action/$', is_superuser(AddPromoActionView.as_view()), name='admin_add_promo_action'),
    url(r'^view_promo_actions/$', is_superuser(ShowPromoActionsView.as_view()), name='admin_show_promo_actions'),
    url(r'^view_promo_actions/(?P<action_id>[0-9a-zA-Z]+)/$', is_superuser(ShowPromoActionView.as_view()), name='admin_show_promo_action'),
    url(r'^view_promo_actions/(?P<action_id>[0-9a-zA-Z]+)/manage/$', is_superuser(ManagePromoActionView.as_view()), name='admin_manage_promo_action'),
    url(r'^promo_code/(?P<promo_id>[0-9a-zA-Z]+)/$', is_superuser(ManagePromoCodeView.as_view()), name='admin_manage_promo_code'),
)
예제 #7
0
# -*- coding: utf-8 -*-

from django.conf.urls import patterns, url
from rek.admin.search.company_views import SearchCompanyView, MakeCompanyView, ShowCompanyView, ManageCompanyView, VerifyCompanyInvoiceView
from rek.admin.search.views import SearchMainView
from rek.utils.decorators import is_superuser

urlpatterns = patterns('rek.admin.search.views',
    url(r'^$', is_superuser(SearchMainView.as_view()), name='admin_search_main'),

    url(r'^companies/$', is_superuser(SearchCompanyView.as_view()), name='admin_search_companies'),
    url(r'^companies/new/$', is_superuser(MakeCompanyView.as_view()), name='admin_make_company'),
    url(r'^companies/(?P<code>[a-zA-Z0-9]+)/$', is_superuser(ShowCompanyView.as_view()), name='admin_show_company'),
    url(r'^companies/(?P<code>[a-zA-Z0-9]+)/manage/$', is_superuser(ManageCompanyView.as_view()), name='admin_manage_company'),
    url(r'^companies/(?P<code>[a-zA-Z0-9]+)/verify_invoice/$', is_superuser(VerifyCompanyInvoiceView.as_view()), name='admin_verify_company_invoice'),

    #    url(r'^employees/$', is_superuser(SearchEmployeeView.as_view()), name='admin_search_employees'),
#    url(r'^employees/new/$', is_superuser(MakeEmployeeView.as_view()), name='admin_make_employee'),
#    url(r'^employees/(?P<code>[a-zA-Z0-9]+)/$', is_superuser(ShowEmployeeView.as_view()), name='admin_show_employee'),
#    url(r'^employees/(?P<code>[a-zA-Z0-9]+)/manage/$', is_superuser(ManageEmployeeView.as_view()), name='admin_manage_employee'),
)
예제 #8
0
# -*- coding: utf-8 -*-

from django.conf.urls import patterns, url, include
from rek.admin.auth_views import LoginAdminView, LogoutAdminView
from rek.admin.views import AdminMainView
from rek.utils.decorators import is_superuser

urlpatterns = patterns('rek.profile.views',
    url(r'^$', is_superuser(AdminMainView.as_view()), name='admin_main_view'),
    url(r'^login/$', LoginAdminView.as_view(), name='admin_login_view'),
    url(r'^logout/$', is_superuser(LogoutAdminView.as_view()), name='admin_logout_view'),
    (r'^ads/',include('rek.admin.ads.urls')),
    (r'^catalog/',include('rek.admin.catalog.urls')),
    (r'^finances/',include('rek.admin.finances.urls')),
    (r'^search/',include('rek.admin.search.urls')),
    (r'^settings/',include('rek.admin.settings.urls')),
    (r'^statistics/',include('rek.admin.statistics.urls')),
)
예제 #9
0
# -*- coding: utf-8 -*-

from django.conf.urls import patterns, url
from rek.admin.ads.views import AdsView, AddPromoActionView, ShowPromoActionsView, ShowPromoActionView, ManagePromoActionView, ManagePromoCodeView
from rek.utils.decorators import is_superuser

urlpatterns = patterns(
    'rek.admin.ads.views',
    url(r'^$', is_superuser(AdsView.as_view()), name='admin_ads_root'),
    url(r'^add_promo_action/$',
        is_superuser(AddPromoActionView.as_view()),
        name='admin_add_promo_action'),
    url(r'^view_promo_actions/$',
        is_superuser(ShowPromoActionsView.as_view()),
        name='admin_show_promo_actions'),
    url(r'^view_promo_actions/(?P<action_id>[0-9a-zA-Z]+)/$',
        is_superuser(ShowPromoActionView.as_view()),
        name='admin_show_promo_action'),
    url(r'^view_promo_actions/(?P<action_id>[0-9a-zA-Z]+)/manage/$',
        is_superuser(ManagePromoActionView.as_view()),
        name='admin_manage_promo_action'),
    url(r'^promo_code/(?P<promo_id>[0-9a-zA-Z]+)/$',
        is_superuser(ManagePromoCodeView.as_view()),
        name='admin_manage_promo_code'),
)