Summary | Small fixes to import script |
Queue | Ansel |
Queue Version | 1.1.1 |
Type | Enhancement |
State | Resolved |
Priority | 1. Low |
Owners | mrubinsk (at) horde (dot) org |
Requester | lameventanas (at) gmail (dot) com |
Created | 03/23/2010 (5535 days ago) |
Due | |
Updated | 09/12/2010 (5362 days ago) |
Assigned | 05/10/2010 (5487 days ago) |
Resolved | 09/12/2010 (5362 days ago) |
Milestone | |
Patch | Yes |
Assigned to Michael Rubinsky
State ⇒ Resolved
Version ⇒ 1.1.1
and git master.
Thanks!
MFB
Request: 8929http://git.horde.org/diff.php/ansel/scripts/recursive_import.php?rt=horde-git&r1=a0ce9ace9c3114b59d4926dd43c89cd19f4794c4&r2=7035ce3cf00beb7175264b1687b72c0b12b2b0fa
Add sort order parameter to import script.
Request: 8929Submitted by: lameventanas (at) gmail (dot) com
http://cvs.horde.org/diff.php/ansel/scripts/recursive_import.php?rt=horder1=1.11.2.2r2=1.11.2.3ty=u
New Attachment: ansel_import_sort.diff
HORDE_BASE . '/ansel'), the script won't work.
With my change, it always works.
than no order at all (which is how it works now).
returned by readdir(), which should be the order that they are stored
on the filesystem. http://php.net/readdir
Additionally, I wouldn't want my images imported sorted alphabetically
by default. If anything, I'd want them sorted by the image DateCreated
time. If you add a switch for this, I'd be willing to commit it.
Fix import script for installations where Ansel is not installed under
horde root.
Bug: 8929Submitted by: lameventanas (at) gmail (dot) com
http://cvs.horde.org/diff.php/ansel/scripts/recursive_import.php?rt=horde&r1=1.11.2.1&r2=1.11.2.2&ty=u
are attempting to fix. The definition of ANSEL_BASE should be fine
as is. Why is the ANSEL_BASE definition that is built from
HORDE_BASE not working for you?
. '/ansel'), the script won't work.
With my change, it always works.
that the user wants images sorted by filename when importing. Not
always the case. At the very least if you really want this feature
to be included you should make it a configuration switch on the
command line.
than no order at all (which is how it works now).
State ⇒ Feedback
attempting to fix. The definition of ANSEL_BASE should be fine as is.
Why is the ANSEL_BASE definition that is built from HORDE_BASE not
working for you?
Regarding the sorting, I'm inclined to reject this. It's assuming that
the user wants images sorted by filename when importing. Not always
the case. At the very least if you really want this feature to be
included you should make it a configuration switch on the command line.
State ⇒ Duplicate
Bug: 8760State ⇒ New
New Attachment: ansel_import.diff
Patch ⇒ Yes
Milestone ⇒
Priority ⇒ 1. Low
Type ⇒ Enhancement
Summary ⇒ Small fixes to import script
Queue ⇒ Ansel
First, it fixes the hard-coding of the installation path of ansel.
Second, it sorts alphabetically the galleries/pictures when importing them.
I have also written a script to import comments from text-files into
Ansel, but I guess this is too system specific.