コード例 #1
0
#
#  Copyright 2015 VMware, Inc.
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#
from django.conf.urls import patterns, url
from django.contrib.auth.decorators import login_required

from execute import views
from chaperone.decorators import login_required_ajax

urlpatterns = patterns(
    '',
    url(r'^$', login_required_ajax(views.index), name='index'),
    url(r'^run$', login_required_ajax(views.run_commands), name='run'),
    url(r'^tail$', login_required_ajax(views.tail_log), name='tail'),
)
コード例 #2
0
#
#  Copyright 2015 VMware, Inc.
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#
from django.conf.urls import patterns, url
from django.contrib.auth.decorators import login_required

from prepare import views
from chaperone.decorators import login_required_ajax


urlpatterns = patterns('',
    url(r'^group$', login_required_ajax(views.get_group), name='group'),
    url(r'^save$', login_required_ajax(views.save_group), name='save'),
    url(r'^status$', login_required_ajax(views.get_group_status),
        name='status'),
    url(r'^(?P<name>[^/]+)/download$', login_required(views.download_file),
        name='download'),
)
コード例 #3
0
ファイル: urls.py プロジェクト: jreypo/chaperone-ui
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.contrib.auth.decorators import login_required

from chaperone import views
from chaperone.decorators import login_required_ajax


admin.autodiscover()


urlpatterns = patterns('',
    url(r'^$', login_required(views.index), name='index'),
    url(r'^login$', views.login, name='login'),
    url(r'^logout$', views.logout, name='logout'),
    url(r'^options$', login_required(views.list_options), name='options'),
    url(r'^savevc$', login_required_ajax(views.save_vcenter), name='savevc'),
    url(r'^vcenter$', login_required(views.vcenter_settings), name='vcenter'),
    url(r'^prepare/', include('prepare.urls', namespace='prepare')),
    url(r'^execute/', include('execute.urls', namespace='execute')),
)
コード例 #4
0
ファイル: urls.py プロジェクト: mrlesmithjr/chaperone-ui
#  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#
from django.conf.urls import patterns, include, url
from django.contrib import admin
from django.contrib.auth.decorators import login_required

from chaperone import views
from chaperone.decorators import login_required_ajax

admin.autodiscover()

urlpatterns = patterns(
    '',
    url(r'^$', login_required(views.index), name='index'),
    url(r'^login$', views.login, name='login'),
    url(r'^logout$', views.logout, name='logout'),
    url(r'^options$', login_required(views.list_options), name='options'),
    url(r'^savevc$', login_required_ajax(views.save_vcenter), name='savevc'),
    url(r'^vcenter$', login_required(views.vcenter_settings), name='vcenter'),
    url(r'^prepare/', include('prepare.urls', namespace='prepare')),
    url(r'^execute/', include('execute.urls', namespace='execute')),
)
コード例 #5
0
ファイル: urls.py プロジェクト: jreypo/chaperone-ui
#
#  Copyright 2015 VMware, Inc.
#
#  Licensed under the Apache License, Version 2.0 (the "License");
#  you may not use this file except in compliance with the License.
#  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
#  limitations under the License.
#
from django.conf.urls import patterns, url
from django.contrib.auth.decorators import login_required

from execute import views
from chaperone.decorators import login_required_ajax


urlpatterns = patterns('',
    url(r'^$', login_required_ajax(views.index), name='index'),
    url(r'^run$', login_required_ajax(views.run_commands), name='run'),
    url(r'^tail$', login_required_ajax(views.tail_log), name='tail'),
)