From tsmidt at mit.edu Wed Jan 25 00:17:19 2023 From: tsmidt at mit.edu (Tess Smidt) Date: Tue, 24 Jan 2023 21:17:19 -0800 Subject: [catsoop-users] 500 error on save (highlander 2022.9.1) Message-ID: Howdy, I get a 500 error when trying to save on pythoncode question. How do I either 1) fix this or 2) remove the save button for python code questions. csq_allow_save = False does not seem to effect this. Thanks! Tess [image: Groups___Symm4ML.png] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Groups___Symm4ML.png Type: image/png Size: 187627 bytes Desc: not available URL: From hz at mit.edu Mon Jan 30 09:25:06 2023 From: hz at mit.edu (adam j hartz) Date: Mon, 30 Jan 2023 09:25:06 -0500 Subject: [catsoop-users] 500 error on save (highlander 2022.9.1) In-Reply-To: References: Message-ID: Hi Tess, Thanks for reaching out. > I get a 500 error when trying to save on pythoncode question. This is a known issue (same thing as [1]). Should be an easy fix; I'll see if I can get to it today, and I can try to see about pushing a new release sometime this week, though no guarantees there. [1] https://catsoop.org/git/catsoop/catsoop/issues/44 > How do I [...] fix this As far as I can tell, this requires a change in catsoop itself; it's a holdover bug from some changes to logging last January. Not many people use the "Save" button so it hasn't come up very often. > or [...] remove the save button for python code questions. > csq_allow_save = False does not seem to effect this. csq_allow_save = False is the right incantation there. The way things are currently set up, nothing will ever remove those buttons from the staff view, but if you view the page as a student (?as_role=Student in the URL) or change yourself to be a student, you should no longer see the save button. Hope this helps! If other stuff comes up, let me know. Thanks, -Adam -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: