Im working on sorting through some bugs on the python3 version of the grammar matrix, but I’m having some trouble making sense of some of the code.
Specifically I see in gmcs/deffile.py where the “upload choices file” button is created. and I see in matrix.cgi where different options for evaluating the choices file exist, but I’m having trouble distinguishing where in that process the file is actually dealt with.
It seems like it should either be
else: # Uploaded choices data
data = choices
if data or choices.endswith(’/empty’):
f = open(os.path.join(session_path, ‘choices’), ‘w’)
but I put debug statements in to preempt the error that occures when you click “upload choices”, and it doesn’t seem to trigger in either case, which suggests either i’m very wrong, or there is a process that goes off inbetween deffile.py and the post statement back into matrix.cgi… Any thoughts or insights would be appreciated.