google-code-export / django-photologue

Automatically exported from code.google.com/p/django-photologue
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Order of GalleryUpload files. #104

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Upload a zip file.  Image order is somewhat random.

What is the expected output? What do you see instead?
Would LIKE to see it output sorted alpha-numeric

What version of the product are you using? On what operating system?
release 2.2 , checking branch shows P3 has same issue.

Please provide any additional information below.

Fix is simple.  When you open the loop to read the filenames in just pass
them sorted:

for filename in sorted(zip.namelist()):

Original issue reported on code.google.com by webri...@gmail.com on 17 Feb 2009 at 10:53

GoogleCodeExporter commented 9 years ago
I think an ordering value should instead be added to the gallery object, so 
that one
could specify different ordering for each gallery. Options for ordering would 
then
include: "EXIF datetime", image title, added date .. and each should be 
selectable
ascending or descending.

A manual sorting mode should be allowed to override this

Original comment by hr.bja...@gmail.com on 6 Apr 2009 at 11:17

GoogleCodeExporter commented 9 years ago
Sorting the zipfile names in r 397. Will consider more robust ordering but much 
of that 
can currently be achieved using queries.

Original comment by justin.d...@gmail.com on 23 Jul 2009 at 6:04