コード例 #1
0
ファイル: urls.py プロジェクト: yonglehou/commcare-hq
hq_api = CommCareHqApi(api_name='v0.3')
hq_api.register(EWSLocationResource())

urlpatterns = patterns(
    'custom.ewsghana.views',
    url(r'^global_stats/$',
        EWSGlobalStats.as_view(),
        name=EWSGlobalStats.urlname),
    url(r'^configure_in_charge/$',
        'configure_in_charge',
        name='configure_in_charge'),
    url(r'^inventory_managment/$',
        'inventory_management',
        name='inventory_managment'),
    url(r'^stockouts_product/$', 'stockouts_product',
        name='stockouts_product'),
    url(r'^(?P<site_code>\w+)/input_stock/$',
        InputStockView.as_view(),
        name='input_stock'),
    url(r'^', include(hq_api.urls)),
    url(r'^non_administrative_locations/$',
        'non_administrative_locations_for_select2'),
    url(r'^user_settings/(?P<user_id>[ \w-]+)/$',
        EWSUserExtensionView.as_view(),
        name='ews_user_settings'),
    url(r'^dashboard_page/$',
        DashboardPageView.as_view(),
        name='dashboard_page'),
)
コード例 #2
0
ファイル: urls.py プロジェクト: tlwakwella/commcare-hq
from django.conf.urls import patterns, url, include
from corehq.apps.api.urls import CommCareHqApi
from custom.ewsghana.resources.v0_1 import EWSLocationResource
from custom.ewsghana.views import EWSConfigView, EWSGlobalStats, InputStockView, EWSUserExtensionView,\
    DashboardPageView

hq_api = CommCareHqApi(api_name='v0.3')
hq_api.register(EWSLocationResource())

urlpatterns = patterns('custom.ewsghana.views',
    url(r'^ews_config/$', EWSConfigView.as_view(), name=EWSConfigView.urlname),
    url(r'^global_stats/$', EWSGlobalStats.as_view(), name=EWSGlobalStats.urlname),
    url(r'^configure_in_charge/$', 'configure_in_charge', name='configure_in_charge'),
    url(r'^inventory_managment/$', 'inventory_management', name='inventory_managment'),
    url(r'^stockouts_product/$', 'stockouts_product', name='stockouts_product'),
    url(r'^(?P<site_code>\w+)/input_stock/$', InputStockView.as_view(), name='input_stock'),
    url(r'^', include(hq_api.urls)),
    url(r'^non_administrative_locations/$', 'non_administrative_locations_for_select2'),
    url(r'^user_settings/(?P<user_id>[ \w-]+)/$', EWSUserExtensionView.as_view(), name='ews_user_settings'),
    url(r'^dashboard_page/$', DashboardPageView.as_view(), name='dashboard_page'),
)
コード例 #3
0
from __future__ import absolute_import
from __future__ import unicode_literals
from django.conf.urls import url, include
from corehq.apps.api.urls import CommCareHqApi
from custom.ewsghana.resources.v0_1 import EWSLocationResource
from custom.ewsghana.views import (
    EWSGlobalStats, InputStockView, EWSUserExtensionView,
    DashboardPageView, configure_in_charge,
    inventory_management, stockouts_product,
    non_administrative_locations_for_select2,
)

hq_api = CommCareHqApi(api_name='v0.3')
hq_api.register(EWSLocationResource())

urlpatterns = [
    url(r'^global_stats/$', EWSGlobalStats.as_view(), name=EWSGlobalStats.urlname),
    url(r'^configure_in_charge/$', configure_in_charge, name='configure_in_charge'),
    url(r'^inventory_managment/$', inventory_management, name='inventory_managment'),
    url(r'^stockouts_product/$', stockouts_product, name='stockouts_product'),
    url(r'^(?P<site_code>\w+)/input_stock/$', InputStockView.as_view(), name='input_stock'),
    url(r'^', include(hq_api.urls)),
    url(r'^non_administrative_locations/$', non_administrative_locations_for_select2,
        name='non_administrative_locations_for_select2'),
    url(r'^user_settings/(?P<user_id>[ \w-]+)/$', EWSUserExtensionView.as_view(), name='ews_user_settings'),
    url(r'^dashboard_page/$', DashboardPageView.as_view(permanent=True), name='dashboard_page'),
]
コード例 #4
0
)

hq_api = CommCareHqApi(api_name='v0.3')
hq_api.register(EWSLocationResource())

urlpatterns = [
    url(r'^global_stats/$',
        EWSGlobalStats.as_view(),
        name=EWSGlobalStats.urlname),
    url(r'^configure_in_charge/$',
        configure_in_charge,
        name='configure_in_charge'),
    url(r'^inventory_managment/$',
        inventory_management,
        name='inventory_managment'),
    url(r'^stockouts_product/$', stockouts_product, name='stockouts_product'),
    url(r'^(?P<site_code>\w+)/input_stock/$',
        InputStockView.as_view(),
        name='input_stock'),
    url(r'^', include(hq_api.urls)),
    url(r'^non_administrative_locations/$',
        non_administrative_locations_for_select2,
        name='non_administrative_locations_for_select2'),
    url(r'^user_settings/(?P<user_id>[ \w-]+)/$',
        EWSUserExtensionView.as_view(),
        name='ews_user_settings'),
    url(r'^dashboard_page/$',
        DashboardPageView.as_view(permanent=True),
        name='dashboard_page'),
]
コード例 #5
0
from custom.ewsghana.resources.v0_1 import EWSLocationResource
from custom.ewsghana.views import (
    EWSGlobalStats,
    InputStockView,
    EWSUserExtensionView,
    DashboardPageView,
    configure_in_charge,
    inventory_management,
    stockouts_product,
    non_administrative_locations_for_select2,
)

hq_api = CommCareHqApi(api_name="v0.3")
hq_api.register(EWSLocationResource())

urlpatterns = [
    url(r"^global_stats/$", EWSGlobalStats.as_view(), name=EWSGlobalStats.urlname),
    url(r"^configure_in_charge/$", configure_in_charge, name="configure_in_charge"),
    url(r"^inventory_managment/$", inventory_management, name="inventory_managment"),
    url(r"^stockouts_product/$", stockouts_product, name="stockouts_product"),
    url(r"^(?P<site_code>\w+)/input_stock/$", InputStockView.as_view(), name="input_stock"),
    url(r"^", include(hq_api.urls)),
    url(
        r"^non_administrative_locations/$",
        non_administrative_locations_for_select2,
        name="non_administrative_locations_for_select2",
    ),
    url(r"^user_settings/(?P<user_id>[ \w-]+)/$", EWSUserExtensionView.as_view(), name="ews_user_settings"),
    url(r"^dashboard_page/$", DashboardPageView.as_view(permanent=True), name="dashboard_page"),
]
コード例 #6
0
from django.conf.urls import patterns, url, include
from corehq.apps.api.urls import CommCareHqApi
from custom.ewsghana.resources.v0_1 import EWSLocationResource
from custom.ewsghana.views import (
    EWSGlobalStats, InputStockView, EWSUserExtensionView,
    DashboardPageView, configure_in_charge,
    inventory_management, stockouts_product,
    non_administrative_locations_for_select2,
)

hq_api = CommCareHqApi(api_name='v0.3')
hq_api.register(EWSLocationResource())

urlpatterns = patterns('custom.ewsghana.views',
    url(r'^global_stats/$', EWSGlobalStats.as_view(), name=EWSGlobalStats.urlname),
    url(r'^configure_in_charge/$', configure_in_charge, name='configure_in_charge'),
    url(r'^inventory_managment/$', inventory_management, name='inventory_managment'),
    url(r'^stockouts_product/$', stockouts_product, name='stockouts_product'),
    url(r'^(?P<site_code>\w+)/input_stock/$', InputStockView.as_view(), name='input_stock'),
    url(r'^', include(hq_api.urls)),
    url(r'^non_administrative_locations/$', non_administrative_locations_for_select2,
        name='non_administrative_locations_for_select2'),
    url(r'^user_settings/(?P<user_id>[ \w-]+)/$', EWSUserExtensionView.as_view(), name='ews_user_settings'),
    url(r'^dashboard_page/$', DashboardPageView.as_view(), name='dashboard_page'),
)