10 years, 4 months ago
(2014-07-05 13:54:01 UTC)
#3
https://codereview.appspot.com/109440043/diff/130001/MoinMoin/apps/admin/temp...
File MoinMoin/apps/admin/templates/admin/aclreport.html (right):
https://codereview.appspot.com/109440043/diff/130001/MoinMoin/apps/admin/temp...
MoinMoin/apps/admin/templates/admin/aclreport.html:15: <th>{{ _("ACL Rights")
}}</th>
On 2014/07/05 13:02:05, Thomas.J.Waldmann wrote:
> ACL means Access Control List.
>
> What are "ACL Rights"?
I was referring to the ACL Strings. I'll change that to "ACL".
https://codereview.appspot.com/109440043/diff/130001/MoinMoin/apps/admin/temp...
MoinMoin/apps/admin/templates/admin/aclreport.html:21: <td><a href="{{
url_for('frontend.modify_item', item_name=item['name'][0]) }}">{{ item['name'] |
join(' | ') }}</a></td>
On 2014/07/05 13:02:05, Thomas.J.Waldmann wrote:
> this will crash for nameless items.
Ok.. i'll change both the view and 'modify_item' to add fqname support.
https://codereview.appspot.com/109440043/diff/130001/MoinMoin/apps/admin/view...
File MoinMoin/apps/admin/views.py (right):
https://codereview.appspot.com/109440043/diff/130001/MoinMoin/apps/admin/view...
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:02:05, Thomas.J.Waldmann wrote:
> crashes for nameless items.
>
> instead of generating a (potentially huge) list of all items just to annoy the
> administrator who has to find out then what's default acl and what's not, you
> rather should tell that all not-listed items of course have the configured
acls
> applied and the listed ones additionally have the listed special acls.
>
> alternatively, print "Default" if it is the default acl, so it is easier to
see
> them.
Ok.. I'll do that
10 years, 4 months ago
(2014-07-07 12:00:18 UTC)
#4
https://codereview.appspot.com/109440043/diff/130001/MoinMoin/apps/admin/view...
File MoinMoin/apps/admin/views.py (right):
https://codereview.appspot.com/109440043/diff/130001/MoinMoin/apps/admin/view...
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:
> On 2014/07/05 13:02:05, Thomas.J.Waldmann wrote:
> > crashes for nameless items.
> >
> > instead of generating a (potentially huge) list of all items just to annoy
the
> > administrator who has to find out then what's default acl and what's not,
you
> > rather should tell that all not-listed items of course have the configured
> acls
> > applied and the listed ones additionally have the listed special acls.
> >
> > alternatively, print "Default" if it is the default acl, so it is easier to
> see
> > them.
>
> Ok.. I'll do that
On second thought i'll implement the nameless items support once fqname support
is added to modify_item function, as stated in the other cr. After that is done,
i'll add fqname support to this view too.
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
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
https://codereview.appspot.com/109440043/diff/320001/MoinMoin/apps/admin/views.py File MoinMoin/apps/admin/views.py (right): https://codereview.appspot.com/109440043/diff/320001/MoinMoin/apps/admin/views.py#newcode268 MoinMoin/apps/admin/views.py:268: if not item_acl: this "not" triggers for "" and ...
10 years, 4 months ago
(2014-07-17 16:39:58 UTC)
#13
Issue 109440043: ACL Report view for admin to view acls of each item in a list and hyperlinks to modify them
(Closed)
Created 10 years, 4 months ago by ajgupta93
Modified 10 years, 4 months ago
Reviewers: RogerHaase, thomas.j.waldmann_gmail.com
Base URL:
Comments: 27