Commit Graph

33 Commits

Author SHA1 Message Date
Felix Rabinovich
7423c755c0 aliasing owner to user 2008-11-12 08:30:55 +00:00
Bharat Mediratta
51c64f1d28 Create a simple benchmark that loads 500 localized messages and performs
500 localizations on them.
2008-11-12 00:05:47 +00:00
Jozef Selesi
1651b3fe85 Move scaffolding code out of the comments controller to welcome.php. 2008-11-11 12:20:20 +00:00
Bharat Mediratta
ffa39aabb9 Manually delete the auth table and module entry to ease transitions for devs. 2008-11-10 21:55:27 +00:00
Bharat Mediratta
1b490c5fe6 Make Gallery3 more RESTful.
Create Item_Controller as a common superclass for Album_Controller and
Photo_Controller.  Change routes to route requests to Item_Controller
for dispatching, which in turn will generate get/post/put/delete
requests to the controlller so that each controller has a RESTful
surface.

Change in_place editing to take advantage of this.
2008-11-09 19:20:23 +00:00
Bharat Mediratta
ea7cc4f46e Simplify the way that we find the user id (just look it up, and if there's a database exception use the null value) 2008-11-08 07:27:46 +00:00
Felix Rabinovich
28b739a210 Adding user (owner) to items; info module 2008-11-08 07:18:56 +00:00
Bharat Mediratta
dc90ad9739 Change add() to add photos:albums at a ratio of 10:1 2008-11-07 10:46:06 +00:00
Bharat Mediratta
6b5b5ec3a6 Use jquery.cookie to keep the same tab open when you refresh
Add a switch to turn profiling on/off
2008-11-07 05:49:45 +00:00
Bharat Mediratta
6cafc61f96 album::set_thumbnail is now part of Item_Model so it can go.
Fix a bug in the scaffolding where we weren't saving the album after
adding its thumbnail (so its dimensions weren't getting set).
2008-11-06 05:51:20 +00:00
Bharat Mediratta
d6e942f2e3 Add quick-link to the deepest photo to test hierarchical navigation 2008-11-06 04:56:50 +00:00
Chad Kieffer
c4407f7bda spruce up the display of commands 2008-11-06 04:37:28 +00:00
Bharat Mediratta
cf27982466 When uninstalling the core, uninstall all the other modules first.
Otherwise, when you reinstall the other module's tables are still
hanging around and interfere with their install.
2008-11-06 03:58:37 +00:00
Bharat Mediratta
2738d4b6a6 Fix a typo. 2008-11-06 03:55:32 +00:00
Bharat Mediratta
91a0236f8c Guard the module loading code against database errors (in case the database isn't configured yet) 2008-11-05 22:29:42 +00:00
Bharat Mediratta
24787b5545 remove tabs 2008-11-05 17:32:59 +00:00
Bharat Mediratta
3feb0b288b Add info section with MPTT graphs 2008-11-05 09:50:20 +00:00
Bharat Mediratta
ae00f73944 * Add thumbnail and resize dimensions to the item table and use them
properly in the theme.
* Move thumbnail and resize generation down into the model for
  consistency.
* Add a sample thumbnail for albums
* Fix a bug in the ORM to clear the cache when we reload an object.
* Add Kohana docs to the scaffold.
2008-11-05 09:42:47 +00:00
Bharat Mediratta
00513a71d2 Report the number of photos/albums 2008-11-05 06:17:35 +00:00
Tim Almdal
f7560a7e8b Don't overwrite the version number of installed modules when searching for uninstalled modules. 2008-11-05 04:32:58 +00:00
Bharat Mediratta
f011971ade Further simplify the code. 2008-11-05 01:08:16 +00:00
Bharat Mediratta
667d79c705 _readModules -> _readModules
Simplify the installer-detection code.
2008-11-05 01:05:21 +00:00
Tim Almdal
da286fbf6b Clean up camel humped names and move private function to bottom of file 2008-11-05 00:07:16 +00:00
Tim Almdal
d0629584b5 Have the scaffolding code see what what modules are available and list whether they need to be installed or uninstalled. 2008-11-04 22:18:00 +00:00
Bharat Mediratta
605d2de336 Lots of new stuff!
Replace theme HTML with *almost* the latest stuff from the
mockups.  (it doesn't include r18467 yet).

Our theme format is now modelled after WordPress / Habari's style
where you have one entry point per type (eg: album.php) which can
load up whatever parts it needs (eg: $theme->display("header"))

Created album and photo helpers which have create() functions
that form the base of our new API, along with tests for them.

Created our own version of the ORM_MPTT since the existing
versions were too buggy and unsupported to depend upon.  Only has
a minimal implementation so far, and the tests are not yet
committed.

Added path(), thumbnail_path() and resize_path() to Item_Model

Extended the scaffolding to allow you to add lots of
photos/albums into your hierarchy.

Deleted modules/mptt -- we're not going to use this anymore.
2008-11-04 21:24:42 +00:00
Bharat Mediratta
ade1650846 Add a test to detect tabs in our code, and convert all tabs to spaces
so that the test passes.
2008-11-04 05:22:06 +00:00
Bharat Mediratta
7d2c828a4c Put info about installed modules directly into the scaffolding page,
and create methods to install/uninstall modules.
2008-11-03 00:27:35 +00:00
Bharat Mediratta
e173f36bcb Create some basic infrastructure:
* item model (contains basic item info, similar to the gx version)
  * module model (has info about each module and which version of it is installed)
  * added a very basic unit test to verify that we can create an instance of item
  * Updated our test controller to require a unit_test db config and
    call core::install if it hasn't been done already.

New pattern:
  * core/helpers/core_installer.php creates core_installer helper.
    When we install a new module you call xxx_installer::install(),
    and when you want it to go away, you do xxx_installer::uninstall()

Create
2008-11-02 23:55:09 +00:00
Bharat Mediratta
231117b4a3 Change this to be inline instead of an iframe, and fix it up so that
it walks you through creating the database also.
2008-11-02 21:12:15 +00:00
Bharat Mediratta
d742de4e11 Improve welcome scaffolding to walk you through getting the var
directory set up correctly and a database config file in place.
2008-11-02 19:56:57 +00:00
Bharat Mediratta
bd8cd9364c Fix all our preambles to make the preamble test pass. 2008-11-01 22:43:28 +00:00
Bharat Mediratta
146f34dc07 Improve the welcome page to be a bit more explanatory about the product. 2008-11-01 03:58:08 +00:00
Bharat Mediratta
a69515ecb3 Placeholder app for Gallery3, along with a customized index.php and a README
git-svn-id: http://gallery.svn.sourceforge.net/svnroot/gallery/trunk/eval/gx/gallery3/trunk@18409 57fcd75e-5312-0410-8df3-f5eb6fbb1595
2008-10-31 22:38:54 +00:00