Results 51 comments of Harry Percival

For me `TAGGIT_CASE_INSENSITIVE` fixed things for ascii strings, but entering a tag with the unicode character "é" (`\u00e9`) twice still seems to cause an integrity error. (it might be fixable...

Here's something I found somewhere, sorry I can't find it any more to give credit. First, create a little wrapper shell script whose job it is to capture input, output,...

for bonus points it would delete those files on exit! but my shell-fu isn't strong enough for that lol.

~(it's actually completely broken for executables that have full paths. trying to fix)~ i tried to fix that. it works in at least one case lol

@w0rp I've been banging my head against getting that wrapper to work reliably but shell buffering stuff is hard to wrangle. would you be interested in a small cash subsidy...

The ideal solution sounds like a fair bit of work, so we're thinking of going for the second-best, ie, noticing when we've intercepted a POST request, and warning the user...

less pseudocodey: ```python def sudo_required(func): @wraps(func) def inner(request, *args, **kwargs): if not request.is_sudo(): if request.method == 'POST': request.session['sudo_post_intercepted'] = True else: request.session['sudo_post_intercepted'] = False return redirect_to_sudo(request.get_full_path()) if request.session.get('sudo_post_intercepted'): messages.warning(request, 'Authentication...

@luzfcb that sounds like it could work for the ultimate magic solution. presumably that would mean totally rewriting `sudo.views.SudoView` tho? that's above my paygrade i think...

great idea! do you want to have a go at fixing it? the place for the fix is near the end of the implementation: ```python icdiff_lines = list(differ.make_table(pretty_left, pretty_right)) if...

this sounds interesting. i'd be pretty happy to just yolo-convert the ordereddict to normaldicts and then show the diff? maybe add a message to say that's what we did...