Commit Graph

24 Commits

Author SHA1 Message Date
Bharat Mediratta
234aed87e6 auto install organize module 2009-04-28 21:07:03 +00:00
Bharat Mediratta
acfb81d940 Oops, we need UNIX_TIMESTAMP() instead of NOW() 2009-03-20 08:25:33 +00:00
Bharat Mediratta
6df1dffed1 Do some data normalization so that the install files will have stable
ordering and known values.  This way subsequent packaging runs won't
have any differences unless there's a real data change.
2009-03-20 08:22:57 +00:00
Bharat Mediratta
61d8a143ea Rejigger the way we do reinstalls while Kohana is running.
core_installer::install() now takes an $initial_install param that
allows us to enforce that we're doing a clean install.  Use this in
both the scaffolding and the unit test code.

Greatly simplify the scaffolding uninstall/reinstall code.
2009-03-19 02:35:51 +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
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
Bharat Mediratta
9d4769da87 Add profiling/debugging switches in the Scaffold menu. 2009-03-10 06:45:55 +00:00
Bharat Mediratta
7cbc904be7 Post process the sql generation code to support prefixes 2009-03-08 21:11:01 +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
60c85384b4 Use the Database::update function instead of a raw SQL query 2009-02-26 19:49:28 +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
8b2c05afc0 1) Rename the module media_rss to rss
2) Protect the fullsize image with a permission check
3) Added a content:encoded element to each item which allows the image to show up in the body of the feed.
2009-02-19 15:24:17 +00:00
Tim Almdal
1fc2307fab rollback r20001-r19998, r19995. This may require a reinstall 2009-02-08 02:21:28 +00:00
Tim Almdal
4e107dac41 Implement fix for ticket #35. *** Requires reinstall of core ***
* Added new field in items table (path) which is sanitized version of
name.
* Added __set method on Items_module to set the path field whenever
the name field is changed.
* Made some changes to the scaffolding so missing the path column
would not kill the scaffolding.
* Changed MY_url::site so not having a 3rd parameter won't throw an error.
2009-02-06 16:39:18 +00:00
Bharat Mediratta
79dda6a0c2 Rename "welcome" controller to "scaffold" so that we can eventually
have a welcome page.
2009-02-05 08:39:12 +00:00