Commit Graph

342 Commits

Author SHA1 Message Date
Andy Staudacher
222f6e2e23 Functional l10n_client / server interaction:
- Get / verify API Key from l10n server
 - Submit translations
 - Fetch translations / updates

Reference: Tasks: 75, 76, 55

TODO: Move out of core (and a series of other tasks).
2009-03-18 00:53:44 +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
c0d8216037 Initialize some variables 2009-03-16 08:53:20 +00:00
Bharat Mediratta
1055fe6be3 Revive the install() and uninstall() functions in Scaffold_Controller
because we need those to make a package.

Fix the packaging code to ignore whatever prefix is being used by the
developer who is doing the packaging.

Update the install.sql file (there were a variety of small
inconsistencies, probably from hand-editing.  Don't hand-edit this
file!)
2009-03-16 08:49:55 +00:00
Bharat Mediratta
2c3ab56a42 Move security into the constructor. Protecting the index() call is easily bypassed. 2009-03-16 08:29:35 +00:00
Bharat Mediratta
df5f035ed1 Get rid of obsolete/undefined $block_adder 2009-03-16 08:02:16 +00:00
Bharat Mediratta
736d74d05f Clean up the login, maintenance login and required-top-level-login code.
We now have two clear and separate login approaches:
  login/ajax
  login/html

Choose the one that's appropriate.  Totally simplified the maintenance
page to be separate from the theme and dead simple, and use login/html
approach there.  Totally simplified the top level login
(login_page.html.php) to just be a login page, not the rest of the
chrome on the page and use the login/ajax approach there.

Don't use access::required in albums and then catch the exception,
instead use access::can and check the return code.

Improve the text for maintenance mode.
2009-03-16 04:33:45 +00:00
Tim Almdal
0bc64efa4a Thin down the scaffolding code so that all that is there is the test
data creation and the packaging code.  The rest ofthe functionality is
either no longer required, or moved to the developer module (MPTT
Tree).
Also provide checking for the active user to be an admin.
2009-03-16 03:50:57 +00:00
Tim Almdal
bf4cd1b813 Move profiling and debugging out of the scaffolding and into the
developer module.
2009-03-15 20:35:24 +00:00
Tim Almdal
a521d9177f Force a login if everybody does not have access to the root
item. ticket #118.
2009-03-11 13:58:38 +00:00
Tim Almdal
8da729cfa1 Refine the task api but removing the optional parameters on the
task::create method call
2009-03-11 03:14:52 +00:00
Bharat Mediratta
47756db856 Get rid of stray 'type' argument to task::get_definitions() 2009-03-11 02:39:52 +00:00
Bharat Mediratta
9d4769da87 Add profiling/debugging switches in the Scaffold menu. 2009-03-10 06:45:55 +00:00
Bharat Mediratta
9d8d115387 Show the album edit form for albums, not the photo edit form 2009-03-10 03:28:13 +00:00
Tim Almdal
b9ee37f30e Override the ORM_MTTP::children and ORM_MTPP::descendants methods in
the item model and always pass the orderby fields.  This insures that
all children or descendant calls will respect the album sort order.
2009-03-09 14:38:25 +00:00
Tim Almdal
c0375db79f Restructure the sort order to maintain the sort column and sort order
as two separate columns in the item table.
2009-03-09 13:30:22 +00:00
Bharat Mediratta
7aea8f0385 Add a 'cancel all' link too 2009-03-09 07:45:38 +00:00
Bharat Mediratta
e37faa0008 More tasks cleanup.
Don't join through to the users table; that won't work in embedded
mode.  Instead, add Tasks_Model::owner() that calls user::lookup() and
refer to the object directly in the view.

Add Admin_Maintenance:remove_finished_tasks() so that we can easily do
old task cleanup.

Hide Running / Finished sections if there aren't any running or
finished tasks.
2009-03-09 07:28:19 +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
198297e0d4 Instead of putting after_install in the url, put it in the session.
This helps us to make sure that we only see the welcome message once.
2009-03-09 00:03:04 +00:00
Bharat Mediratta
72c7fed975 Log the user in as admin after running the web installer, and give
them a nice "Welcome to Gallery 3" dialog.  The text in there needs a
little work but it's a start.

In the process, re-build the install.sql using the scaffolding code.
2009-03-08 21:21:09 +00:00
Bharat Mediratta
7cbc904be7 Post process the sql generation code to support prefixes 2009-03-08 21:11:01 +00:00
Tim Almdal
8f1e90d837 Update sort order processing per Bharat's feedback
* Remove mime type and type as sortable fields
* Change the internal representation to serialized array
* Shorten the database field to varchar(64)
2009-03-08 19:10:08 +00:00
Tim Almdal
39954ad0b7 Implement Sortable albums. Current sort fields include (Creation
Date, Update Date, Random Key, Title, Mime Type, Item Type & Number of views)
2009-03-08 16:29:01 +00:00
Tim Almdal
bf6c814e81 Undo... pass any additional parameters to the _edit_form method 2009-03-08 07:55:37 +00:00
Tim Almdal
186eeb8e20 Pass any additional parameters to the _edit_form method 2009-03-08 07:42:06 +00:00
Chris Kelly
3ad7827786 oops. fix accidental style change that slipped into last commit 2009-03-06 02:36:04 +00:00
Chris Kelly
0678037687 Added json and filter as requirements 2009-03-06 02:22:51 +00:00
Bharat Mediratta
23937ff135 Avoid using default task types. Require task::get_definitions() to
specify a single type and ask for it appropriately in
admin_maintenance.  Specify a type for every existing task.
2009-03-05 06:38:11 +00:00
Bharat Mediratta
898ac3ac35 A little task restructuring 2009-03-05 06:28:23 +00:00
Tim Almdal
7786bb09d3 Implement a Maintenance mode as per ticket: #15 2009-03-05 00:32:33 +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
Bharat Mediratta
69cb19aad2 Delete test(), it should never have been checked in. 2009-03-04 06:25:04 +00:00
Tim Almdal
6596682c90 Use the gallery root directory on the batch::operation call when
generating random albums and images
2009-03-03 21:48:13 +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
c04ff8e02f Change the pattern to identify tables that need prefix substitution to
mirror the drupal pattern of using braces {}.
2009-02-28 06:37:28 +00:00
Tim Almdal
bd15853708 This implements table prefix for all the queries in core, user, exif,
tag, search, comment and notification modules (Ticket #68)
2009-02-27 21:07:18 +00:00
Tim Almdal
dc4f784558 * Refactor task management methods from admin_maintenance.php to
task.php
* Added a owner_id field to the task database
* Modified the admin maintenace to show the owner of the task
<<**** Requires a reinstallation of core ****>>
2009-02-27 16:28:20 +00:00
Tim Almdal
60c85384b4 Use the Database::update function instead of a raw SQL query 2009-02-26 19:49:28 +00:00
Bharat Mediratta
4f77e7bdce Support adding custom header/footer text to themes via admin/theme_details 2009-02-26 02:47:38 +00:00
Bharat Mediratta
30fdedfb50 Make theme details its own page so that we can wrap it in a div and
give it a title.
2009-02-26 02:38:32 +00:00
Bharat Mediratta
1cb250ecc0 Minor cleanups. 2009-02-26 01:59:02 +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
Bharat Mediratta
f924cd66ac Remove the $item from the various graphics functions, that was a bad
idea.  Instead convert movies to jpeg before doing any
transformations, which keeps the graphics functions clean and abstract
and dealing solely with image types.  Lighter/simpler solution.
2009-02-22 23:55:47 +00:00
Tim Almdal
95fc61c9a8 Standardize to uppercase DESC in the order by method calls 2009-02-22 17:36:58 +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