Code review comment for lp:~widelands-dev/widelands-website/add_DISPLAY_to_update_help

Revision history for this message
kaputtnik (franku) wrote :

Uhh i didn't checked if the output is really good :-( Thanks for looking into this.

I think i have found it... The MEDIA_ROOT path contained double slashes. I don't know why, but this causes the slice in line 154 of update_help.py to cut too many chars:

return '%s%s' % (MEDIA_URL, new_name[len(MEDIA_ROOT):])

This is fixed now for all STATIC strings in local_settings.py and the encyclopedia on the website is updated again.

You may notice that i removed a slash in between the "%s". I did that because MEDIA_URL contains a slash itself and putting in there a slash results in a doubleslash again.

« Back to merge proposal