summaryrefslogtreecommitdiff
path: root/modules/local_import
AgeCommit message (Collapse)Author
2009-03-04Rename local_import module to server_addTim Almdal
2009-03-04Redefine the batch API to be very very simple. You callBharat Mediratta
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-04Indentation and whitespace tweaks.Bharat Mediratta
2009-03-04Fix indentation.Bharat Mediratta
2009-03-04remove unnecessary render()Bharat Mediratta
2009-03-04Move <label> outside of <?= ?> blockBharat Mediratta
2009-03-04Forgot to remove a debugging statementTim Almdal
2009-03-04Use Directory IteratorTim Almdal
2009-03-03* Validate that the source path is authorized.Tim Almdal
* Add site warning message if local_import is installed an there is no authorized directories
2009-03-03Remove csrf verification from autocomplete handlerTim Almdal
2009-03-03Only show local_import head stuff (css and js) when the local_importTim Almdal
admin page is shown
2009-03-03Inline the admin view creation that was in helpers/local_import.phpTim Almdal
and remove it. Cleanup unused variables. Rename the method remove() to remove_path()
2009-03-03Improve the comment about why we skip the first path.Tim Almdal
Change to use access::required
2009-03-03Fix indentation, remove unnnecessary csrf check.Bharat Mediratta
2009-03-03Refactored the batch Api: 1) created a small batch helper class:Tim Almdal
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-01Simplify the batch api by having the core event handlers forTim Almdal
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-02-28The scaffolding, simple_uploader and local_import now call two newTim Almdal
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-26Delete unused codeTim Almdal
2009-02-26Fix up add from server:Tim Almdal
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"Import" -> "Add" so that the menu option fits on one line.Bharat Mediratta
2009-02-25Add closing )Tim Almdal
2009-02-25Add support MP4 movies also. Flowplayer supports them and can streamBharat Mediratta
them using the h264streaming plugin. Everything else is a fairly minor change.
2009-02-24Major change to local import, in that checking the high levelTim Almdal
directory will process all the files underneath w/o having to expand the tree first.
2009-02-24File structure style fixesAndy Staudacher
2009-02-23Fix problem that movie::create was never being called. But strangelyTim Almdal
enough photo::create would actually add the movie properly :-)
2009-02-23Include jpg as valid graphic filesTim Almdal
2009-02-23Use IMAGETYPE_xxx to filter file typesTim Almdal
2009-02-23Move admin menu under settingsBharat Mediratta
Don't try to show the local_import link if there's no options menu.
2009-02-22Added "flv" to the list of the supported filesTim Almdal
2009-02-21Hardcode extensions instead of using Image::$allowed_types because weBharat Mediratta
don't support TIFF files. TIFF files are not viewable directly in most browsers
2009-02-21Standardize the html id of the progress bar to gProgressBarTim Almdal
2009-02-21Implementation of local import module. Still need work on betterTim Almdal
status messages.
2008-12-12Remove the attempt at a local import moduleTim Almdal
2008-12-11Remove the options menus from the albums and photo pages and move to the ↵Tim Almdal
site menu
2008-12-11Fix preamblesBharat Mediratta
2008-12-11This file got left behind and is lonelyTim Almdal
2008-12-111) Begins the creation of the local import module by adding the ↵Tim Almdal
administation component to the scaffolding Actions tab. The importing functionality will follow shortly. 2) Defines a routining pattern for module administration controllers. URI's of the form admin/module/method/parameters gets remapped into module_admin/method/parameters. This will result in the lookup of the the controller Module_Admin_Controller