Commit Graph

17 Commits

Author SHA1 Message Date
Tim Almdal
f58bbe0610 Improve the comment about why we skip the first path.
Change to use access::required
2009-03-03 21:43:59 +00:00
Bharat Mediratta
9775cb69e2 Fix indentation, remove unnnecessary csrf check. 2009-03-03 21:19:31 +00:00
Tim Almdal
7cadb4b21b Refactored the batch Api: 1) created a small batch helper class:
Starting a batch call batch::operation(name, item). In the case of
adding photos name = add and item is the parent of the new items.
When the operation is finished the batch::end_operation(name) is
called.
operation and end_operation events are called.  Handlers
(i.e. item_created) can call batch::in_progress(name) to determine if
a batch is being processed.
2009-03-03 05:59:38 +00:00
Tim Almdal
512a532650 Simplify the batch api by having the core event handlers for
start_batch and end_batch add and remove the batch id from the
session.  Modules wishing to do batch processing, just need to fire
the start_batch and end_batch events.  Other modules that need to be
aware of batches (i.e. notifications) just check the session for "batch_id".
2009-03-01 19:11:01 +00:00
Tim Almdal
bed1bb48f3 The scaffolding, simple_uploader and local_import now call two new
events: start_add_batch and end_add_batch.  The parameter is a batch
id which is generated on the first add request.  The protocol is call
the add_photo as many times as required and then call finish when
done.
Also renamed the add method in local_import to add_photo so it is
consistent with simple_uploader
2009-02-28 20:12:54 +00:00
Tim Almdal
f6169047b1 Fix up add from server:
1) Upload requests are serialized so we don't over load the server or get
race conditions occurring.  
2) new albums are created based on the file structure of the
authorized path that is the source directory.
2009-02-26 16:27:23 +00:00
Tim Almdal
ec2a032604 Add closing ) 2009-02-25 16:17:34 +00:00
Bharat Mediratta
515c081f79 Add support MP4 movies also. Flowplayer supports them and can stream
them using the h264streaming plugin.  Everything else is a fairly
minor change.
2009-02-25 05:27:29 +00:00
Tim Almdal
5b35490be1 Major change to local import, in that checking the high level
directory will process all the files underneath w/o having to expand
the tree first.
2009-02-24 16:47:45 +00:00
Tim Almdal
2ed850652b Fix problem that movie::create was never being called. But strangely
enough photo::create would actually add the movie properly :-)
2009-02-23 15:06:24 +00:00
Tim Almdal
679b8c3971 Include jpg as valid graphic files 2009-02-23 14:45:09 +00:00
Tim Almdal
05308a94b1 Use IMAGETYPE_xxx to filter file types 2009-02-23 05:59:13 +00:00
Tim Almdal
eece67611e Added "flv" to the list of the supported files 2009-02-22 16:14:10 +00:00
Bharat Mediratta
2505bd1579 Hardcode extensions instead of using Image::$allowed_types because we
don't support TIFF files.  TIFF files are not viewable directly in
most browsers
2009-02-21 20:58:02 +00:00
Tim Almdal
c2fa42cf6c Implementation of local import module. Still need work on better
status messages.
2009-02-21 02:28:19 +00:00
Tim Almdal
b202816324 Remove the attempt at a local import module 2008-12-12 01:46:43 +00:00
Tim Almdal
bd992a97b2 Remove the options menus from the albums and photo pages and move to the site menu 2008-12-11 21:27:16 +00:00