Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e0ba77b2
authored
Jun 27, 2013
by
Őry Máté
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
firewall_gui: detach urls
parent
e433937a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
36 deletions
+43
-36
cloud/urls.py
+2
-36
firewall_gui/urls.py
+41
-0
No files found.
cloud/urls.py
View file @
e0ba77b2
...
@@ -4,7 +4,7 @@ from django.contrib import admin
...
@@ -4,7 +4,7 @@ from django.contrib import admin
admin
.
autodiscover
()
admin
.
autodiscover
()
import
one.views
import
one.views
import
firewall
.view
s
import
firewall
_gui.url
s
# import store.views
# import store.views
js_info_dict
=
{
js_info_dict
=
{
...
@@ -93,39 +93,5 @@ urlpatterns = patterns('',
...
@@ -93,39 +93,5 @@ urlpatterns = patterns('',
url
(
r'^sites/(?P<site>[a-zA-Z0-9]+)/$'
,
'one.views.sites'
),
url
(
r'^sites/(?P<site>[a-zA-Z0-9]+)/$'
,
'one.views.sites'
),
url
(
r'^accounts/(?P<site>profile)/$'
,
'one.views.sites'
),
url
(
r'^accounts/(?P<site>profile)/$'
,
'one.views.sites'
),
url
(
r'^firewall/$'
,
'firewall_gui.views.index'
),
url
(
r'^firewall/'
,
include
(
firewall_gui
.
urls
),
),
url
(
r'^firewall/rules/(?P<id>\d+)/$'
,
'firewall_gui.views.show_rule'
),
url
(
r'^firewall/hosts/(?P<id>\d+)/$'
,
'firewall_gui.views.show_host'
),
url
(
r'^firewall/vlans/(?P<id>\d+)/$'
,
'firewall_gui.views.show_vlan'
),
url
(
r'^firewall/vlangroups/(?P<id>\d+)/$'
,
'firewall_gui.views.show_vlangroup'
),
url
(
r'^firewall/hostgroups/(?P<id>\d+)/$'
,
'firewall_gui.views.show_hostgroup'
),
url
(
r'^firewall/records/(?P<id>\d+)/$'
,
'firewall_gui.views.show_record'
),
url
(
r'^firewall/domains/(?P<id>\d+)/$'
,
'firewall_gui.views.show_domain'
),
url
(
r'^firewall/(?P<name>\w+)/$'
,
'firewall_gui.views.list_entities'
),
url
(
r'^firewall/autocomplete/(?P<entity>\w+)/$'
,
'firewall_gui.views.autocomplete'
),
url
(
r'^firewall/rules/save/$'
,
'firewall_gui.views.save_rule'
),
url
(
r'^firewall/hosts/save/$'
,
'firewall_gui.views.save_host'
),
url
(
r'^firewall/vlans/save/$'
,
'firewall_gui.views.save_vlan'
),
url
(
r'^firewall/vlangroups/save/$'
,
'firewall_gui.views.save_vlangroup'
),
url
(
r'^firewall/hostgroups/save/$'
,
'firewall_gui.views.save_hostgroup'
),
url
(
r'^firewall/domains/save/$'
,
'firewall_gui.views.save_domain'
),
url
(
r'^firewall/records/save/$'
,
'firewall_gui.views.save_record'
),
url
(
r'^firewall/(?P<name>\w+)/(?P<id>\d+)/delete/'
,
'firewall_gui.views.delete_entity'
),
url
(
r'^firewall/rules/new/$'
,
'firewall_gui.views.show_rule'
),
url
(
r'^firewall/hosts/new/$'
,
'firewall_gui.views.show_host'
),
url
(
r'^firewall/vlans/new/$'
,
'firewall_gui.views.show_vlan'
),
url
(
r'^firewall/vlangroups/new/$'
,
'firewall_gui.views.show_vlangroup'
),
url
(
r'^firewall/hostgroups/new/$'
,
'firewall_gui.views.show_hostgroup'
),
url
(
r'^firewall/domains/new/$'
,
'firewall_gui.views.show_domain'
),
url
(
r'^firewall/records/new/$'
,
'firewall_gui.views.show_record'
),
# url(r'^firewall/vlangroups/save/$', 'firewall_gui.views.save_vlangroup'),
# url(r'^firewall/hostgroups/save/$', 'firewall_gui.views.save_hostgroup'),
# url(r'^firewall/domains/save/$', 'firewall_gui.views.save_domain'),
# url(r'^firewall/records/save/$', 'firewall_gui.views.save_record'),
)
)
firewall_gui/urls.py
0 → 100644
View file @
e0ba77b2
from
django.conf.urls
import
patterns
,
url
urlpatterns
=
patterns
(
''
,
url
(
r'rules/(?P<id>\d+)/$'
,
'firewall_gui.views.show_rule'
),
url
(
r'hosts/(?P<id>\d+)/$'
,
'firewall_gui.views.show_host'
),
url
(
r'vlans/(?P<id>\d+)/$'
,
'firewall_gui.views.show_vlan'
),
url
(
r'vlangroups/(?P<id>\d+)/$'
,
'firewall_gui.views.show_vlangroup'
),
url
(
r'hostgroups/(?P<id>\d+)/$'
,
'firewall_gui.views.show_hostgroup'
),
url
(
r'records/(?P<id>\d+)/$'
,
'firewall_gui.views.show_record'
),
url
(
r'domains/(?P<id>\d+)/$'
,
'firewall_gui.views.show_domain'
),
url
(
r'(?P<name>\w+)/$'
,
'firewall_gui.views.list_entities'
),
url
(
r'autocomplete/(?P<entity>\w+)/$'
,
'firewall_gui.views.autocomplete'
),
url
(
r'rules/save/$'
,
'firewall_gui.views.save_rule'
),
url
(
r'hosts/save/$'
,
'firewall_gui.views.save_host'
),
url
(
r'vlans/save/$'
,
'firewall_gui.views.save_vlan'
),
url
(
r'vlangroups/save/$'
,
'firewall_gui.views.save_vlangroup'
),
url
(
r'hostgroups/save/$'
,
'firewall_gui.views.save_hostgroup'
),
url
(
r'domains/save/$'
,
'firewall_gui.views.save_domain'
),
url
(
r'records/save/$'
,
'firewall_gui.views.save_record'
),
url
(
r'(?P<name>\w+)/(?P<id>\d+)/delete/'
,
'firewall_gui.views.delete_entity'
),
url
(
r'rules/new/$'
,
'firewall_gui.views.show_rule'
),
url
(
r'hosts/new/$'
,
'firewall_gui.views.show_host'
),
url
(
r'vlans/new/$'
,
'firewall_gui.views.show_vlan'
),
url
(
r'vlangroups/new/$'
,
'firewall_gui.views.show_vlangroup'
),
url
(
r'hostgroups/new/$'
,
'firewall_gui.views.show_hostgroup'
),
url
(
r'domains/new/$'
,
'firewall_gui.views.show_domain'
),
url
(
r'records/new/$'
,
'firewall_gui.views.show_record'
),
# url(r'vlangroups/save/$', 'firewall_gui.views.save_vlangroup'),
# url(r'hostgroups/save/$', 'firewall_gui.views.save_hostgroup'),
# url(r'domains/save/$', 'firewall_gui.views.save_domain'),
# url(r'records/save/$', 'firewall_gui.views.save_record'),
url
(
r'$'
,
'firewall_gui.views.index'
),
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment