예제 #1
0
from fleiostaff.core.terms_of_service.views import tos_settings_view
from fleiostaff.core.dynamic_ui.view import DynamicUIViewSet
from fleiostaff.core.plugins.views import StaffPluginsViewSet
from fleiostaff.core.second_factor_auth.views import sfa_settings_view
from fleiostaff.core.signup_settings.views import sign_up_settings_view
from .clients.views import StaffClientViewSet
from .frontend_customization.views import FrontendCustomizationView
from .notifications.views import NotificationsCategoriesViewSet, NotificationTemplateViewSet
from .permissions.views import PermissionSetViewSet, PermissionViewSet
from .usergroups.views import UserGroupViewset
from .users.views import UserViewSet
from .views import CurrencyViewSet, StaffUserProfileViewSet

try:
    from fleio.core.loginview import StaffFeatureRouter
    router = StaffFeatureRouter(trailing_slash=False)

    router.register(r'clients',
                    StaffClientViewSet,
                    basename='clients',
                    feature_name='clients&users.clients')
    router.register(r'clientgroups',
                    ClientGroupViewSet,
                    basename='clientgroups',
                    feature_name='clients&users.clientgroups')
    router.register(r'currency',
                    CurrencyViewSet,
                    basename='currency',
                    feature_name='core')

    router.register(r'dynamic-ui',
예제 #2
0
from plugins.cpanel.staff.frontend.views import FrontendView
from plugins.cpanel.staff.licenses.views import CPanelLicenseViews


try:
    from fleio.core.loginview import StaffFeatureRouter
    router = StaffFeatureRouter(trailing_slash=False)
    router.register(r'frontend', FrontendView, basename='frontend', feature_name='plugins.cpanel')

    router.register(r'cpanel', CPanelLicenseViews, basename='cpanel', feature_name='plugins.cpanel')

    urlpatterns = router.urls
except ImportError:
    urlpatterns = []
예제 #3
0
from .views import StaffInvoiceViewSet

try:
    from fleio.core.loginview import StaffFeatureRouter
    router = StaffFeatureRouter(trailing_slash=False)
    router.register(r'invoices', StaffInvoiceViewSet, basename='invoices')

    urlpatterns = router.urls
except ImportError:
    urlpatterns = []
예제 #4
0
from fleiostaff.servers.views import StaffServerViewSet
from fleiostaff.servers.views import StaffServerGroupViewSet

try:
    from fleio.core.loginview import StaffFeatureRouter
except ImportError:
    urlpatterns = []
else:
    router = StaffFeatureRouter(trailing_slash=False)
    router.register(r'server',
                    StaffServerViewSet,
                    basename='servers',
                    feature_name='servers')
    router.register(r'servergroup',
                    StaffServerGroupViewSet,
                    basename='servergroups',
                    feature_name='servers')

    urlpatterns = router.urls
예제 #5
0
from django.urls import include, path

from .views import StaffNotificationViewset

try:
    from fleio.core.loginview import StaffFeatureRouter
    router = StaffFeatureRouter(trailing_slash=False)
    router.register(r'notifications', StaffNotificationViewset, basename='notifications', feature_name='notifications')

    urlpatterns = [
        path('', include((router.urls, 'fleiostaff.notifications'), namespace='default')),
    ]
except ImportError:
    urlpatterns = []
예제 #6
0
from django.conf.urls import include, url

from . import views

try:
    from fleio.core.loginview import StaffFeatureRouter
    router = StaffFeatureRouter(trailing_slash=False)
    router.register(r'pkm', views.StaffPublicKeyViewSet, basename='publickeys', feature_name='openstack.sshkeys')

    urlpatterns = [
        url(r'', include((router.urls, 'fleiostaff.pkm'), namespace='default')),
    ]
except ImportError:
    urlpatterns = []
예제 #7
0
from plugins.todo.staff.frontend.views import FrontendView
from plugins.todo.staff.todos.views.todo import TODOView

try:
    from fleio.core.loginview import StaffFeatureRouter
    router = StaffFeatureRouter(trailing_slash=False)
    router.register(r'frontend',
                    FrontendView,
                    basename='frontend',
                    feature_name='plugins.todo')

    router.register(r'todo',
                    TODOView,
                    basename='todo',
                    feature_name='plugins.todo')

    urlpatterns = router.urls
except ImportError:
    urlpatterns = []
예제 #8
0
from django.conf.urls import include, url

from . import views

try:
    from fleio.core.loginview import StaffFeatureRouter
    router = StaffFeatureRouter(trailing_slash=False)
    router.register(r'tos',
                    views.TermsOfServiceViewSet,
                    basename='termsofservice',
                    feature_name='core')

    urlpatterns = [
        url(
            r'',
            include((router.urls, 'fleiostaff.core.terms_of_service'),
                    namespace='default'))
    ]
except ImportError:
    urlpatterns = []
예제 #9
0
# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from .views import ActivityLogViewSet

try:
    from fleio.core.loginview import StaffFeatureRouter
    router = StaffFeatureRouter(trailing_slash=False)
    router.register(r'activitylog',
                    ActivityLogViewSet,
                    basename='activitylog',
                    feature_name='utils.activitylog')

    urlpatterns = router.urls

except ImportError:
    urlpatterns = []
예제 #10
0
from plugins.google_authenticator.staff.google_authenticator.views import views

try:
    from fleio.core.loginview import StaffFeatureRouter
    router = StaffFeatureRouter(trailing_slash=False)
    router.register(
        r'api',
        views.StaffGoogleAuthenticatorViewSet,
        basename='google_authenticator',
        feature_name='clients&users.second_factor_auth.google_authenticator')

    urlpatterns = router.urls
except ImportError:
    urlpatterns = []
예제 #11
0
from fleiostaff.conf.views import ConfigurationsViewset

try:
    from fleio.core.loginview import StaffFeatureRouter
    router = StaffFeatureRouter(trailing_slash=False)
    router.register(r'configurations', ConfigurationsViewset, basename='configurations',
                    feature_name='settings.configurations')
    urlpatterns = router.urls
except ImportError:
    urlpatterns = []
예제 #12
0
from django.conf.urls import include, url

from . import views

try:
    from fleio.core.loginview import StaffFeatureRouter
    router = StaffFeatureRouter(trailing_slash=False)
    router.register(r'osbackup',
                    views.StaffBackupSchedulesViewSet,
                    basename='osbackup',
                    feature_name='openstack.osbackup.schedules')

    urlpatterns = [
        url(r'',
            include((router.urls, 'fleiostaff.osbackup'),
                    namespace='default')),
    ]
except ImportError:
    urlpatterns = []
예제 #13
0
from fleiostaff.billing.configurable_options.views import ConfigurableOptionsChoicesViewset
from fleiostaff.billing.orders.views import StaffOrderViewset
from fleiostaff.billing.productgroups.views import StaffProductGroupViewset
from fleiostaff.billing.products.views import StaffProductViewSet
from fleiostaff.billing.productcycles.views import StaffProductCycleViewSet
from fleiostaff.billing.services.views import StaffServiceViewSet
from fleiostaff.billing.invoicing.views import StaffInvoiceViewSet
from fleiostaff.billing.taxrules.views import StaffTaxRuleViewset
from fleiostaff.billing.transactions.views import StaffTransactionViewSet
from fleiostaff.billing.gateways.views import GatewaysViewset
from fleiostaff.billing.gateways.views import staff_action
from fleiostaff.billing.journal.views import JournalViewset

try:
    from fleio.core.loginview import StaffFeatureRouter
    router = StaffFeatureRouter(trailing_slash=False)
    router.register(r'billing/orders',
                    StaffOrderViewset,
                    basename='orders',
                    feature_name='billing.orders')
    router.register(r'billing/services',
                    StaffServiceViewSet,
                    basename='services',
                    feature_name='billing.services')
    router.register(r'billing/products',
                    StaffProductViewSet,
                    basename='products',
                    feature_name='billing.products')
    router.register(r'billing/productcycles',
                    StaffProductCycleViewSet,
                    basename='productcycles',
예제 #14
0
from fleiostaff.openstack.volume_backups.views import VolumeBackupViewSet
from fleiostaff.osbilling.views import PriceRuleConditionsViewset
from fleiostaff.osbilling.views import PriceRuleModifiersViewset
from fleiostaff.osbilling.views import PriceRuleViewset
from fleiostaff.osbilling.views import PricingPlanViewset
from fleiostaff.osbilling.views import StaffClientBillingHistoryViewset
from fleiostaff.osbilling.views import StaffClientBillingViewset
from fleiostaff.openstack.summary_views import operating_systems_summary_view
from fleiostaff.openstack.summary_views import hypervisors_summary_view
from fleiostaff.openstack.hypervisors.views import HypervisorsListRetrieveViewSet

try:
    from fleio.core.loginview import StaffFeatureRouter

    urlpatterns = list()
    router = StaffFeatureRouter(trailing_slash=False)
    router.register(r'clients', OpenstackClientsViewSet, basename='clients', feature_name='clients&users.clients')
    router.register(r'configurations', OpenstackConfigurationsViewSet,
                    basename='configurations', feature_name='settings.configurations')
    router.register(r'instances', StaffInstanceViewSet, basename='instances', feature_name='openstack.instances')
    router.register(r'ports', StaffPortViewSet, basename='ports', feature_name='openstack.ports')
    router.register(r'projects', StaffProjectViewSet, basename='projects', feature_name='openstack.projects')
    router.register(r'routers', StaffRouterViewSet, basename='routers', feature_name='openstack.routers')
    router.register(r'flavorgroups', FlavorGroupViewSet, basename='flavorgroups', feature_name='openstack.flavors')
    router.register(r'flavors', FlavorViewSet, basename='flavors', feature_name='openstack.flavors')
    router.register(r'floatingips', StaffFloatingIpViewSet, basename='floatingips',
                    feature_name='openstack.floatingips')
    router.register(r'images', StaffImageViewSet, basename='images', feature_name='openstack.images')
    router.register(r'volumes', StaffVolumeViewSet, basename='volumes', feature_name='openstack.volumes')
    router.register(r'volumebackups', VolumeBackupViewSet, basename='volumebackups',
                    feature_name='openstack.volumes.backups')
예제 #15
0
from plugins.domains.staff.frontend.views import FrontendView
from plugins.domains.staff.views.contacts import ContactsViewSet
from plugins.domains.staff.views.domains import DomainsViewSet
from plugins.domains.staff.views.order_domain import OrderDomainViewSet
from plugins.domains.staff.views.registrar_connectors import RegistrarConnectorsViewSet
from plugins.domains.staff.views.registrar_prices import RegistrarPricesViewset
from plugins.domains.staff.views.registrars import RegistrarsViewSet
from plugins.domains.staff.views.tlds import TLDsViewSet

try:
    from fleio.core.loginview import StaffFeatureRouter
    router = StaffFeatureRouter(trailing_slash=False)
    router.register(r'frontend',
                    FrontendView,
                    basename='frontend',
                    feature_name='plugins.domains')

    router.register(r'contacts',
                    ContactsViewSet,
                    basename='contacts',
                    feature_name='plugins.domains')
    router.register(r'domains',
                    DomainsViewSet,
                    basename='domains',
                    feature_name='plugins.domains')
    router.register(r'registrars',
                    RegistrarsViewSet,
                    basename='registrars',
                    feature_name='plugins.domains')
    router.register(r'registrar_prices',
                    RegistrarPricesViewset,
예제 #16
0
from plugins.cpanelserver.staff.frontend.views import FrontendView

try:
    from fleio.core.loginview import StaffFeatureRouter
    router = StaffFeatureRouter(trailing_slash=False)
    router.register(r'frontend',
                    FrontendView,
                    basename='frontend',
                    feature_name='plugins.cpanelserver')

    urlpatterns = router.urls
except ImportError:
    urlpatterns = []
예제 #17
0
from django.conf.urls import include, url
from . import views

try:
    # TODO: this should be moved to staff
    from fleio.core.loginview import StaffFeatureRouter
    router = StaffFeatureRouter(trailing_slash=False)
    router.register(r'revenue_reports', views.RevenueReportsViewset, basename='revenue_reports',
                    feature_name='billing.reporting')

    urlpatterns = [
        url(r'', include((router.urls, 'fleio.reports'), namespace='default')),
    ]
except ImportError:
    urlpatterns = []
예제 #18
0
from plugins.tickets.staff.frontend.views import FrontendView
from plugins.tickets.staff.tickets.views.tickets import (TicketLinkViewSet,
                                                         TicketNotesViewSet,
                                                         TicketsViewSet,
                                                         TicketUpdateViewSet)
from plugins.tickets.staff.tickets.views.attachments import TicketAttachmentsViewSet
from plugins.tickets.staff.tickets.views.departments import DepartmentsViewSet
from plugins.tickets.staff.tickets.views.signatures import StaffSignaturesViewSet

try:
    from fleio.core.loginview import StaffFeatureRouter
    router = StaffFeatureRouter(trailing_slash=False)
    router.register(r'frontend',
                    FrontendView,
                    basename='frontend',
                    feature_name='plugins.tickets')

    router.register(r'tickets',
                    TicketsViewSet,
                    basename='tickets',
                    feature_name='plugins.tickets')
    router.register(r'ticket_notes',
                    TicketNotesViewSet,
                    basename='ticket_notes',
                    feature_name='plugins.tickets')
    router.register(r'ticket_updates',
                    TicketUpdateViewSet,
                    basename='ticket_updates',
                    feature_name='plugins.tickets')
    router.register(r'ticket_attachments',
                    TicketAttachmentsViewSet,
예제 #19
0
from django.conf.urls import include, url

from . import views

try:
    from fleio.core.loginview import StaffFeatureRouter
    router = StaffFeatureRouter(trailing_slash=False)
    router.register(r'sfa-types-manager',
                    views.SecondFactorAuthTypeViewSet,
                    basename='sfatypesmanager',
                    feature_name='clients&users.second_factor_auth')

    urlpatterns = [
        url(
            r'',
            include((router.urls, 'fleiostaff.core.second_factor_auth'),
                    namespace='default'))
    ]
except ImportError:
    urlpatterns = []
예제 #20
0
from plugins.sms_authenticator.staff.sms_authenticator.views import views
from plugins.sms_authenticator.common.base_views import SMSAuthenticatorAnonymousBaseViewSet
try:
    from fleio.core.loginview import StaffFeatureRouter
    router = StaffFeatureRouter(trailing_slash=False)
    router.register(r'api', views.StaffSMSAuthenticatorViewSet, basename='sms_authenticator',
                    feature_name='clients&users.second_factor_auth.sms_authenticator')

    router.register(r'anonymous', SMSAuthenticatorAnonymousBaseViewSet, basename='sms_authenticator',
                    feature_name='clients&users.second_factor_auth.sms_authenticator')

    urlpatterns = router.urls
except ImportError:
    urlpatterns = []
예제 #21
0
from .views import TaskLogViewSet

try:
    from fleio.core.loginview import StaffFeatureRouter
    router = StaffFeatureRouter(trailing_slash=False)
    router.register(r'tasklog',
                    TaskLogViewSet,
                    basename='tasklog',
                    feature_name='utils.tasklog')

    urlpatterns = router.urls

except ImportError:
    urlpatterns = []