Skip to content

Commit

Permalink
flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
thraxil committed Aug 2, 2016
1 parent 171b7c7 commit cf9c2f5
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
34 changes: 17 additions & 17 deletions pagetree/tests/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,29 @@
# instantiate generic views using a template that doesn't
# extend/depend on base.html
url(r'^pages/edit/(?P<path>.*)$',
EditView.as_view(template_name="pagetree/test_page.html"),
{}, 'edit-page'),
EditView.as_view(template_name="pagetree/test_page.html"),
{}, 'edit-page'),
url(r'^pages/instructor/(?P<path>.*)$',
InstructorView.as_view(template_name="pagetree/test_page.html")),
InstructorView.as_view(template_name="pagetree/test_page.html")),
url(r'^pages/(?P<path>.*)$',
PageView.as_view(template_name="pagetree/test_page.html")),
PageView.as_view(template_name="pagetree/test_page.html")),

# a second set to make sure non-default hierarchies
# get handled as well
url(r'^pages2/edit/(?P<path>.*)$',
EditView.as_view(
hierarchy_name="two",
hierarchy_base="/pages2",
template_name="pagetree/test_page.html"),
{}, 'edit-page'),
EditView.as_view(
hierarchy_name="two",
hierarchy_base="/pages2",
template_name="pagetree/test_page.html"),
{}, 'edit-page'),
url(r'^pages2/instructor/(?P<path>.*)$',
InstructorView.as_view(
hierarchy_name="two",
hierarchy_base="/pages2",
template_name="pagetree/test_page.html")),
InstructorView.as_view(
hierarchy_name="two",
hierarchy_base="/pages2",
template_name="pagetree/test_page.html")),
url(r'^pages2/(?P<path>.*)$',
PageView.as_view(
hierarchy_name="two",
hierarchy_base="/pages2",
template_name="pagetree/test_page.html")),
PageView.as_view(
hierarchy_name="two",
hierarchy_base="/pages2",
template_name="pagetree/test_page.html")),
]
28 changes: 14 additions & 14 deletions pagetree/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,31 +23,31 @@

urlpatterns += [
url(r'^reorder_pageblocks/(?P<section_id>\d+)/$', reorder_pageblocks, {},
"reorder-pageblocks"),
"reorder-pageblocks"),
url(r'^reorder_section_children/(?P<section_id>\d+)/$',
reorder_section_children, {}, "reorder-section-children"),
reorder_section_children, {}, "reorder-section-children"),
url(r'^section/add/(?P<section_id>\d+)/$', add_child_section, {},
"add-child-section"),
"add-child-section"),
url(r'^section/move/(?P<section_id>\d+)/$', move_section, {},
"move-section"),
"move-section"),
url(r'^pageblock/add/(?P<section_id>\d+)/$', add_pageblock, {},
"add-pageblock"),
"add-pageblock"),
url(r'^pageblock/edit/(?P<pageblock_id>\d+)/$', edit_pageblock, {},
"edit-pageblock"),
url(r'^pageblock/jsonexport/(?P<pageblock_id>\d+)/$', export_pageblock_json,
{}, "export-pageblock-json"),
url(r'^pageblock/jsonimport/(?P<pageblock_id>\d+)/$', import_pageblock_json,
{}, "import-pageblock-json"),
"edit-pageblock"),
url(r'^pageblock/jsonexport/(?P<pageblock_id>\d+)/$',
export_pageblock_json, {}, "export-pageblock-json"),
url(r'^pageblock/jsonimport/(?P<pageblock_id>\d+)/$',
import_pageblock_json, {}, "import-pageblock-json"),
url(r'^delete_section/(?P<section_id>\d+)/$', delete_section, {},
"delete-section"),
"delete-section"),
url(r'^edit_section/(?P<section_id>\d+)/$', edit_section, {},
"edit-section"),
"edit-section"),
url(r'^delete_pageblock/(?P<pageblock_id>\d+)/$', delete_pageblock, {},
"delete-pageblock"),
"delete-pageblock"),
url(r'^create_tree_root$', create_tree_root, {}, "create_tree_root"),
url(r'^export/$', exporter, {}, 'export-hierarchy'),
url(r'^version/(?P<version_id>\d+)/revert/$', revert_to_version, {},
"revert-to-version"),
"revert-to-version"),
url(r'^clone_hierarchy/(?P<hierarchy_id>\d+)/$',
CloneHierarchyView.as_view(), name="clone-hierarchy"),
]

0 comments on commit cf9c2f5

Please sign in to comment.