Exemplo n.º 1
0
        name='share-view'),
    url(r'^api/shares/(?P<sname>[A-Za-z0-9_]+)/nfs/$', ShareNFSView.as_view(),
        name='nfs-view'),
    url(r'^api/shares/(?P<sname>[A-Za-z0-9_]+)/nfs/(?P<export_id>[0-9]+)/$',
        ShareNFSView.as_view(), name='nfs-view'),
    url(r'^api/shares/(?P<sname>[A-Za-z0-9_]+)/samba/$',
        ShareSambaView.as_view(), name='samba-view'),
    url(r'^api/shares/(?P<sname>[A-Za-z0-9_]+)/snapshots/$',
        SnapshotView.as_view(), name='snapshot-view'),
    url(r'^api/shares/(?P<sname>[A-Za-z0-9_]+)/snapshots/(?P<snap_name>.*)/$',
        SnapshotView.as_view(), name='snapshot-view'),
    url(r'^api/shares/(?P<sname>[A-Za-z0-9_]+)/iscsi/$',
        ShareIscsiView.as_view(), name='share-iscsi-view'),

    # User configuration
    url(r'^api/users/(?P<id>\d+)$', UserView.as_view(), name='user-view'),
    url(r'^api/users/$', UserView.as_view(), name='user-view'),

    url(r'^api/sm/services/$', ServiceView.as_view(), name='service-view'),
    url(r'^api/sm/services/(?P<sname>[A-Za-z_]+)/$', ServiceView.as_view(), name='service-view'),
    url(r'^api/sm/stap/$', StapView.as_view(), name='stap-view'),
    url(r'^api/sm/stap/(?P<tname>[A-Za-z0-9_]+)/$', StapView.as_view(), name='stap-view'),
    url(r'^api/sm/(?P<mname>[A-Za-z0-9_]+)/$', SmartManagerView.as_view(), name='sm-view'),
    url(r'^api/support/$', SupportView.as_view(), name='support-view'),
    url(r'^api/support/(?P<caseid>[0-9]+)/$', SupportView.as_view(), name='support-view'),

    # Dashboard config
    url(r'^api/dashboardconfig/$', DashboardConfigView.as_view(), name='dashboardconfig-view'),

)
Exemplo n.º 2
0
"""
Copyright (c) 2012-2013 RockStor, Inc. <http://rockstor.com>
This file is part of RockStor.

RockStor is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.

RockStor is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""

from django.conf.urls import patterns, url
from storageadmin.views import UserView

urlpatterns = patterns(
    '',
    # User configuration
    url(r'^$', UserView.as_view(), name='user-view'),
    url(r'(?P<username>[A-Za-z]+[A-Za-z0-9]*)$',
        UserView.as_view(),
        name='user-view'),
)
Exemplo n.º 3
0
"""
Copyright (c) 2012-2013 RockStor, Inc. <http://rockstor.com>
This file is part of RockStor.

RockStor is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.

RockStor is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""

from django.conf.urls import patterns, url
from storageadmin.views import UserView


urlpatterns = patterns(
    '',
    # User configuration
    url(r'^$', UserView.as_view(), name='user-view'),
    url(r'(?P<username>[A-Za-z]+[A-Za-z0-9]*)$', UserView.as_view(),
        name='user-view'),
)
Exemplo n.º 4
0
"""
Copyright (c) 2012-2013 RockStor, Inc. <http://rockstor.com>
This file is part of RockStor.

RockStor is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.

RockStor is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""

from django.conf.urls import patterns, url
from storageadmin.views import UserView
from django.conf import settings


urlpatterns = patterns(
    '',
    # User configuration
    url(r'^$', UserView.as_view()),
    url(r'(?P<username>%s)$' % settings.USERNAME_REGEX, UserView.as_view()),
)