Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(770)

Issue 109440043: ACL Report view for admin to view acls of each item in a list and hyperlinks to modify them (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 4 months ago by ajgupta93
Modified:
10 years, 4 months ago
Reviewers:
thomas.j.waldmann, RogerHaase
Visibility:
Public.

Description

ACL Report view for admin to view acls of each item in a list and hyperlinks to modify them

Patch Set 1 #

Patch Set 2 : Added sorting to the table #

Patch Set 3 : Changed table id to moin-sortable and added initial sorting #

Patch Set 4 : Minor html and js changes #

Patch Set 5 : Minor changes #

Patch Set 6 : Removed pep8 errors #

Total comments: 1

Patch Set 7 : Made sorting only for first column in item table in aclreport.html #

Total comments: 8

Patch Set 8 : Minor changes #

Total comments: 2

Patch Set 9 : Fixed Indentation #

Total comments: 4

Patch Set 10 : Used fqname instead of name and changes in acl retrieval #

Patch Set 11 : Updated title #

Patch Set 12 : Minor change #

Patch Set 13 : Improved document retrieval #

Total comments: 8

Patch Set 14 : Changes as mentioned in the previous comments #

Patch Set 15 : Minor whitespace change #

Patch Set 16 : Hardcoded heading into the template #

Total comments: 2

Patch Set 17 : Changed for loop #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -1 line) Patch
M MoinMoin/apps/admin/templates/admin/index.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A MoinMoin/apps/admin/templates/admin/item_acl_report.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +21 lines, -0 lines 0 comments Download
M MoinMoin/apps/admin/views.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +28 lines, -1 line 2 comments Download
M MoinMoin/static/js/common.js View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M MoinMoin/themes/basic/static/css/basic.css View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M MoinMoin/themes/basic/static/custom-less/basic.less View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 13
RogerHaase
looks ok after fixing comment, wait for tw https://codereview.appspot.com/109440043/diff/110001/MoinMoin/apps/admin/templates/admin/aclreport.html File MoinMoin/apps/admin/templates/admin/aclreport.html (right): https://codereview.appspot.com/109440043/diff/110001/MoinMoin/apps/admin/templates/admin/aclreport.html#newcode11 MoinMoin/apps/admin/templates/admin/aclreport.html:11: <table ...
10 years, 4 months ago (2014-07-04 14:38:13 UTC) #1
Thomas.J.Waldmann
https://codereview.appspot.com/109440043/diff/130001/MoinMoin/apps/admin/templates/admin/aclreport.html File MoinMoin/apps/admin/templates/admin/aclreport.html (right): https://codereview.appspot.com/109440043/diff/130001/MoinMoin/apps/admin/templates/admin/aclreport.html#newcode15 MoinMoin/apps/admin/templates/admin/aclreport.html:15: <th>{{ _("ACL Rights") }}</th> ACL means Access Control List. ...
10 years, 4 months ago (2014-07-05 13:02:06 UTC) #2
ajgupta93
https://codereview.appspot.com/109440043/diff/130001/MoinMoin/apps/admin/templates/admin/aclreport.html File MoinMoin/apps/admin/templates/admin/aclreport.html (right): https://codereview.appspot.com/109440043/diff/130001/MoinMoin/apps/admin/templates/admin/aclreport.html#newcode15 MoinMoin/apps/admin/templates/admin/aclreport.html:15: <th>{{ _("ACL Rights") }}</th> On 2014/07/05 13:02:05, Thomas.J.Waldmann wrote: ...
10 years, 4 months ago (2014-07-05 13:54:01 UTC) #3
ajgupta93
https://codereview.appspot.com/109440043/diff/130001/MoinMoin/apps/admin/views.py File MoinMoin/apps/admin/views.py (right): https://codereview.appspot.com/109440043/diff/130001/MoinMoin/apps/admin/views.py#newcode266 MoinMoin/apps/admin/views.py:266: items_acls.append({'name': item['name'], 'acl': app.cfg.acl_mapping[1][1]['default']}) On 2014/07/05 13:54:01, ajgupta93 wrote: ...
10 years, 4 months ago (2014-07-07 12:00:18 UTC) #4
RogerHaase
https://codereview.appspot.com/109440043/diff/150001/MoinMoin/apps/admin/templates/admin/aclreport.html File MoinMoin/apps/admin/templates/admin/aclreport.html (right): https://codereview.appspot.com/109440043/diff/150001/MoinMoin/apps/admin/templates/admin/aclreport.html#newcode6 MoinMoin/apps/admin/templates/admin/aclreport.html:6: {% endif %} indentation for block rather onconsistent
10 years, 4 months ago (2014-07-07 13:05:43 UTC) #5
ajgupta93
https://codereview.appspot.com/109440043/diff/150001/MoinMoin/apps/admin/templates/admin/aclreport.html File MoinMoin/apps/admin/templates/admin/aclreport.html (right): https://codereview.appspot.com/109440043/diff/150001/MoinMoin/apps/admin/templates/admin/aclreport.html#newcode6 MoinMoin/apps/admin/templates/admin/aclreport.html:6: {% endif %} On 2014/07/07 13:05:43, RogerHaase wrote: > ...
10 years, 4 months ago (2014-07-07 13:19:28 UTC) #6
Thomas.J.Waldmann
https://codereview.appspot.com/109440043/diff/170001/MoinMoin/apps/admin/templates/admin/aclreport.html File MoinMoin/apps/admin/templates/admin/aclreport.html (right): https://codereview.appspot.com/109440043/diff/170001/MoinMoin/apps/admin/templates/admin/aclreport.html#newcode17 MoinMoin/apps/admin/templates/admin/aclreport.html:17: <td><a href="{{ url_for('frontend.modify_item', item_name=item['name'][0]) }}">{{ item['name'] | join(', ') ...
10 years, 4 months ago (2014-07-07 13:45:22 UTC) #7
ajgupta93
https://codereview.appspot.com/109440043/diff/170001/MoinMoin/apps/admin/templates/admin/aclreport.html File MoinMoin/apps/admin/templates/admin/aclreport.html (right): https://codereview.appspot.com/109440043/diff/170001/MoinMoin/apps/admin/templates/admin/aclreport.html#newcode17 MoinMoin/apps/admin/templates/admin/aclreport.html:17: <td><a href="{{ url_for('frontend.modify_item', item_name=item['name'][0]) }}">{{ item['name'] | join(', ') ...
10 years, 4 months ago (2014-07-09 10:05:29 UTC) #8
Thomas.J.Waldmann
https://codereview.appspot.com/109440043/diff/240001/MoinMoin/apps/admin/templates/admin/item_acl_report.html File MoinMoin/apps/admin/templates/admin/item_acl_report.html (right): https://codereview.appspot.com/109440043/diff/240001/MoinMoin/apps/admin/templates/admin/item_acl_report.html#newcode6 MoinMoin/apps/admin/templates/admin/item_acl_report.html:6: {% endif %} do you use it without headline? ...
10 years, 4 months ago (2014-07-12 15:27:01 UTC) #9
ajgupta93
https://codereview.appspot.com/109440043/diff/240001/MoinMoin/apps/admin/templates/admin/item_acl_report.html File MoinMoin/apps/admin/templates/admin/item_acl_report.html (right): https://codereview.appspot.com/109440043/diff/240001/MoinMoin/apps/admin/templates/admin/item_acl_report.html#newcode6 MoinMoin/apps/admin/templates/admin/item_acl_report.html:6: {% endif %} On 2014/07/12 15:27:01, Thomas.J.Waldmann wrote: > ...
10 years, 4 months ago (2014-07-14 14:49:14 UTC) #10
RogerHaase
https://codereview.appspot.com/109440043/diff/300001/MoinMoin/apps/admin/views.py File MoinMoin/apps/admin/views.py (right): https://codereview.appspot.com/109440043/diff/300001/MoinMoin/apps/admin/views.py#newcode274 MoinMoin/apps/admin/views.py:274: for config in app.cfg.acl_mapping: I think he meant something ...
10 years, 4 months ago (2014-07-14 16:30:27 UTC) #11
ajgupta93
https://codereview.appspot.com/109440043/diff/300001/MoinMoin/apps/admin/views.py File MoinMoin/apps/admin/views.py (right): https://codereview.appspot.com/109440043/diff/300001/MoinMoin/apps/admin/views.py#newcode274 MoinMoin/apps/admin/views.py:274: for config in app.cfg.acl_mapping: On 2014/07/14 16:30:27, RogerHaase wrote: ...
10 years, 4 months ago (2014-07-14 17:14:24 UTC) #12
Thomas.J.Waldmann
10 years, 4 months ago (2014-07-17 16:39:58 UTC) #13
https://codereview.appspot.com/109440043/diff/320001/MoinMoin/apps/admin/view...
File MoinMoin/apps/admin/views.py (right):

https://codereview.appspot.com/109440043/diff/320001/MoinMoin/apps/admin/view...
MoinMoin/apps/admin/views.py:268: if not item_acl:
this "not" triggers for "" and also for None.

i think you just meant "if item_acl is None:" and didn't want to include the
empty acl "".

https://codereview.appspot.com/109440043/diff/320001/MoinMoin/apps/admin/view...
MoinMoin/apps/admin/views.py:271: item_acl = 'Default (' + acl_config['default']
+ ')'
how about using string formatting?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b