ifarup / ciefunctions

Python module, GUI, and web app for computing the CIE TC1-97 colorimetric functions
GNU General Public License v3.0
4 stars 5 forks source link

Bug in save table in web app #156

Open ifarup opened 9 years ago

ifarup commented 9 years ago

Pushing the "Save table" button gives a "Page not found" error

gerardodiego commented 9 years ago

This seems to be related to the situation with the two installations. The file uri.py contains the patterns to the different functions, and this is not consistent on the two inatallations. I don't think it's even in the repository.

I will look at it tomorrow but if you wanna take a look, the missing pattern should be something with 'get_csv'.

gerardodiego commented 9 years ago

Oka, I found the reason. I found on my uri.py file this pattern: url(r'^get_csv/(?P\w+)/(?P\d+)', views.get_csv, name="get_csv"),

Which calls the function returning the csv file with two parameters, plot and norm. In the views.py, this function only takes one parameter (not norm), so it seems like something I started but didn't finish. We can talk about what "norm" is meant to do later.

For tomorrow then, I'm removing the parameter, so that you can at least show how you save the table as a cvs file.

gerardodiego commented 9 years ago

Oka. Working now, so you can safely click on "save table"