paolobenve / myphotoshare

MOVED TO GITLAB! --- A Web 2.0 Photo Gallery Done Right via Static JSON, Dynamic Javascript and a bit of php for sharing
15 stars 0 forks source link

Allow % characters in `album.ini` files #101

Open pmetras opened 6 years ago

pmetras commented 6 years ago

album.ini files are maily used as metadata containers and don't need all the power of Python configuration files with inclusions and macros. I let these features open when I added them, just in case for future use, but now they prevent entering % in metadata text (https://bugs.python.org/issue26872).

This line https://github.com/paolobenve/myphotoshare/blob/4a66950046f60cd4f3f4954c1217cd1222afd1c9/scanner/PhotoAlbum.py#L179

must be replaced by

self.album_ini = configparser.ConfigParser(allow_no_value=True, interpolation=None)