Added URLHook to Checklist Extension Options page
Review Request #6135 — Created July 23, 2014 and discarded
Defined a new file, urls.py, to take care of url patterns. Also, Added a URLHook using the urlPattern.
Added a statement to register templates resource to its model.
Created manager.html, and connected it in views.py
opened the link [server]/checklist/manager/
The server serves the empty page 'manager.html' with its Title
Description | From | Last Updated |
---|---|---|
No need for parens, since this doesn't span multiple lines. |
chipx86 | |
The urlpatterns line needs to have arguments properly lined up, like: urlpatterns = patterns( '', url(...), ) You probably just … |
chipx86 | |
Col: 13 E128 continuation line under-indented for visual indent |
reviewbot | |
Please put the 'checklist.views' on the next line, with a blank line separating it and the url(). You should also … |
chipx86 | |
Col: 5 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 2 W292 no newline at end of file |
reviewbot | |
Col: 22 W291 trailing whitespace |
reviewbot | |
Col: 17 E124 closing bracket does not match visual indentation |
reviewbot | |
Col: 5 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 17 E124 closing bracket does not match visual indentation |
reviewbot | |
Col: 5 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 5 E101 indentation contains mixed spaces and tabs |
reviewbot | |
Col: 5 W191 indentation contains tabs |
reviewbot | |
Col: 10 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 5 E101 indentation contains mixed spaces and tabs |
reviewbot | |
Col: 5 W191 indentation contains tabs |
reviewbot | |
Col: 11 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 32 E127 continuation line over-indented for visual indent |
reviewbot | |
Col: 1 E302 expected 2 blank lines, found 1 |
reviewbot | |
Col: 1 E101 indentation contains mixed spaces and tabs |
reviewbot | |
Col: 1 W191 indentation contains tabs |
reviewbot | |
Col: 1 W191 indentation contains tabs |
reviewbot | |
Col: 1 W191 indentation contains tabs |
reviewbot | |
Col: 1 W191 indentation contains tabs |
reviewbot | |
Col: 7 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 1 W191 indentation contains tabs |
reviewbot | |
Col: 8 E128 continuation line under-indented for visual indent |
reviewbot | |
'redirect' imported but unused |
reviewbot | |
'get_object_or_404' imported but unused |
reviewbot | |
'render' imported but unused |
reviewbot | |
'get_list_or_404' imported but unused |
reviewbot | |
Col: 32 E127 continuation line over-indented for visual indent |
reviewbot | |
While you're here, can you fix the alignment? register_resource_for_model should be aligned with unregister_resource_for_model. |
anselina | |
Can you add a blank line before this? |
anselina | |
ChecklistTemplate should go before ReviewChecklist, and no parens are needed since they fit on one line. |
anselina | |
Col: 1 W191 indentation contains tabs |
reviewbot | |
Col: 7 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 1 W191 indentation contains tabs |
reviewbot | |
Col: 8 E128 continuation line under-indented for visual indent |
reviewbot | |
'redirect' imported but unused |
reviewbot | |
'get_object_or_404' imported but unused |
reviewbot | |
'render' imported but unused |
reviewbot | |
'get_list_or_404' imported but unused |
reviewbot | |
Col: 32 E127 continuation line over-indented for visual indent |
reviewbot | |
Is this returned line over indented? |
PE PeterTran | |
Col: 25 E127 continuation line over-indented for visual indent |
reviewbot | |
Col: 1 E124 closing bracket does not match visual indentation |
reviewbot |
-
-
-
The urlpatterns line needs to have arguments properly lined up, like:
urlpatterns = patterns( '', url(...), )
You probably just want to pass these values directly into
URLHook
instead of creating a variable, though. -
Please put the
'checklist.views'
on the next line, with a blank line separating it and theurl()
.You should also have a comma after the
url()
line. That makes it easier to add additional entries without changing existing lines.
-
Tool: Pyflakes Processed Files: checklist/checklist/extension.py checklist/checklist/urls.py Tool: PEP8 Style Checker Processed Files: checklist/checklist/extension.py checklist/checklist/urls.py
-
-
-
- Change Summary:
-
Register checklist templates resource to its model
- Description:
-
~ Defined a new file, urls.py, to take care of url patterns. Also, Added a URLHook using the urlPattern.
~ Defined a new file, urls.py, to take care of url patterns. Also, Added a URLHook using the urlPattern.
+ Added a statement to register templates resource to its model. - Commit:
-
df6180253c3fffbf0abc1498b73d3cac336d918aa3bfb3765050a44769f93a52d1dd40168391b524
-
Tool: Pyflakes Processed Files: checklist/checklist/extension.py checklist/checklist/urls.py Tool: PEP8 Style Checker Processed Files: checklist/checklist/extension.py checklist/checklist/urls.py
-
-
-
Tool: PEP8 Style Checker Processed Files: checklist/checklist/extension.py checklist/checklist/urls.py checklist/checklist/view.py
-
-
-
-
-
-
-
-
-
-
-
-
- Change Summary:
-
Renamed view.py to views.py, changes url to map to "checklist/manager/", fixed styling and format.
- Summary:
-
[WIP] Added URLHook to Checklist Extension Options pageAdded URLHook to Checklist Extension Options page
- Testing Done:
-
+ Created manager.html, and connected it in views.py
+ opened the link [server]/checklist/manager/ + The server serves the empty page 'manager.html' with its Title - Commit:
-
48c013f596b2f87c0fefb3e801a0f5389054c10532a7f6e9cabf7f392ef3f1df48156d8688f186dd
-
Tool: PEP8 Style Checker Processed Files: checklist/checklist/extension.py checklist/checklist/urls.py checklist/checklist/views.py Tool: Pyflakes Processed Files: checklist/checklist/extension.py checklist/checklist/urls.py checklist/checklist/views.py
-
-
-
-
-
-
-
-
-
-
Tool: PEP8 Style Checker Processed Files: checklist/checklist/extension.py checklist/checklist/urls.py checklist/checklist/views.py Tool: Pyflakes Processed Files: checklist/checklist/extension.py checklist/checklist/urls.py checklist/checklist/views.py
-
-
-
-
-
-
-
-
-
- Change Summary:
-
Fixed indentation, and other format.
- Commit:
-
32a7f6e9cabf7f392ef3f1df48156d8688f186dd7dea0a94fb3383f64619e583942005f821dc200e