Commit Graph

18 Commits

Author SHA1 Message Date
Bharat Mediratta
cdc796aed4 Don't rely on the file to have an extension (or better: don't throw an
error if we can't find one-- just assume its a photo).
2009-05-08 19:32:51 +00:00
Tim Almdal
b05b89798a Continuation of r20518. Remove all the cases were the csrf values in
views were being manually set.  Also removed it from the Admin_View.
2009-04-02 21:41:10 +00:00
Bharat Mediratta
c96544ff34 Add missing csrf value. 2009-03-27 15:39:22 +00:00
Bharat Mediratta
0f5ccc9aa3 Switch from using SimpleUploader to using swfUpload as our flash based
uploader.  This is modeled on
http://codex.gallery2.org/Gallery3:Upload_UX but is not yet complete.

Notes:
* Changed #gProgressBar to .gProgressBar to support multiple progress
  bars on the same page
* Added a bunch of CSS to the "needs a home" section in
  themes/default/css/screen.css
2009-03-17 05:20:37 +00:00
Bharat Mediratta
b8cf195be8 Don't forget to clean up temp files after uploading.
Fixes ticket #120.
2009-03-09 04:11:15 +00:00
Bharat Mediratta
234aa2b31d Implement batch support in a simple fashion to avoid having to change the swf file for now 2009-03-04 08:56:16 +00:00
Bharat Mediratta
23b0abb974 Redefine the batch API to be very very simple. You call
batch::start() before starting a series of events, and batch::stop()
when you're done.

In batch mode, the notification module will store up pending
notifications.  When the batch job is complete, it'll send a single
digested email to each user for all of her notifications.

Updated the scaffold and local_import to use this.  Haven't modified
SimpleUploader yet.
2009-03-04 08:51:49 +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
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
adf338f2c1 Added t(...) around some display strings that were overlooked. 2009-02-22 16:14:58 +00:00
Bharat Mediratta
baff63b70b Very basic movie support. You can upload a FLV file, we use ffmpeg to
extract a thumbnail out of it and if you click through we show it
using flowplayer.
2009-02-22 05:21:44 +00:00
Bharat Mediratta
d3752437b9 Add a 'finish' button which dismisses the dialog and refreshes the current page 2009-02-18 07:33:38 +00:00
Bharat Mediratta
e24de87096 Urlencode the user agent, else it doesn't get passed through properly.
This fixes the uploader on FF/Linux (and probably other platforms).
2009-02-18 07:20:50 +00:00
Bharat Mediratta
96c6121f4a Add more localized strings 2009-02-17 05:11:05 +00:00
Bharat Mediratta
3684cff972 Ignore the unique timestamp value that upload::save() prepends to temp filenames. 2009-02-15 23:04:26 +00:00
Bharat Mediratta
9e08285c00 Say hello to the new Flash based uploader, courtesy of Eric Zelermyer.
This requires a little trickery to proxy the session id and user agent
through the ActionScript code so that we can assume the same session
in the uploader.  It's also using its own path to add photos since
we'll want to have a slightly different protocol for dealing with
responses (as opposed to JSON or HTML).

A work in progress for sure, but it's already better than what we had before.?\024
2009-02-14 23:03:09 +00:00